From c556d73cb09a9df9ccd39e00b37a271e04920beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20S=C3=A1nchez?= Date: Sat, 8 Dec 2018 18:59:45 +0100 Subject: [PATCH] Added support for Orvibo B25 --- code/espurna/config/arduino.h | 1 + code/espurna/config/hardware.h | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/code/espurna/config/arduino.h b/code/espurna/config/arduino.h index e7405081..e670f393 100644 --- a/code/espurna/config/arduino.h +++ b/code/espurna/config/arduino.h @@ -36,6 +36,7 @@ //#define ITEAD_SONOFF_T1_2CH //#define ITEAD_SONOFF_T1_3CH //#define ITEAD_SONOFF_S31 +//#define ORVIBO_B25 //#define YJZK_SWITCH_2CH //#define ELECTRODRAGON_WIFI_IOT //#define WORKCHOICE_ECOPLUG diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index afb0bcc1..ac8d3944 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -930,6 +930,31 @@ #define LED1_PIN 13 #define LED1_PIN_INVERSE 1 +// ----------------------------------------------------------------------------- +// ORVIBO +// ----------------------------------------------------------------------------- + +#elif defined(ORVIBO_B25) + + // Info + #define MANUFACTURER "ORVIBO" + #define DEVICE "B25" + + // Buttons + #define BUTTON1_PIN 14 + #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH + #define BUTTON1_RELAY 1 + + // Relays + #define RELAY1_PIN 5 + #define RELAY1_TYPE RELAY_TYPE_NORMAL + + // LEDs + #define LED1_PIN 12 // 4 blue led + #define LED1_PIN_INVERSE 1 + #define LED2_PIN 4 // 12 red led + #define LED2_PIN_INVERSE 1 + // ----------------------------------------------------------------------------- // YJZK // -----------------------------------------------------------------------------