Browse Source

Move all Arduino IDE configuration values to their own file

fastled
Xose Pérez 7 years ago
parent
commit
5f5eec8f16
5 changed files with 45 additions and 32 deletions
  1. +1
    -1
      code/debug
  2. +1
    -0
      code/espurna/config/all.h
  3. +40
    -0
      code/espurna/config/arduino.h
  4. +3
    -0
      code/espurna/config/general.h
  5. +0
    -31
      code/espurna/config/hardware.h

+ 1
- 1
code/debug View File

@ -4,7 +4,7 @@
# CONFIGURATION
# ------------------------------------------------------------------------------
ENVIRONMENT="node-debug"
ENVIRONMENT="d1-debug"
ADDR2LINE=$HOME/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-addr2line
DECODER=utils/EspStackTraceDecoder.jar
DECODER_ORIGIN=https://github.com/littleyoda/EspStackTraceDecoder/releases/download/untagged-83b6db3208da17a0f1fd/EspStackTraceDecoder.jar


+ 1
- 0
code/espurna/config/all.h View File

@ -1,4 +1,5 @@
#include "version.h"
#include "arduino.h"
#include "debug.h"
#include "general.h"
#include "hardware.h"


+ 40
- 0
code/espurna/config/arduino.h View File

@ -0,0 +1,40 @@
//--------------------------------------------------------------------------------
// This setting is normally provided by PlatformIO
// Uncomment the appropiate line to build from the Arduino IDE
//--------------------------------------------------------------------------------
//--------------------------------------------------------------------------------
// General
//--------------------------------------------------------------------------------
//#define DEBUG_PORT Serial
//--------------------------------------------------------------------------------
// Hardware
//--------------------------------------------------------------------------------
//#define D1_RELAYSHIELD
//#define NODEMCUV2
//#define SONOFF
//#define SONOFF_TH
//#define SLAMPHER
//#define S20
//#define SONOFF_SV
//#define SONOFF_POW
//#define SONOFF_DUAL
//#define SONOFF_4CH
//#define ESP_RELAY_BOARD
//#define ECOPLUG
//#define ESPURNA
//--------------------------------------------------------------------------------
// Features
//--------------------------------------------------------------------------------
//#define ENABLE_DHT 1
//#define ENABLE_DS18B20 1
//#define ENABLE_EMON 1
//#define ENABLE_HLW8018 1
//#define ENABLE_RF 1
//#define ENABLE_FAUXMO 0
//#define ENABLE_NOFUSS 1

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

@ -106,4 +106,7 @@
// FAUXO
// -----------------------------------------------------------------------------
#ifndef ENABLE_FAUXMO
#define ENABLE_FAUXMO 1
#endif
#define FAUXMO_ENABLED 1

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

@ -1,34 +1,3 @@
//--------------------------------------------------------------------------------
// HARDWARE
// This setting is normally provided by PlatformIO
// Uncomment the appropiate line to build from the Arduino IDE
//--------------------------------------------------------------------------------
//#define NODEMCUV2
//#define SONOFF
//#define SONOFF_TH
//#define SLAMPHER
//#define S20
//#define SONOFF_SV
//#define SONOFF_POW
//#define SONOFF_DUAL
//#define SONOFF_4CH
//#define ESP_RELAY_BOARD
//#define ECOPLUG
//#define ESPURNA
//#define ENABLE_DHT 1
//#define ENABLE_DS18B20 1
//#define ENABLE_EMON 1
//#define ENABLE_HLW8018 1
//#define ENABLE_RF 1
//#define ENABLE_FAUXMO 0
//#define ENABLE_NOFUSS 1
#ifndef ENABLE_FAUXMO
#define ENABLE_FAUXMO 1
#endif
// -----------------------------------------------------------------------------
// Development boards
// -----------------------------------------------------------------------------


Loading…
Cancel
Save