“Adafruit SSD1306库”的版本间的差异

来自YFRobotwiki
跳转至: 导航搜索
 
(未显示1个用户的4个中间版本)
第164行: 第164行:
  
 
<br>
 
<br>
<font color="orange" size="+2">''''''</font><br><br>[[Adafruit_GFX库]]
+
<font size="+2">''' 关联库:[[Adafruit_GFX库]]'''</font><br><br>
 
+
<font color="dodgerblue" >'''BLACK 0'''</font>
+
 
+
<font color="dodgerblue" >'''WHITE 1'''</font>
+
 
+
<font color="dodgerblue" >'''INVERSE 2'''</font>
+
 
+
- <font color="forestgreen">Adafruit_GFX(int16_t w, int16_t h)</font>
+
 
+
- <font color="forestgreen">drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)</font>
+
 
+
- <font color="forestgreen">drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color)</font>
+
 
+
- <font color="forestgreen">drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)</font>
+
 
+
- <font color="forestgreen">drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)</font>
+
 
+
- <font color="forestgreen">fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)</font>
+
 
+
- <font color="forestgreen">fillScreen(uint16_t color)</font>
+
 
+
- <font color="forestgreen">invertDisplay(boolean i)</font>
+
 
+
- <font color="forestgreen">drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)</font>
+
 
+
- <font color="forestgreen">drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername,uint16_t color)</font>
+
 
+
- <font color="forestgreen">fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)</font>
+
 
+
- <font color="forestgreen">fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t cornername,int16_t delta, uint16_t color)</font>
+
 
+
- <font color="forestgreen">drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)</font>
+
 
+
- <font color="forestgreen">fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)</font>
+
 
+
- <font color="forestgreen">drawRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)</font>
+
 
+
- <font color="forestgreen">fillRoundRect(int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color)</font>
+
 
+
- <font color="forestgreen">drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color)</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">drawFastHLine</font>
+
  
 
<br>
 
<br>
第226行: 第182行:
  
 
 更多建议和问题欢迎反馈至 [http://www.yfrobot.com YFRobot论坛]
 
 更多建议和问题欢迎反馈至 [http://www.yfrobot.com YFRobot论坛]
 +
 +
欢迎加入群聊:[https://jq.qq.com/?_wv=1027&k=466mOjv 技术交流群]

2017年3月29日 (三) 10:46的最后版本

Adafruit_SSD1306 github: Adafruit_SSD1306

Adafruit_SSD1306

Compatibility -- 兼容性

MCU Tested Works Doesn't Work Not Tested Notes
Atmega328 @ 16MHz X
Atmega328 @ 12MHz X
Atmega32u4 @ 16MHz X
Atmega32u4 @ 8MHz X
ESP8266 X change OLED_RESET to different pin if using default I2C pins D4/D5.
Atmega2560 @ 16MHz X
ATSAM3X8E X
ATSAM21D X
ATtiny85 @ 16MHz X
ATtiny85 @ 8MHz X
Intel Curie @ 32MHz X
STM32F2 X
  • ATmega328 @ 16MHz : Arduino UNO, Adafruit Pro Trinket 5V, Adafruit Metro 328, Adafruit Metro Mini
  • ATmega328 @ 12MHz : Adafruit Pro Trinket 3V
  • ATmega32u4 @ 16MHz : Arduino Leonardo, Arduino Micro, Arduino Yun, Teensy 2.0
  • ATmega32u4 @ 8MHz : Adafruit Flora, Bluefruit Micro
  • ESP8266 : Adafruit Huzzah
  • ATmega2560 @ 16MHz : Arduino Mega
  • ATSAM3X8E : Arduino Due
  • ATSAM21D : Arduino Zero, M0 Pro
  • ATtiny85 @ 16MHz : Adafruit Trinket 5V
  • ATtiny85 @ 8MHz : Adafruit Gemma, Arduino Gemma, Adafruit Trinket 3V


Examples

- XX :
- XX :
- XX :
- XX :



Adafruit_SSD1306 Reference

BLACK 0

WHITE 1

INVERSE 2

- Adafruit_SSD1306(int8_t SID, int8_t SCLK, int8_t DC, int8_t RST, int8_t CS);

- Adafruit_SSD1306(int8_t DC, int8_t RST, int8_t CS);

- Adafruit_SSD1306(int8_t RST = -1);

- begin

- ssd1306_command

- clearDisplay

- invertDisplay

- display

- ssd1306_command

- ssd1306_command

- startscrollright

- startscrollleft

- startscrolldiagright

- startscrolldiagleft

- stopscroll

- dim

- drawPixel

- drawFastVLine

- drawFastHLine


关联库:Adafruit_GFX库






返回Arduino库菜单

返回首页

更多建议和问题欢迎反馈至 YFRobot论坛

欢迎加入群聊:技术交流群