“Adafruit GFX库”的版本间的差异
(以“ Adafruit_SSD1306 github: [https://github.com/adafruit/Adafruit_SSD1306 Adafruit_SSD1306] {| border="0" cellpadding="10" width="100%" |- |width="60%" valign="top" a...”为内容创建页面) |
|||
(未显示1个用户的8个中间版本) | |||
第1行: | 第1行: | ||
− | + | Adafruit_GFX github: [https://github.com/adafruit/Adafruit-GFX-Library Adafruit_GFX] | |
{| border="0" cellpadding="10" width="100%" | {| border="0" cellpadding="10" width="100%" | ||
|- | |- | ||
− | |width=" | + | |width="30%" valign="top" align="left"| |
Adafruit_GFX | Adafruit_GFX | ||
+ | |||
<br> | <br> | ||
− | |||
− | <font color=" | + | <font color="orange" size="+2">'''Examples'''</font><br> |
+ | <br> | ||
+ | :-[[ XX]] : | ||
− | <font color=" | + | :-[[ XX]] : |
+ | |||
+ | :-[[ XX]] : | ||
+ | |||
+ | :-[[ XX]] : | ||
+ | |||
+ | |||
+ | <font size="+2">'''关联库:[[Adafruit SSD1306库]]'''</font><br><br> | ||
+ | |||
+ | <!-- |width="10%" valign="top" align="left"| | ||
+ | 空白 --> | ||
+ | |||
+ | |width="60%" valign="top" align="left"| | ||
+ | <br> | ||
+ | <font color="orange" size="+2">'''[[Adafruit_GFX库]]'''</font><br><br> | ||
− | <font color="dodgerblue" >''' | + | <!--<font color="dodgerblue" >'''BLACK 0'''</font>--> |
- <font color="forestgreen">Adafruit_GFX(int16_t w, int16_t h)</font> | - <font color="forestgreen">Adafruit_GFX(int16_t w, int16_t h)</font> | ||
第53行: | 第69行: | ||
- <font color="forestgreen">drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color, uint16_t bg)</font> | - <font color="forestgreen">drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color, uint16_t bg)</font> | ||
− | - <font color="forestgreen"> | + | - <font color="forestgreen">drawBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h, uint16_t color)</font> |
+ | |||
+ | - <font color="forestgreen">drawBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h, uint16_t color, uint16_t bg)</font> | ||
+ | |||
+ | - <font color="forestgreen">drawXBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color)</font> | ||
+ | |||
+ | - <font color="forestgreen">drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size)</font> | ||
+ | |||
+ | - <font color="forestgreen">setCursor(int16_t x, int16_t y)</font> | ||
+ | |||
+ | - <font color="forestgreen">setTextColor(uint16_t c)</font> | ||
+ | |||
+ | - <font color="forestgreen">setTextColor(uint16_t c, uint16_t bg)</font> | ||
+ | |||
+ | - <font color="forestgreen">setTextSize(uint8_t s)</font> | ||
+ | |||
+ | - <font color="forestgreen">setTextWrap(boolean w)</font> | ||
+ | |||
+ | - <font color="forestgreen">setRotation(uint8_t r)</font> | ||
+ | |||
+ | - <font color="forestgreen">cp437(boolean x=true)</font> | ||
+ | |||
+ | - <font color="forestgreen">setFont(const GFXfont *f = NULL)</font> | ||
+ | |||
+ | - <font color="forestgreen">getTextBounds(char *string, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h)</font> | ||
+ | |||
+ | - <font color="forestgreen">getTextBounds(const __FlashStringHelper *s, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h)</font> | ||
+ | |||
+ | - <font color="forestgreen">int16_t height(void) const</font> | ||
+ | |||
+ | - <font color="forestgreen">int16_t width(void) const</font> | ||
+ | |||
+ | - <font color="forestgreen">uint8_t getRotation(void) const</font> | ||
+ | |||
+ | - <font color="forestgreen">int16_t getCursorX(void) const</font> | ||
+ | |||
+ | - <font color="forestgreen">int16_t getCursorY(void) const</font> | ||
+ | |||
<br> | <br> |
2016年9月5日 (一) 15:57的最后版本
Adafruit_GFX github: Adafruit_GFX
Adafruit_GFX
Examples
|
- drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color) - drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color) - drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color) - drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) - fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) - fillScreen(uint16_t color) - invertDisplay(boolean i) - drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color) - drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername,uint16_t color) - fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color) - fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername,int16_t delta, uint16_t color) - drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color) - fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color) - drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color) - fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color) - drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color) - drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color, uint16_t bg) - drawBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h, uint16_t color) - drawBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h, uint16_t color, uint16_t bg) - drawXBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color) - drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size) - setCursor(int16_t x, int16_t y) - setTextColor(uint16_t c) - setTextColor(uint16_t c, uint16_t bg) - setTextSize(uint8_t s) - setTextWrap(boolean w) - setRotation(uint8_t r) - cp437(boolean x=true) - setFont(const GFXfont *f = NULL) - getTextBounds(char *string, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h) - getTextBounds(const __FlashStringHelper *s, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h) - int16_t height(void) const - int16_t width(void) const - uint8_t getRotation(void) const - int16_t getCursorX(void) const - int16_t getCursorY(void) const
|
更多建议和问题欢迎反馈至 YFRobot论坛