Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Options to let Github build a running FW #300

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- lolin_d32
- lolin_d32_pro
- lolin_d32_pro_sdmmc_pe
- lolin_d32_pro_sdmmc_pe_PN5180_LED12_notPW115
- nodemcu-32s
- az-delivery-devkit-v4
- ttgo_t8
Expand Down
19 changes: 19 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,25 @@ build_flags = ${env.build_flags}
-mfix-esp32-psram-cache-issue
-DLOG_BUFFER_SIZE=10240
-DBOARD_HAS_16MB_FLASH_AND_OTA_SUPPORT
-DPORT_EXPANDER_ENABLE
board_upload.maximum_size = 16777216
board_upload.flash_size = 16MB

[env:lolin_d32_pro_sdmmc_pe_PN5180_LED12_notPW115]
;https://docs.platformio.org/en/latest/boards/espressif32/lolin_d32_pro.html
board = lolin_d32_pro
board_build.partitions = custom_16mb_ota.csv
build_flags = ${env.build_flags}
-DHAL=7
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DLOG_BUFFER_SIZE=10240
-DBOARD_HAS_16MB_FLASH_AND_OTA_SUPPORT
-DPORT_EXPANDER_ENABLE
-DRFID_READER_TYPE_PN5180
-DNUM_INDICATOR_LEDS=12
-DPOWER=115
-DINVERT_POWER
board_upload.maximum_size = 16777216
board_upload.flash_size = 16MB

Expand Down
8 changes: 6 additions & 2 deletions src/settings-lolin_d32_pro_sdmmc_pe.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,13 @@
#define WAKEUP_BUTTON 36 // Defines the button that is used to wake up ESPuino from deepsleep; set to 99 to disable

// Power-control
#define POWER 32 // GPIO used to drive transistor-circuit, that switches off peripheral devices while ESP32-deepsleep
#ifndef POWER
#define POWER 32 // GPIO used to drive transistor-circuit, that switches off peripheral devices while ESP32-deepsleep
#endif
#ifdef POWER
//#define INVERT_POWER // If enabled, use inverted logic for POWER circuit, that means peripherals are turned off by writing HIGH
#ifndef INVERT_POWER
//#define INVERT_POWER // If enabled, use inverted logic for POWER circuit, that means peripherals are turned off by writing HIGH
#endif
#endif

// (optional) Neopixel
Expand Down
14 changes: 10 additions & 4 deletions src/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@


//########################## MODULES #################################
//#define PORT_EXPANDER_ENABLE // When enabled, buttons can be connected via port-expander PCA9555 (https://forum.espuino.de/t/einsatz-des-port-expanders-pca9555/306)
#ifndef PORT_EXPANDER_ENABLE
//#define PORT_EXPANDER_ENABLE // When enabled, buttons can be connected via port-expander PCA9555 (https://forum.espuino.de/t/einsatz-des-port-expanders-pca9555/306)
#endif
//#define I2S_COMM_FMT_LSB_ENABLE // Enables FMT instead of MSB for I2S-communication-format. Used e.g. by PT2811. Don't enable for MAX98357a, AC101 or PCM5102A)
#define MDNS_ENABLE // When enabled, you don't have to handle with ESPuino's IP-address. If hostname is set to "ESPuino", you can reach it via ESPuino.local
//#define MQTT_ENABLE // Make sure to configure mqtt-server and (optionally) username+pwd
Expand Down Expand Up @@ -71,9 +73,11 @@


//################## select RFID reader ##############################
#define RFID_READER_TYPE_MFRC522_SPI // use MFRC522 via SPI
//#define RFID_READER_TYPE_MFRC522_SPI // use MFRC522 via SPI
//#define RFID_READER_TYPE_MFRC522_I2C // use MFRC522 via I2C
//#define RFID_READER_TYPE_PN5180 // use PN5180 via SPI
#ifndef RFID_READER_TYPE_PN5180
//#define RFID_READER_TYPE_PN5180 // use PN5180 via SPI
#endif

#ifdef RFID_READER_TYPE_MFRC522_I2C
#define MFRC522_ADDR 0x28 // default I2C-address of MFRC522
Expand Down Expand Up @@ -212,7 +216,9 @@
//#################### Settings for optional Modules##############################
// (optinal) Neopixel
#ifdef NEOPIXEL_ENABLE
#define NUM_INDICATOR_LEDS 24 // number of Neopixel LEDs (formerly NUM_LEDS)
#ifndef NUM_INDICATOR_LEDS
#define NUM_INDICATOR_LEDS 24 // number of Neopixel LEDs (formerly NUM_LEDS)
#endif
#define NUM_CONTROL_LEDS 0 // optional control leds (https://forum.espuino.de/t/statische-ws2812-leds/1703)
#define CONTROL_LEDS_COLORS {} // Colors for the control LEDs. Make sure it lists at least NUM_CONTROL_LEDS colors, e.g. for three control LEDs define: CONTROL_LEDS_COLORS {CRGB::Yellow, CRGB::Blue, 0xFFFFFF} (predefined colors: http://fastled.io/docs/3.1/struct_c_r_g_b.html)
#define CHIPSET WS2812B // type of Neopixel
Expand Down