add HW v3 config
This commit is contained in:
@@ -8,10 +8,26 @@
|
|||||||
; Please visit documentation for the other options and examples
|
; Please visit documentation for the other options and examples
|
||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[env:esp32-pico]
|
|
||||||
|
; [env:esp32-pico]
|
||||||
|
; platform = espressif32
|
||||||
|
; board = m5stack-atom
|
||||||
|
; framework = arduino
|
||||||
|
; lib_deps =
|
||||||
|
; bblanchon/ArduinoJson@^6.18.5
|
||||||
|
; joaolopesf/SerialDebug@^0.9.82
|
||||||
|
; monitor_speed = 115200
|
||||||
|
; lib_ldf_mode = deep+
|
||||||
|
; extra_scripts = ./littlefsbuilder.py
|
||||||
|
; build_flags =
|
||||||
|
; -DHARDWARE=2
|
||||||
|
; ;upload_protocol = espota
|
||||||
|
; ;upload_port = 192.168.2.254
|
||||||
|
|
||||||
|
[env:esp32-S2]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = m5stack-atom
|
|
||||||
framework = arduino
|
framework = arduino
|
||||||
|
board = ESP32S2_DEV
|
||||||
lib_deps =
|
lib_deps =
|
||||||
bblanchon/ArduinoJson@^6.18.5
|
bblanchon/ArduinoJson@^6.18.5
|
||||||
joaolopesf/SerialDebug@^0.9.82
|
joaolopesf/SerialDebug@^0.9.82
|
||||||
@@ -19,6 +35,6 @@ monitor_speed = 115200
|
|||||||
lib_ldf_mode = deep+
|
lib_ldf_mode = deep+
|
||||||
extra_scripts = ./littlefsbuilder.py
|
extra_scripts = ./littlefsbuilder.py
|
||||||
build_flags =
|
build_flags =
|
||||||
-DHARDWARE=1
|
-DHARDWARE=3
|
||||||
;upload_protocol = espota
|
;upload_protocol = espota
|
||||||
;upload_port = 192.168.2.254
|
;upload_port = 192.168.2.254
|
||||||
|
|||||||
@@ -1,7 +1,27 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define HARDWARE 1
|
//#define HARDWARE 3
|
||||||
|
|
||||||
|
#if HARDWARE == 3
|
||||||
|
#define I2S_BCLK 19
|
||||||
|
#define I2S_WCLK 21
|
||||||
|
#define I2S_DATA 18
|
||||||
|
#define DAC_SDMODE 23
|
||||||
|
|
||||||
|
#define NFC_SS 27
|
||||||
|
#define NFC_SCK 25
|
||||||
|
#define NFC_MOSI 26
|
||||||
|
#define NFC_MISO 14
|
||||||
|
//#define NFC_RST 22 //not connectedx
|
||||||
|
#define NFC_IRQ 13
|
||||||
|
|
||||||
|
#define PWR_HOLD 4
|
||||||
|
#define PWR_BTN 9
|
||||||
|
#define MEAS_EN 10
|
||||||
|
#define MEAS_ADC 35 //ADC1_CH7
|
||||||
|
|
||||||
|
#define HALL_INPUT 36 //ADC1_CH0
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HARDWARE == 2
|
#if HARDWARE == 2
|
||||||
#define I2S_BCLK 19
|
#define I2S_BCLK 19
|
||||||
|
|||||||
Reference in New Issue
Block a user