hackqosa.blogg.se

Arduino wire library commands
Arduino wire library commands











arduino wire library commands arduino wire library commands

Note: By default, #define SCREEN_ADDRESS is set to 0x3D in the example provided by Adafruit. There you can select the appropriate example for your display size. On Arduino IDE, you can access them by going to File>Examples and then scrolling until you find the option ‘ Adafruit SSD1306‘. Writing Arduino Code For SSD1306 OLED DisplayĪdafruit provides example sketches that can help you get started. Arduino UNO and SSD1306 OLED display connection diagram In the case of Arduino Leonardo, the SDA pin is 2 & the SCL pin is 3. In the case of Arduino Mega 2560, the SDA pin is 20 & the SCL pin is 21. Note that in the case of other Arduino boards, the connections will change. Connection Diagram Of Arduino UNO & OLED DisplayĬonnect your Arduino to the OLED display as shown in the diagram below.













Arduino wire library commands