diff --git a/code/platformio.ini b/code/platformio.ini index edc8d1d4..d1aa66de 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -190,6 +190,15 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 +[env:1ch-inching-debug] +platform = espressif8266 +framework = arduino +board = esp01_1m +lib_deps = ${common.lib_deps} +lib_ignore = ${common.lib_ignore} +extra_script = pio_hooks.py +build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DITEAD_1CH_INCHING + [env:electrodragon-debug] platform = espressif8266 framework = arduino diff --git a/code/src/config/hardware.h b/code/src/config/hardware.h index 249a21f6..e564cf32 100644 --- a/code/src/config/hardware.h +++ b/code/src/config/hardware.h @@ -113,6 +113,15 @@ #define LED_PIN 13 #define LED_PIN_INVERSE 0 +#elif defined(ITEAD_1CH_INCHING) + + #define MANUFACTURER "ITEAD" + #define DEVICE "1CH_INCHING" + #define BUTTON1_PIN 0 + #define RELAY1_PIN 12 + #define LED_PIN 13 + #define LED_PIN_INVERSE 0 + // ----------------------------------------------------------------------------- // Electrodragon boards // -----------------------------------------------------------------------------