u8glib 使用手册 beta v101.doc

  1. 1、本文档共44页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
u8glib 使用手册 beta v101

用户参考手册 Bc++原型 ?uint8_t U8GLIB::begin(void) C原型 ?uint8_t u8g_Begin(u8g_t *u8g) 描述。 参数:u8g u8g:指针结构(C接口)。 返回:0,如果初始化过程失败。 使用:外循环。 注意:与v1.11可用。 例子: 另见:U8GLIB disableCursor c++原型 ?void U8GLIB::disableCursor(void) C原型 ?void u8g_DisableCursor(u8g_t *u8g) 描述 光标。光标将不可见。 参数:u8g u8g:指针结构(C接口)。 返回: 使用:外循环。 注意: 例子: 另见:enableCursor,setCursorColor,setCursorFont,setCursorPos,setCursorStyle drawBitmap drawBitmapP c++原型 ?void U8GLIB::drawBitmap(u8g_uint_t x, u8g_uint_t y, u8g_uint_t cnt, u8g_uint_t h, const uint8_t *bitmap) void U8GLIB::drawBitmapP(u8g_uint_t x, u8g_uint_t y, u8g_uint_t cnt, u8g_uint_t h, const u8g_pgm_uint8_t *bitmap) C原型 ?void u8g_DrawBitmap(u8g_t *u8g, u8g_uint_t x, u8g_uint_t y, u8g_uint_t cnt, u8g_uint_t h, const uint8_t *bitmap) void u8g_DrawBitmapP(u8g_t *u8g, u8g_uint_t x, u8g_uint_t y, u8g_uint_t cnt, u8g_uint_t h, const u8g_pgm_uint8_t *bitmap) 描述 在指定的x / y位置(位图的左上角)绘制位图。。位图是由数组指定的。。:写像素当前颜色索引。?对于一个单色显示屏,显色指数0通常会清除像素和颜色索引1将设置一个像素。 参数: u8g u8g:指针结构(C接口)。 :X位置(左位图的位置)。 :Y位置(位图上的位置)。 CNT:在水平方向的位图的字节数。?该位图的宽度为CNT * 8。 h:位图的高度。 返回: 使用:内循环。 注意: 例子: U8GLIB_PCD8544 u8g(13, 11, 10, 9, 8); ? ? ? ? ? ? ? ? ? ?// SPI communication: SCK = 13, MOSI = 11, CS = 10, A0 = 9, Reset = 8 const uint8_t rook_bitmap[] U8G_PROGMEM = { ? 0x00, ? ? ? ? // ? 0x55, ? ? ? ? //? 0x7f, ? ? ? ? ?//? 0x3e, ? ? ? ? //? 0x3e, ? ? ? ? // ? 0x3e, ? ? ? ? //? 0x3e, ? ? ? ? // ? 0x7f ? ? ? ? ? //}; void draw(void) { ? // graphic commands to redraw the complete screen should be placed here ? ? u8g.drawBitmapP( 0, 0, 1, 8, rook_bitmap); } void setup(void) { } void loop(void) { ? // picture loop ? u8g.firstPage(); ? ? do { ? ? draw(); ? } while( u8g.nextPage() ); ? ? // rebuild the picture after some delay ? delay(1000); } 另见:setColorIndexdrawXBM drawBox c++原型 ?void U8GLIB::drawBox(u8g_uint_t x, u8g_uint_t y, u8g_uint_t w, u8g_uint_t h) C原型 ?void u8g_DrawBox(u8g_t *u8g, u8g_uint_t x, u8g_uint_t y, u8g_uint_t w, u8

文档评论(0)

zhuwenmeijiale + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:7065136142000003

1亿VIP精品文档

相关文档