Browse Source

Merge pull request #1765 from mcspr/gpio/serial-debug

Disable Serial log for hardware using TX or RX pins
master
Xose Pérez 5 years ago
committed by GitHub
parent
commit
668dabe6f6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 6 deletions
  1. +18
    -6
      code/espurna/config/hardware.h

+ 18
- 6
code/espurna/config/hardware.h View File

@ -2071,6 +2071,9 @@
#define HLW8012_CURRENT_R 0.002 // Current resistor #define HLW8012_CURRENT_R 0.002 // Current resistor
#define HLW8012_VOLTAGE_R_UP ( 2 * 1000000 ) // Upstream voltage resistor #define HLW8012_VOLTAGE_R_UP ( 2 * 1000000 ) // Upstream voltage resistor
// LED1 on RX pin
#define DEBUG_SERIAL_SUPPORT 1
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// Maxcio W-DE004 // Maxcio W-DE004
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
@ -2489,11 +2492,11 @@
#define LED1_PIN 1 #define LED1_PIN 1
#define LED1_PIN_INVERSE 1 #define LED1_PIN_INVERSE 1
// -----------------------------------------------------------------------------
// Allnet 4duino ESP8266-UP-Relais
// http://www.allnet.de/de/allnet-brand/produkte/neuheiten/p/allnet-4duino-iot-wlan-relais-unterputz-esp8266-up-relais/
// https://shop.allnet.de/fileadmin/transfer/products/148814.pdf
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// Allnet 4duino ESP8266-UP-Relais
// http://www.allnet.de/de/allnet-brand/produkte/neuheiten/p/allnet-4duino-iot-wlan-relais-unterputz-esp8266-up-relais/
// https://shop.allnet.de/fileadmin/transfer/products/148814.pdf
// -----------------------------------------------------------------------------
#elif defined(ALLNET_4DUINO_IOT_WLAN_RELAIS) #elif defined(ALLNET_4DUINO_IOT_WLAN_RELAIS)
@ -2799,6 +2802,9 @@
#define HLW8012_POWER_RATIO 3414290 #define HLW8012_POWER_RATIO 3414290
#define HLW8012_INTERRUPT_ON FALLING #define HLW8012_INTERRUPT_ON FALLING
// BUTTON1 and LED1 are using Serial pins
#define DEBUG_SERIAL_SUPPORT 0
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// Teckin SP22 v1.4 - v1.6 // Teckin SP22 v1.4 - v1.6
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
@ -2840,6 +2846,9 @@
#define HLW8012_POWER_RATIO 2533110 #define HLW8012_POWER_RATIO 2533110
#define HLW8012_INTERRUPT_ON FALLING #define HLW8012_INTERRUPT_ON FALLING
// BUTTON1 and LED1 are using Serial pins
#define DEBUG_SERIAL_SUPPORT 0
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// Several boards under different names uing a power chip labelled BL0937 or HJL-01 // Several boards under different names uing a power chip labelled BL0937 or HJL-01
// Also model number KS-602S // Also model number KS-602S
@ -2864,6 +2873,9 @@
#define LED1_PIN 1 #define LED1_PIN 1
#define LED1_PIN_INVERSE 1 #define LED1_PIN_INVERSE 1
// LED1 is using TX pin
#define DEBUG_SERIAL_SUPPORT 0
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
// Homecube 16A is similar but some pins differ and it also has RGB LEDs // Homecube 16A is similar but some pins differ and it also has RGB LEDs
// https://www.amazon.de/gp/product/B07D7RVF56/ref=oh_aui_detailpage_o00_s01?ie=UTF8&psc=1 // https://www.amazon.de/gp/product/B07D7RVF56/ref=oh_aui_detailpage_o00_s01?ie=UTF8&psc=1
@ -3441,7 +3453,7 @@
// Teckin SP20 // Teckin SP20
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
#elif defined(TECKIN_SP20)
#elif defined(TECKIN_SP20)
// Info // Info
#define MANUFACTURER "TECKIN" #define MANUFACTURER "TECKIN"


Loading…
Cancel
Save