Updated pins for new boards
This commit is contained in:
parent
ac51c52c74
commit
15d3371437
2
.github/workflows/pio-build.yaml
vendored
2
.github/workflows/pio-build.yaml
vendored
@ -36,7 +36,7 @@ jobs:
|
|||||||
git config --global advice.detachedHead false
|
git config --global advice.detachedHead false
|
||||||
|
|
||||||
- name: Run PlatformIO
|
- name: Run PlatformIO
|
||||||
run: pio run -e gravity-release -e gravity-perf -e gravity32-release -e gravity32-perf -e gravity32-c3-release
|
run: pio run -e gravity-release -e gravity-perf -e gravity32-release -e gravity32-c3-release
|
||||||
|
|
||||||
- uses: EndBug/add-and-commit@v7 # You can change this to use a specific version. https://github.com/marketplace/actions/add-commit
|
- uses: EndBug/add-and-commit@v7 # You can change this to use a specific version. https://github.com/marketplace/actions/add-commit
|
||||||
with:
|
with:
|
||||||
|
@ -103,24 +103,6 @@ board = ${common_env_data.board}
|
|||||||
build_type = release
|
build_type = release
|
||||||
board_build.filesystem = littlefs
|
board_build.filesystem = littlefs
|
||||||
|
|
||||||
[env:gravity-perf]
|
|
||||||
upload_speed = ${common_env_data.upload_speed}
|
|
||||||
monitor_speed = ${common_env_data.monitor_speed}
|
|
||||||
framework = ${common_env_data.framework}
|
|
||||||
platform = ${common_env_data.platform}
|
|
||||||
extra_scripts = ${common_env_data.extra_scripts}
|
|
||||||
build_unflags = ${common_env_data.build_unflags}
|
|
||||||
build_flags =
|
|
||||||
${common_env_data.build_flags}
|
|
||||||
-DCOLLECT_PERFDATA
|
|
||||||
-DLOG_LEVEL=5
|
|
||||||
lib_deps =
|
|
||||||
https://github.com/mp-se/incbin # https://github.com/graphitemaster/incbin
|
|
||||||
${common_env_data.lib_deps}
|
|
||||||
board = ${common_env_data.board}
|
|
||||||
build_type = release
|
|
||||||
board_build.filesystem = littlefs
|
|
||||||
|
|
||||||
[env:gravity32-release]
|
[env:gravity32-release]
|
||||||
framework = arduino
|
framework = arduino
|
||||||
platform = ${common_env_data.platform32}
|
platform = ${common_env_data.platform32}
|
||||||
@ -140,39 +122,6 @@ lib_deps =
|
|||||||
lib_ignore =
|
lib_ignore =
|
||||||
board = featheresp32
|
board = featheresp32
|
||||||
build_type = release
|
build_type = release
|
||||||
#board_build.partitions = min_spiffs.csv
|
|
||||||
board_build.partitions = part32.csv
|
|
||||||
board_build.filesystem = littlefs
|
|
||||||
monitor_filters = esp32_exception_decoder
|
|
||||||
board_build.embed_txtfiles =
|
|
||||||
html/calibration.min.htm
|
|
||||||
html/config.min.htm
|
|
||||||
html/firmware.min.htm
|
|
||||||
html/format.min.htm
|
|
||||||
html/about.min.htm
|
|
||||||
html/index.min.htm
|
|
||||||
html/test.min.htm
|
|
||||||
|
|
||||||
[env:gravity32-perf]
|
|
||||||
framework = arduino
|
|
||||||
platform = ${common_env_data.platform32}
|
|
||||||
upload_speed = ${common_env_data.upload_speed}
|
|
||||||
monitor_speed = ${common_env_data.monitor_speed}
|
|
||||||
extra_scripts = ${common_env_data.extra_scripts}
|
|
||||||
build_unflags =
|
|
||||||
${common_env_data.build_unflags}
|
|
||||||
build_flags =
|
|
||||||
-Wl,-Map,output.map
|
|
||||||
#-DCORE_DEBUG_LEVEL=0
|
|
||||||
${common_env_data.build_flags}
|
|
||||||
-DCOLLECT_PERFDATA
|
|
||||||
-DLOG_LEVEL=5
|
|
||||||
lib_deps =
|
|
||||||
${common_env_data.lib_deps}
|
|
||||||
${common_env_data.lib_deps32}
|
|
||||||
board = featheresp32
|
|
||||||
build_type = release
|
|
||||||
#board_build.partitions = min_spiffs.csv
|
|
||||||
board_build.partitions = part32.csv
|
board_build.partitions = part32.csv
|
||||||
board_build.filesystem = littlefs
|
board_build.filesystem = littlefs
|
||||||
monitor_filters = esp32_exception_decoder
|
monitor_filters = esp32_exception_decoder
|
||||||
@ -213,7 +162,6 @@ lib_deps =
|
|||||||
lib_ignore =
|
lib_ignore =
|
||||||
board = lolin_c3_mini
|
board = lolin_c3_mini
|
||||||
build_type = debug
|
build_type = debug
|
||||||
#board_build.partitions = min_spiffs.csv
|
|
||||||
board_build.partitions = part32.csv
|
board_build.partitions = part32.csv
|
||||||
board_build.filesystem = littlefs
|
board_build.filesystem = littlefs
|
||||||
monitor_filters = esp32_exception_decoder
|
monitor_filters = esp32_exception_decoder
|
||||||
@ -225,3 +173,36 @@ board_build.embed_txtfiles =
|
|||||||
html/about.min.htm
|
html/about.min.htm
|
||||||
html/index.min.htm
|
html/index.min.htm
|
||||||
html/test.min.htm
|
html/test.min.htm
|
||||||
|
|
||||||
|
; [env:gravity32-s2-release]
|
||||||
|
; framework = arduino
|
||||||
|
; platform = ${common_env_data.platform32}
|
||||||
|
; upload_speed = 115200
|
||||||
|
; monitor_speed = ${common_env_data.monitor_speed}
|
||||||
|
; extra_scripts = ${common_env_data.extra_scripts}
|
||||||
|
; build_unflags =
|
||||||
|
; ${common_env_data.build_unflags}
|
||||||
|
; build_flags =
|
||||||
|
; -Wl,-Map,output.map
|
||||||
|
; ${common_env_data.build_flags}
|
||||||
|
; -DLOG_LEVEL=5
|
||||||
|
; -DCORE_DEBUG_LEVEL=0
|
||||||
|
; -DESP32S2
|
||||||
|
; -DARDUINO_ESP32S2_DEV
|
||||||
|
; lib_deps =
|
||||||
|
; ${common_env_data.lib_deps}
|
||||||
|
; ${common_env_data.lib_deps32}
|
||||||
|
; lib_ignore =
|
||||||
|
; board = lolin_s2_mini
|
||||||
|
; build_type = debug
|
||||||
|
; board_build.partitions = part32.csv
|
||||||
|
; board_build.filesystem = littlefs
|
||||||
|
; monitor_filters = esp32_exception_decoder
|
||||||
|
; board_build.embed_txtfiles =
|
||||||
|
; html/calibration.min.htm
|
||||||
|
; html/config.min.htm
|
||||||
|
; html/firmware.min.htm
|
||||||
|
; html/format.min.htm
|
||||||
|
; html/about.min.htm
|
||||||
|
; html/index.min.htm
|
||||||
|
; html/test.min.htm
|
||||||
|
34
src/main.hpp
34
src/main.hpp
@ -45,17 +45,41 @@ extern RunMode runMode;
|
|||||||
#define PIN_DS D6
|
#define PIN_DS D6
|
||||||
#define PIN_LED 2
|
#define PIN_LED 2
|
||||||
// #define PIN_A0 A0
|
// #define PIN_A0 A0
|
||||||
|
#elif defined(ESP32C3)
|
||||||
|
#include <FS.h>
|
||||||
|
#include <LittleFS.h>
|
||||||
|
#define ESPhttpUpdate httpUpdate
|
||||||
|
#define ESP_RESET ESP.restart
|
||||||
|
#define ESP8266WebServer WebServer
|
||||||
|
#define PIN_SDA SDA
|
||||||
|
#define PIN_SCL SCL
|
||||||
|
#define PIN_DS A3
|
||||||
|
#define PIN_A0 A0
|
||||||
|
#define PIN_LED LED_BUILTIN
|
||||||
|
/*
|
||||||
|
#elif defined(ESP32S2)
|
||||||
|
#include <FS.h>
|
||||||
|
#include <LittleFS.h>
|
||||||
|
#define ESPhttpUpdate httpUpdate
|
||||||
|
#define ESP_RESET ESP.restart
|
||||||
|
#define ESP8266WebServer WebServer
|
||||||
|
#define PIN_SDA SDA
|
||||||
|
#define PIN_SCL SCL
|
||||||
|
#define PIN_DS A8
|
||||||
|
#define PIN_A0 A2
|
||||||
|
#define PIN_LED LED_BUILTIN
|
||||||
|
*/
|
||||||
#else // defined (ESP32)
|
#else // defined (ESP32)
|
||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
#include <LittleFS.h>
|
#include <LittleFS.h>
|
||||||
#define ESPhttpUpdate httpUpdate
|
#define ESPhttpUpdate httpUpdate
|
||||||
#define ESP_RESET ESP.restart
|
#define ESP_RESET ESP.restart
|
||||||
#define ESP8266WebServer WebServer
|
#define ESP8266WebServer WebServer
|
||||||
#define PIN_SDA 17
|
#define PIN_SDA TX
|
||||||
#define PIN_SCL 16
|
#define PIN_SCL RX
|
||||||
#define PIN_DS 19
|
#define PIN_DS MISO
|
||||||
#define PIN_A0 36
|
#define PIN_A0 A4
|
||||||
#define PIN_LED 2
|
#define PIN_LED LED_BUILTIN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PIN_LED 2
|
#define PIN_LED 2
|
||||||
|
Loading…
Reference in New Issue
Block a user