diff --git a/platformio.ini b/platformio.ini index 1ea7ac6..6774145 100644 --- a/platformio.ini +++ b/platformio.ini @@ -8,9 +8,10 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html -[env:esp32cam] -platform = espressif32 -board = esp32cam +[env:d1_mini_lite] +platform = espressif8266 +board = d1_mini_lite +upload_protocol = esptool framework = arduino lib_deps = adafruit/Adafruit SSD1306@^2.5.7 diff --git a/src/main.cpp b/src/main.cpp index 9764535..150138b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,16 +14,16 @@ #define SCREEN_ADDRESS 0x3C ///< See datasheet for Address; 0x3D for 128x64, 0x3C for 128x32 Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); -#define SDA 12 -#define SCL 13 +#define SDA 4 +#define SCL 5 -#define SORTIE_RELAIS 16 +#define SORTIE_RELAIS 1 #define LED_FLASH 4 -#define LED_BUILTIN 33 +//#define LED_BUILTIN 33 -#define ENCROT_A 14 -#define ENCROT_B 15 -#define ENCROT_BP 2 +#define ENCROT_A 2 +#define ENCROT_B 0 +#define ENCROT_BP 3 // Setup a RotaryEncoder with 2 steps per latch for the 2 signal input pins: RotaryEncoder encoder(ENCROT_A, ENCROT_B, RotaryEncoder::LatchMode::TWO03);