File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Arduino libraries and sketches.
12
12
* [ Interfacing SSD1306 based OLED displays (SPI)] ( #interfacing-ssd1306-based-oled-displays-spi )
13
13
* [ Colorduino RGB matrix driver] ( #colorduino-rgb-matrix-driver )
14
14
* [ CJMCU-8x8 RGB matix] ( #cjmcu-8x8-rgb-matix )
15
+ * [ WEMOS D-Duino] ( #wemos-d-duino )
15
16
16
17
<!-- vim-markdown-toc -->
17
18
@@ -63,4 +64,13 @@ An 8x8 LED RGB matrix based on WS2812 "NeoPixels".
63
64
64
65
<img alt="CJMCU-8*8" width=256 src="images/cjmcu-8x8/cjmcu.jpg">
65
66
66
- * see [README of example sketch](cjmcu_8x8_sample/README.md) for detailed information.
67
+ ### WEMOS D-Duino
68
+
69
+ The Wemos D-Duino is a ESP8266 board with an integrated SSD1306 OLED display
70
+ connected via I2C.
71
+
72
+ <img alt="wemos-d-duino" width=256 src="images/wemos-d-duino.png">
73
+
74
+ * see [example sketch](wemos_d_duino) for an example on how to use it with
75
+ the u8g2 library.
76
+
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Demo for WEMOS "D-DUINO" w/ I2C SSD1306 based 128x64 OLED module using u8glib2.
3
+ */
4
+
5
+ #include " U8g2lib.h"
6
+ #include < pins_arduino.h>
7
+
8
+ // connected via I2C D1-SDA, D2-SCL
9
+ U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2 (U8G2_R0, D2 /* SCL */ , D1 /* SDA */ );
10
+
11
+ void setup (void ) {
12
+ u8g2.begin ();
13
+ }
14
+
15
+ /* draw something on the display with the `firstPage()`/`nextPage()` loop*/
16
+ void loop (void ) {
17
+ u8g2.firstPage ();
18
+ do {
19
+ u8g2.setFont (u8g2_font_torussansbold8_8r);
20
+ u8g2.drawStr (0 ,20 ," WEMOS D-DUINO" );
21
+ u8g2.drawStr (0 ,40 ," SSD1306 (I2C)" );
22
+ } while ( u8g2.nextPage () );
23
+ delay (1000 );
24
+ }
25
+
You can’t perform that action at this time.
0 commit comments