Browse Source

Added missing configuration values to 1ch-inching board

fastled
Xose Pérez 7 years ago
parent
commit
e5b1352d41
4 changed files with 9 additions and 6 deletions
  1. +3
    -0
      code/espurna/config/hardware.h
  2. BIN
      code/espurna/data/index.html.gz
  3. +1
    -1
      code/espurna/relay.ino
  4. +5
    -5
      code/html/index.html

+ 3
- 0
code/espurna/config/hardware.h View File

@ -146,8 +146,11 @@
#define MANUFACTURER "ITEAD" #define MANUFACTURER "ITEAD"
#define DEVICE "1CH_INCHING" #define DEVICE "1CH_INCHING"
#define BUTTON1_PIN 0 #define BUTTON1_PIN 0
#define BUTTON1_RELAY 1
#define BUTTON2_PIN 15 #define BUTTON2_PIN 15
#define BUTTON2_RELAY 0
#define RELAY1_PIN 12 #define RELAY1_PIN 12
#define RELAY1_PIN_INVERSE 0
#define LED1_PIN 13 #define LED1_PIN 13
#define LED1_PIN_INVERSE 0 #define LED1_PIN_INVERSE 0
#define LED_PULSE 14 #define LED_PULSE 14


BIN
code/espurna/data/index.html.gz View File


+ 1
- 1
code/espurna/relay.ino View File

@ -118,7 +118,7 @@ void relayPulseMode(unsigned int value, bool report) {
wsSend(message); wsSend(message);
#ifdef LED_PULSE #ifdef LED_PULSE
digitalWrite(LED_PULSE, relayPulseMode != RELAY_PULSE_NONE);
digitalWrite(LED_PULSE, value != RELAY_PULSE_NONE);
#endif #endif
} }


+ 5
- 5
code/html/index.html View File

@ -197,7 +197,7 @@
<div class="pure-g"> <div class="pure-g">
<label class="pure-u-1 pure-u-md-1-4" for="relayMode">Relay boot mode</label> <label class="pure-u-1 pure-u-md-1-4" for="relayMode">Relay boot mode</label>
<div class="pure-u-1 pure-u-md-3-4"> <div class="pure-u-1 pure-u-md-3-4">
<select name="relayMode" class="pure-u-1-2" tabindex="2">
<select name="relayMode" class="pure-u-3-4" tabindex="2">
<option value="0">Always OFF</a> <option value="0">Always OFF</a>
<option value="1">Always ON</a> <option value="1">Always ON</a>
<option value="2">Same as before</a> <option value="2">Same as before</a>
@ -210,7 +210,7 @@
<div class="pure-g module module-multirelay"> <div class="pure-g module module-multirelay">
<label class="pure-u-1 pure-u-md-1-4" for="relaySync">Relay sync mode</label> <label class="pure-u-1 pure-u-md-1-4" for="relaySync">Relay sync mode</label>
<div class="pure-u-1 pure-u-md-3-4"> <div class="pure-u-1 pure-u-md-3-4">
<select name="relaySync" class="pure-u-1-2" tabindex="3">
<select name="relaySync" class="pure-u-3-4" tabindex="3">
<option value="0">No synchonisation</a> <option value="0">No synchonisation</a>
<option value="1">Zero or one relays active</a> <option value="1">Zero or one relays active</a>
<option value="2">One and just one relay active</a> <option value="2">One and just one relay active</a>
@ -224,10 +224,10 @@
<div class="pure-g"> <div class="pure-g">
<label class="pure-u-1 pure-u-md-1-4" for="relayPulseMode">Relay pulse mode</label> <label class="pure-u-1 pure-u-md-1-4" for="relayPulseMode">Relay pulse mode</label>
<div class="pure-u-1 pure-u-md-3-4"> <div class="pure-u-1 pure-u-md-3-4">
<select name="relayPulseMode" class="pure-u-1-2" tabindex="4">
<select name="relayPulseMode" class="pure-u-3-4" tabindex="4">
<option value="0">Don't pulse</a> <option value="0">Don't pulse</a>
<option value="1">Normally OFF (stays on for a brief interval)</a>
<option value="2">Normally ON (stays off for a brief interval)</a>
<option value="1">Normally OFF (stays on for a short time)</a>
<option value="2">Normally ON (stays off for a short time)</a>
</select> </select>
</div> </div>
<div class="pure-u-0 pure-u-md-1-4">&nbsp;</div> <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>


Loading…
Cancel
Save