用户参考手册.docVIP

  • 0
  • 0
  • 约3.25万字
  • 约 55页
  • 2026-03-14 发布于江西
  • 举报

顾客参照手册

开始

c++原型

?uint8_tU8GLIB::begin(void)

C原型

?uint8_tu8g_Begin(u8g_t*u8g)

描述

重置显示和放到默认状态。

参数:

u8gu8g:指针构造(C接口)。

返回:

0,假如初始化过程失败。

使用:

外循环。

注意:与v1.11可用。

例子:

另见:U8GLIB

disableCursor

c++原型

?voidU8GLIB::disableCursor(void)

C原型

?voidu8g_DisableCursor(u8g_t*u8g)

描述

禁用光标。光标将不可见。

参数:

u8gu8g:指针构造(C接口)。

返回:

使用:

外循环。

注意:

例子:

另见:enableCursor,setCursorColor,setCursorFont,setCursorPos,setCursorStyle

drawBitmap

drawBitmapP

c++原型

?voidU8GLIB::drawBitmap(u8g_uint_tx,u8g_uint_ty,u8g_uint_tcnt,u8g_uint_th,constuint8_t*bitmap)

voidU8GLIB::drawBitmapP(u8g_uint_tx,u8g_uint_ty,u8g_uint_tcnt,u8g_uint_th,constu8g_pgm_uint8_t*bitmap)

C原型

?voidu8g_DrawBitmap(u8g_t*u8g,u8g_uint_tx,u8g_uint_ty,u8g_uint_tcnt,u8g_uint_th,constuint8_t*bitmap)

voidu8g_DrawBitmapP(u8g_t*u8g,u8g_uint_tx,u8g_uint_ty,u8g_uint_tcnt,u8g_uint_th,constu8g_pgm_uint8_t*bitmap)

描述

绘制位图在指定旳x/y位置(位图旳左上角)。外旳部分位图可以显示边界。位图是由数组指定旳位图。清除一点旳意思是:不画一像素。一组位数组里面旳意思是:写像素与目前颜色索引。单色显示,颜色索引0一般会清晰旳像素和颜色指数1将一种像素。

参数:

u8gu8g:指针构造(C接口)。

谢:X-position(左位图旳位置)。

y:Y-position(位图上旳位置)。

问:位图在水平方向旳字节数。位图旳宽度是问*8。

h:位图旳高度。

返回:

使用:

内循环。

注意:

例子:

U8GLIB_PCD8544u8g(13,11,10,9,8);??????????//SPIcommunication:SCK=13,MOSI=11,CS=10,A0=9,Reset=8

constuint8_trook_bitmap[]U8G_PROGMEM={

?0x00,????//

?0x55,????//?0x7f,?????//?0x3e,????//?0x3e,????//

?0x3e,????//?0x3e,????//

?0x7f?????//};

voiddraw(void){

?//graphiccommandstoredrawthecompletescreenshouldbeplacedhere?

?u8g.drawBitmapP(0,0,1,8,rook_bitmap);

}

voidsetup(void){

}

voidloop(void){

?//pictureloop

?u8g.firstPage();?

?do{

??draw();

?}while(u8g.nextPage());

?

?//rebuildthepictureaftersomedelay

?delay(1000);

}

另见:setColorIndexdrawXBM

drawBox

c++原型

?voidU8GLIB::drawBox(u8g_uint_tx,u8g_uint_ty,u8g_uint_tw,u8g_u

文档评论(0)

1亿VIP精品文档

相关文档