Browse Source

Example for Generic ESP01 boards with 512KiB flash (#2185)

Co-authored-by: ziggurat29 <xxx@yyy.zzz>
mcspr-patch-1
ziggurat29 4 years ago
committed by GitHub
parent
commit
7496606140
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 0 deletions
  1. +2
    -0
      code/espurna/board.ino
  2. +1
    -0
      code/espurna/config/arduino.h
  3. +16
    -0
      code/espurna/config/hardware.h
  4. +4
    -0
      code/platformio.ini

+ 2
- 0
code/espurna/board.ino View File

@ -646,6 +646,8 @@ int getBoardId() {
return 154; return 154;
#elif defined(LINKSPRITE_LINKNODE_R4) #elif defined(LINKSPRITE_LINKNODE_R4)
return 155; return 155;
#elif defined(GENERIC_ESP01_512KB)
return 156;
#else #else
return -1; // CUSTOM return -1; // CUSTOM
#endif #endif


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

@ -56,6 +56,7 @@
//#define GENERIC_ESP01S_DS18B20_V10 //#define GENERIC_ESP01S_DS18B20_V10
//#define GENERIC_ESP01S_RELAY_V40 //#define GENERIC_ESP01S_RELAY_V40
//#define GENERIC_ESP01S_RGBLED_V10 //#define GENERIC_ESP01S_RGBLED_V10
//#define GENERIC_ESP01_512KB
//#define GENERIC_GU10 //#define GENERIC_GU10
//#define GENERIC_V9261F //#define GENERIC_V9261F
//#define GIZWITS_WITTY_CLOUD //#define GIZWITS_WITTY_CLOUD


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

@ -4512,6 +4512,22 @@
#define RELAY3_TYPE RELAY_TYPE_NORMAL #define RELAY3_TYPE RELAY_TYPE_NORMAL
#define RELAY4_TYPE RELAY_TYPE_NORMAL #define RELAY4_TYPE RELAY_TYPE_NORMAL
// -----------------------------------------------------------------------------
// ESP-01 generic esp8266 board with 512 kB flash
// // -----------------------------------------------------------------------------
#elif defined(GENERIC_ESP01_512KB)
// Info
#define MANUFACTURER "GENERIC"
#define DEVICE "ESP01_512KB"
// Relays
#define RELAY1_PIN 2
#ifndef RELAY1_TYPE
#define RELAY1_TYPE RELAY_TYPE_NORMAL
#endif
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
#else #else


+ 4
- 0
code/platformio.ini View File

@ -72,6 +72,7 @@ debug_flags = -DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP
# TLS_RSA_WITH_AES_256_CBC_SHA / AES256-SHA # TLS_RSA_WITH_AES_256_CBC_SHA / AES256-SHA
# This reduces the OTA size with ~45KB, so it's especially useful on low memory boards (512k/1m). # This reduces the OTA size with ~45KB, so it's especially useful on low memory boards (512k/1m).
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
board_512k = esp01
board_1m = esp01_1m board_1m = esp01_1m
board_2m = esp_wroom_02 board_2m = esp_wroom_02
board_4m = esp12e board_4m = esp12e
@ -956,3 +957,6 @@ build_flags = ${common.build_flags_1m0m} -DEHOMEDIY_WT02
board = ${common.board_1m} board = ${common.board_1m}
build_flags = ${common.build_flags_1m0m} -DEHOMEDIY_WT03 build_flags = ${common.build_flags_1m0m} -DEHOMEDIY_WT03
[env:generic-esp01-512kb]
board = ${common.board_512k}
build_flags = ${common.build_flags_512k} -DGENERIC_ESP01_512KB

Loading…
Cancel
Save