define secrets
This commit is contained in:
7
.vscode/arduino.json
vendored
Normal file
7
.vscode/arduino.json
vendored
Normal file
@@ -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"
|
||||
}
|
||||
14
.vscode/c_cpp_properties.json
vendored
Normal file
14
.vscode/c_cpp_properties.json
vendored
Normal file
@@ -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
|
||||
}
|
||||
16
README.md
16
README.md
@@ -1,4 +1,18 @@
|
||||
# arduino-covid
|
||||
|
||||
|
||||
teateteat
|
||||
## Configuration on Wemos D1
|
||||
|
||||
### Pinnout
|
||||
|
||||
|
||||
| OLED PIN | Board PIN |
|
||||
| ----------- | ----------- |
|
||||
| GND | GND |
|
||||
| VCC | 5V |
|
||||
| SCL | D1 |
|
||||
| SDA | D2 |
|
||||
|
||||
|
||||
### Secrets
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user