diff --git a/.vscode/arduino.json b/.vscode/arduino.json new file mode 100644 index 0000000..3003b51 --- /dev/null +++ b/.vscode/arduino.json @@ -0,0 +1,7 @@ +{ + "board": "esp8266:esp8266:d1", + "configuration": "xtal=80,vt=flash,exception=legacy,ssl=all,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600", + "programmer": "AVRISP mkII", + "sketch": "arduino-covid.ino", + "port": "COM5" +} \ No newline at end of file diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..dfaabf6 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,14 @@ +{ + "configurations": [ + { + "name": "Win32", + "includePath": [ + "C:\\Users\\lade\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\**", + "C:\\Users\\lade\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\**" + ], + "forcedInclude": [], + "intelliSenseMode": "msvc-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/README.md b/README.md index 1fe2371..06d0b37 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,18 @@ # arduino-covid -teateteat \ No newline at end of file +## Configuration on Wemos D1 + +### Pinnout + + +| OLED PIN | Board PIN | +| ----------- | ----------- | +| GND | GND | +| VCC | 5V | +| SCL | D1 | +| SDA | D2 | + + +### Secrets + diff --git a/arduino-covid.ino b/arduino-covid.ino index c159bd9..dce7ef4 100644 --- a/arduino-covid.ino +++ b/arduino-covid.ino @@ -14,6 +14,9 @@ #define OLED_RESET 0 // GPIO0 +#define SECRET_SSID "lauIOT" +#define SECRET_PASS "superiot1" + Adafruit_SSD1306 OLED(OLED_RESET); ESP8266WiFiMulti WiFiMulti; @@ -24,7 +27,7 @@ void setup() { delay(1000); Serial.flush(); WiFi.mode(WIFI_STA); - WiFiMulti.addAP("lauIOT", "superiot1"); + WiFiMulti.addAP(SECRET_SSID, SECRET_PASS); OLED.begin(); OLED.clearDisplay();