From e5b1352d4191a5a5e2024470cf7dde280fdf4a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Fri, 20 Jan 2017 14:41:14 +0100 Subject: [PATCH] Added missing configuration values to 1ch-inching board --- code/espurna/config/hardware.h | 3 +++ code/espurna/data/index.html.gz | Bin 3714 -> 3716 bytes code/espurna/relay.ino | 2 +- code/html/index.html | 10 +++++----- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 71ddf4f7..2d0dd5f2 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -146,8 +146,11 @@ #define MANUFACTURER "ITEAD" #define DEVICE "1CH_INCHING" #define BUTTON1_PIN 0 + #define BUTTON1_RELAY 1 #define BUTTON2_PIN 15 + #define BUTTON2_RELAY 0 #define RELAY1_PIN 12 + #define RELAY1_PIN_INVERSE 0 #define LED1_PIN 13 #define LED1_PIN_INVERSE 0 #define LED_PULSE 14 diff --git a/code/espurna/data/index.html.gz b/code/espurna/data/index.html.gz index 64b44bfd24a0dbfeedfc689f0cabd679e90079e9..bde3ff451a0fbb148705fc21c8609ff56df87187 100644 GIT binary patch literal 3716 zcmV-~4twz*iwFP!000001I=7*Q{y-i{wq3f-7Zv-1j5YL)Gnlo0%kXLGr&P+x!o^U zimk*tY|CrOgv{0bvHN(x?7CaBV>=0uH+E}kz%Np(-_&}#C3EtZi|g~juQ!)0G;!2B zaX$qQdM8GjNc1l6Zt^VQ?63|0PCEACNh}O!e#kQ|%&C`~QR{=(JBeiSz%mh?dOB2@ z@pHqZuM&@$X(~=V8S}B|JhkkzFcYIwZ^R$*whcc#M>gRxG=7v~k^&Kr!D}ND7-k{^ z6P^YFdWaU?9LPi($)lF`c_dDc>O7cfBy=c*DF&k_ZC`6>*RetlRWR+H1oDx|;M9xw zROJTVa@XUVSR}be@9^pq5C?`LuC;y8!r`F3PI&?}-7h|)Nd4`t>z3x3Xt~GOe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ino index dfdcffeb..f6cddb25 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -118,7 +118,7 @@ void relayPulseMode(unsigned int value, bool report) { wsSend(message); #ifdef LED_PULSE - digitalWrite(LED_PULSE, relayPulseMode != RELAY_PULSE_NONE); + digitalWrite(LED_PULSE, value != RELAY_PULSE_NONE); #endif } diff --git a/code/html/index.html b/code/html/index.html index defd5d43..fcbfb0d9 100644 --- a/code/html/index.html +++ b/code/html/index.html @@ -197,7 +197,7 @@
-