config I/O D1 Mini
This commit is contained in:
parent
04da921dc7
commit
dc76d0fad2
@ -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
|
||||
|
14
src/main.cpp
14
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user