Browse Source

Add dummy image that would compile in a lot of functionality.

rfm69
Lazar Obradovic 6 years ago
parent
commit
a20de2ce42
3 changed files with 82 additions and 1 deletions
  1. +1
    -1
      .travis.yml
  2. +68
    -0
      code/espurna/config/hardware.h
  3. +13
    -0
      code/platformio.ini

+ 1
- 1
.travis.yml View File

@ -9,7 +9,7 @@ install:
- pip install -U platformio
- cd code ; npm install --only=dev ; cd ..
script:
- cd code ; ./build.sh; cd ..
- cd code && ./build.sh travis01 && cd ..
before_deploy:
- mv firmware/*/espurna-*.bin firmware/
deploy:


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

@ -1532,6 +1532,74 @@
#define TERMINAL_SUPPORT 0
#define DEBUG_SERIAL_SUPPORT 0
#elif defined(TRAVIS01)
// Info
#define MANUFACTURER "TravisCI"
#define DEVICE "Virtual board 01"
// Some buttons
#define BUTTON1_PIN 0
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY 1
// Some relays
#define RELAY1_PIN 1
#define RELAY1_TYPE RELAY_TYPE_NORMAL
// Some LEDs
#define LED1_PIN 2
#define LED1_PIN_INVERSE 1
// A bit of I2C
#define I2C_SDA_PIN 3
#define I2C_SCL_PIN 4
// and, as they say in "From Dusk till Dawn":
// This is a sensor blow out!
// Alright, we got white sensor, black sensor, spanish sensor, yellow sensor. We got hot sensor, cold sensor.
// We got wet sensor. We got smelly sensor. We got hairy sensor, bloody sensor. We got snapping sensor.
// We got silk sensor, velvet sensor, naugahyde sensor. We even got horse sensor, dog sensor, chicken sensor.
// C'mon, you want sensor, come on in sensor lovers!
// If we dont got it, you don't want it!
#define BH1750_SUPPORT 1
#define BMX280_SUPPORT 1
#define SHT3X_I2C_SUPPORT 1
#define EMON_ADC121_SUPPORT 1
#define EMON_ADS1X15_SUPPORT 1
#define SHT3X_I2C_SUPPORT 1
#define SI7021_SUPPORT 1
// A bit of lights.
#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
#define DUMMY_RELAY_COUNT 1
#define LIGHT_CHANNELS 1
#define LIGHT_CH1_PIN 5
#define LIGHT_CH1_INVERSE 0
// A bit of HLW8012
#ifndef HLW8012_SUPPORT
#define HLW8012_SUPPORT 1
#endif
#define HLW8012_SEL_PIN 6
#define HLW8012_CF1_PIN 7
#define HLW8012_CF_PIN 8
// A bit of Dallas
#ifndef DALLAS_SUPPORT
#define DALLAS_SUPPORT 1
#endif
#define DALLAS_PIN 9
// And some ECH1560
#ifndef ECH1560_SUPPORT
#define ECH1560_SUPPORT 1
#endif
#define ECH1560_CLK_PIN 10
#define ECH1560_MISO_PIN 11
#define ECH1560_INVERTED 12
#endif
// -----------------------------------------------------------------------------


+ 13
- 0
code/platformio.ini View File

@ -1526,3 +1526,16 @@ upload_speed = 115200
upload_port = "${env.ESPURNA_IP}"
upload_flags = --auth=${env.ESPURNA_AUTH} --port 8266
extra_scripts = ${common.extra_scripts}
# ------------------------------------------------------------------------------
# SPECIAL BUILDS - DO. NOT. USE. ever ---
# ------------------------------------------------------------------------------
[env:travis01]
platform = ${common.platform}
framework = arduino
board = esp12e
lib_deps = ${common.lib_deps}
lib_ignore = ${common.lib_ignore}
build_flags = ${common.build_flags} -DTRAVIS01
monitor_baud = 115200
extra_scripts = ${common.extra_scripts}

Loading…
Cancel
Save