![]() Another library of I2C OLED for ESP8266 core for Arduino - Adafruit SSD1306 library SDA and SCL are the GPIO pins of ESP8266 that are connected to respective pins of display.ĭisplay.print("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.") We need to include Wire.h for I2C communication Example sketch for testing OLED display ![]() Refer to the "The pin definition" in NodeMCU - ESP8266/CP2102. Where 4, 5 correspond to NodeMCU D2 and D1. In order to match with our connection, we have to modify it to correct SDA and SCL pins: Place the OLED folder in your /libraries/ folder - you may need to create the libraries subfolder if it is your first library.įile > Examples > ESP8266-OLED Display Library > example.Check that the OLED folder contains OLED.cpp and OLED.h files.Rename the uncompressed folder to OLED.Click on the Download ZIP button in the top right corner.Visit, follow the steps to install the library: Add esp8266-OLED library to Arduino Software: (reamrk: the Fritzing parts of can OLED_SSD1306_I2C_128圆4 can be download HERE)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |