From 7fe281f379647d9e963e9c735d2e9b5f17765b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 19 Dec 2016 13:05:55 +0100 Subject: [PATCH] Add config placeholder for Itead's 1CH inching module --- code/platformio.ini | 9 +++++++++ code/src/config/hardware.h | 9 +++++++++ 2 files changed, 18 insertions(+) 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 // -----------------------------------------------------------------------------