From 746ad7062dfdaa0a8c58e86d3fc0ad56fe040084 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Sun, 30 Jun 2019 01:25:28 +0300 Subject: [PATCH] Add config for push button of Arilux AL-LC06 (#1794) Button is not visible from the outside, but can be wired outside or made more accessible by using a thin object, so it feels more like a button than a hole. The configuration should not cause issues if the button is not used at all. --- code/espurna/config/hardware.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index d37c8ace..9b6c4f5e 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -1681,6 +1681,11 @@ #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER #define DUMMY_RELAY_COUNT 1 + // Buttons + #define BUTTON1_PIN 0 + #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH + #define BUTTON1_RELAY 1 + // Light #define LIGHT_CHANNELS 5 #define LIGHT_CH1_PIN 14 // RED