Browse Source

Fixes in definition of MagicHome Led Controller board

fastled
Xose Pérez 7 years ago
parent
commit
da03adab97
3 changed files with 8 additions and 7 deletions
  1. +2
    -1
      code/espurna/espurna.ino
  2. +2
    -2
      code/espurna/relay.ino
  3. +4
    -4
      code/platformio.ini

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

@ -122,7 +122,8 @@ void welcome() {
DEBUG_MSG_P(PSTR("ChipID: %06X\n"), ESP.getChipId()); DEBUG_MSG_P(PSTR("ChipID: %06X\n"), ESP.getChipId());
DEBUG_MSG_P(PSTR("CPU frequency: %d MHz\n"), ESP.getCpuFreqMHz()); DEBUG_MSG_P(PSTR("CPU frequency: %d MHz\n"), ESP.getCpuFreqMHz());
DEBUG_MSG_P(PSTR("Last reset reason: %s\n"), (char *) ESP.getResetReason().c_str()); DEBUG_MSG_P(PSTR("Last reset reason: %s\n"), (char *) ESP.getResetReason().c_str());
DEBUG_MSG_P(PSTR("Memory size: %d bytes\n"), ESP.getFlashChipSize());
DEBUG_MSG_P(PSTR("Memory size (SDK): %d bytes\n"), ESP.getFlashChipSize());
DEBUG_MSG_P(PSTR("Memory size (CHIP): %d bytes\n"), ESP.getFlashChipRealSize());
DEBUG_MSG_P(PSTR("Free heap: %d bytes\n"), ESP.getFreeHeap()); DEBUG_MSG_P(PSTR("Free heap: %d bytes\n"), ESP.getFreeHeap());
DEBUG_MSG_P(PSTR("Firmware size: %d bytes\n"), ESP.getSketchSize()); DEBUG_MSG_P(PSTR("Firmware size: %d bytes\n"), ESP.getSketchSize());
DEBUG_MSG_P(PSTR("Free firmware space: %d bytes\n"), ESP.getFreeSketchSpace()); DEBUG_MSG_P(PSTR("Free firmware space: %d bytes\n"), ESP.getFreeSketchSpace());


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

@ -445,9 +445,9 @@ void relaySetup() {
_relays.push_back((relay_t) {0, 0}); _relays.push_back((relay_t) {0, 0});
_relays.push_back((relay_t) {0, 0}); _relays.push_back((relay_t) {0, 0});
#elif defined(AI_LIGHT)
#elif defined(AI_LIGHT) | defined(LED_CONTROLLER)
// One dummy relay for the AI Thinker Light
// One dummy relay for the AI Thinker Light & Magic Home Led Controller
_relays.push_back((relay_t) {0, 0}); _relays.push_back((relay_t) {0, 0});
#else #else


+ 4
- 4
code/platformio.ini View File

@ -427,20 +427,20 @@ upload_flags = --auth=fibonacci --port 8266
[env:led-controller-debug] [env:led-controller-debug]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
board = esp12e
board = esp01_1m
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
lib_ignore = ${common.lib_ignore} lib_ignore = ${common.lib_ignore}
extra_script = pio_hooks.py extra_script = pio_hooks.py
build_flags = ${common.build_flags} -DLED_CONTROLLER
build_flags = ${common.build_flags_1m128} -DLED_CONTROLLER
[env:led-controller-debug-ota] [env:led-controller-debug-ota]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
board = esp12e
board = esp01_1m
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
lib_ignore = ${common.lib_ignore} lib_ignore = ${common.lib_ignore}
extra_script = pio_hooks.py extra_script = pio_hooks.py
build_flags = ${common.build_flags} -DLED_CONTROLLER
build_flags = ${common.build_flags_1m128} -DLED_CONTROLLER
upload_speed = 115200 upload_speed = 115200
upload_port = "192.168.4.1" upload_port = "192.168.4.1"
upload_flags = --auth=fibonacci --port 8266 upload_flags = --auth=fibonacci --port 8266

Loading…
Cancel
Save