Browse Source

Fix Sonoff T1 definitions

fastled
Xose Pérez 7 years ago
parent
commit
6feea2c147
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      code/espurna/config/hardware.h

+ 4
- 4
code/espurna/config/hardware.h View File

@ -535,12 +535,12 @@
#define DEVICE "SONOFF_T1_1CH" #define DEVICE "SONOFF_T1_1CH"
// Buttons // Buttons
#define BUTTON1_PIN 9
#define BUTTON1_PIN 0
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY 1 #define BUTTON1_RELAY 1
// Relays // Relays
#define RELAY1_PIN 5
#define RELAY1_PIN 12
#define RELAY1_TYPE RELAY_TYPE_NORMAL #define RELAY1_TYPE RELAY_TYPE_NORMAL
// LEDs // LEDs
@ -555,7 +555,7 @@
// Buttons // Buttons
#define BUTTON1_PIN 0 #define BUTTON1_PIN 0
#define BUTTON2_PIN 10
#define BUTTON2_PIN 9
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH #define BUTTON2_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
@ -565,7 +565,7 @@
// Relays // Relays
#define RELAY1_PIN 12 #define RELAY1_PIN 12
#define RELAY2_PIN 4
#define RELAY2_PIN 5
#define RELAY1_TYPE RELAY_TYPE_NORMAL #define RELAY1_TYPE RELAY_TYPE_NORMAL
#define RELAY2_TYPE RELAY_TYPE_NORMAL #define RELAY2_TYPE RELAY_TYPE_NORMAL


Loading…
Cancel
Save