
Arduino/Genuino 101 example to read button and tur.Config HC-05(s) as paired Master and Slave.Arduino/Genuino 101 CurieIMU Orientation Visualiser.NodeMCU (ESP8266) to display on 128圆4 I2C OLED, u.Hello World NodeMCU (ESP8266) + 128圆4 I2C OLED, u.esp8266-OLED, esp8266-Arduino library for I2C-OLED.NodeMCU (ESP8266) call function repeatedly in fixe.NodeMCU/ESP8266: get ESP chip and flash info.Intel releases the Arduino 101 Firmware source code.Control Arduino/Genuino 101 onboard LED from Andro.

StrTemp.toCharArray(bufTemp,5) // conversion of t as string to arrayĭisplay.print((bufTemp),5,1) // Display the Temperature value (array) on OLEDĭisplay.print((bufHumi),7,1) // Display the Humidity value (array)on OLED StrTemp = String(t) // conversion of t as float to a string

H = dht.readHumidity() // read temperature as float from DHT22 I found the following solution to display variables with the OLED.h library, here is an example to display the temperature & humidity from DHT22 that worked for me:įloat h // read the humidity value from the DHT22įloat t // read the temperature value from the DHT22Ĭhar bufHumi // array to store the humidity value to display on OLED ex: 20.40Ĭhar bufTemp // array store the temperature value to display on OLED ex: 22.00 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:

