diff --git a/code/espurna/config/arduino.h b/code/espurna/config/arduino.h index c4497ea8..65caa256 100644 --- a/code/espurna/config/arduino.h +++ b/code/espurna/config/arduino.h @@ -34,6 +34,7 @@ //#define EXS_WIFI_RELAY_V50 //#define FORNORM_ZLD_34EU //#define FOXEL_LIGHTFOX_DUAL +//#define FS_UAP1 //#define GBLIFE_RGBW_SOCKET //#define GENERIC_8CH //#define GENERIC_AG_L4 diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index c2e6f323..9d8e3d9b 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -3875,6 +3875,40 @@ #define HLW8012_VOLTAGE_R_DOWN ( 1000 ) // Downstream voltage resistor #define HLW8012_INTERRUPT_ON CHANGE +// ----------------------------------------------------------------------------- +// FS UAP1 +// http://frank-schuetz.de/index.php/fhem/13-hoermann-torantrieb-mit-espeasy-in-fhem-einbinden + +#elif defined(FS_UAP1) + + // Info + #define MANUFACTURER "FS" + #define DEVICE "UAP1" + + // Inputs + #define DIGITAL1_PIN 4 + #define DIGITAL2_PIN 5 + + // Relays + #define RELAY1_PIN 12 + #define RELAY2_PIN 13 + #define RELAY3_PIN 14 + #define RELAY4_PIN 15 + + #define RELAY1_TYPE RELAY_TYPE_NORMAL + #define RELAY2_TYPE RELAY_TYPE_NORMAL + #define RELAY3_TYPE RELAY_TYPE_NORMAL + #define RELAY4_TYPE RELAY_TYPE_NORMAL + + // LEDs + #define LED1_PIN 2 + #define LED1_PIN_INVERSE 0 + + // Disable UART noise + #define DEBUG_SERIAL_SUPPORT 0 + +// ----------------------------------------------------------------------------- + // ----------------------------------------------------------------------------- // TEST boards (do not use!!) // ----------------------------------------------------------------------------- diff --git a/code/platformio.ini b/code/platformio.ini index a2ef2ced..d6de28fc 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -1594,3 +1594,13 @@ board = ${common.board_1m} build_flags = ${common.build_flags_1m0m} -DETEKCITY_ESW01_USA upload_port = ${common.ota_upload_port} upload_flags = ${common.ota_upload_flags} + +[env:fs-uap1] +board = ${common.board_4m} +build_flags = ${common.build_flags_4m1m} -DFS_UAP1 + +[env:fs-uap1-ota] +board = ${common.board_4m} +build_flags = ${common.build_flags_4m1m} -DFS_UAP1 +upload_port = ${common.ota_upload_port} +upload_flags = ${common.ota_upload_flags} \ No newline at end of file