Professional Documents
Culture Documents
h>
#include <ESP8266HTTPClient.h> // http web access library
#include <ArduinoJson.h> // JSON decoding library
SETUP
VOID-------------------------------------------------------------------------------
-------------
---i2c oled----
Wire.begin(4, 0); // set I2C pins [SDA = GPIO4 (D2), SCL = GPIO0 (D3)],
default clock is 100kHz
Wire.setClock(400000L); // set I2C clock to 400kHz
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // initialize with the I2C addr 0x3D
(for the 128x64)