|
|
@@ -24,29 +24,29 @@ monitor_flags =
|
|
|
--eol=CRLF
|
|
|
--echo
|
|
|
--filter=esp32_exception_decoder
|
|
|
+upload_speed = 921600
|
|
|
lib_deps =
|
|
|
- askuric/Simple FOC @ 2.2.0
|
|
|
infineon/TLV493D-Magnetic-Sensor @ 1.0.3
|
|
|
bxparks/AceButton @ 1.9.1
|
|
|
+ bakercp/PacketSerial @ 1.4.0
|
|
|
+ nanopb/Nanopb @ 0.4.6 ; Ideally this would reference the nanopb submodule, but that would require
|
|
|
+ ; everyone to check out submodules to just compile, so we use the library
|
|
|
+ ; registry for the runtime. The submodule is available for manually updating
|
|
|
+ ; the pre-compiled (checked in) .pb.h/c files when proto files change, but is
|
|
|
+ ; otherwise not used during application firmware compilation.
|
|
|
build_flags =
|
|
|
- -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
|
|
- -DMONITOR_SPEED=921600
|
|
|
+ -DMONITOR_SPEED=921600
|
|
|
|
|
|
[env:view]
|
|
|
extends = base_config
|
|
|
board = esp32doit-devkit-v1
|
|
|
lib_deps =
|
|
|
${base_config.lib_deps}
|
|
|
+ askuric/Simple FOC @ 2.2.0
|
|
|
bodmer/TFT_eSPI@2.4.25
|
|
|
fastled/FastLED @ 3.5.0
|
|
|
bogde/HX711 @ 0.7.5
|
|
|
adafruit/Adafruit VEML7700 Library @ 1.1.1
|
|
|
- bakercp/PacketSerial @ 1.4.0
|
|
|
- nanopb/Nanopb @ 0.4.6 ; Ideally this would reference the nanopb submodule, but that would require
|
|
|
- ; everyone to check out submodules to just compile, so we use the library
|
|
|
- ; registry for the runtime. The submodule is available for manually updating
|
|
|
- ; the pre-compiled (checked in) .pb.h/c files when proto files change, but is
|
|
|
- ; otherwise not used during application firmware compilation.
|
|
|
|
|
|
build_flags =
|
|
|
${base_config.build_flags}
|
|
|
@@ -58,13 +58,16 @@ build_flags =
|
|
|
-DSK_LEDS=1
|
|
|
; Number of LEDs
|
|
|
-DNUM_LEDS=8
|
|
|
- -DSENSOR_MT6701=1
|
|
|
; Strain-gauge press input enabled: 1=enable, 0=disable
|
|
|
-DSK_STRAIN=1
|
|
|
- ; Invert direction of angle sensor (motor direction is detected relative to angle sensor as part of the calibration procedure)
|
|
|
- -DSK_INVERT_ROTATION=1
|
|
|
; Ambient light sensor (VEML7700) enabled: 1=enable (display/LEDs match ambient brightness), 0=disable (100% brightness all the time)
|
|
|
-DSK_ALS=1
|
|
|
+ ; Use MT6701 magnetic encoder
|
|
|
+ -DSENSOR_MT6701=1
|
|
|
+ ; Invert direction of angle sensor (motor direction is detected relative to angle sensor as part of the calibration procedure)
|
|
|
+ -DSK_INVERT_ROTATION=1
|
|
|
+
|
|
|
+ -DMOTOR_WANZHIDA_ONCE_TOP=1
|
|
|
|
|
|
; Pin configurations
|
|
|
-DPIN_UH=26
|
|
|
@@ -108,6 +111,8 @@ build_flags =
|
|
|
; Reduce loop task stack size (only works on newer IDF Arduino core)
|
|
|
; -DARDUINO_LOOP_STACK_SIZE=2048
|
|
|
|
|
|
+ -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
|
|
|
+
|
|
|
; FastLED setup
|
|
|
; Modify the default unusable pin mask to allow GPIO 7 (allowed to use on ESP32-PICO-V3-02)
|
|
|
; Unusable bits: 6, 8, 9, 10, 20
|
|
|
@@ -119,3 +124,61 @@ build_flags =
|
|
|
; GPIO >= 34 are input only
|
|
|
; (SOC_GPIO_VALID_GPIO_MASK & ~(0ULL | _FL_BIT(34) | _FL_BIT(35) | _FL_BIT(36) | _FL_BIT(37) | _FL_BIT(38) | _FL_BIT(39)))
|
|
|
-DSOC_GPIO_VALID_OUTPUT_GPIO_MASK=0x30EFFFFFF
|
|
|
+
|
|
|
+
|
|
|
+[env:nanofoc]
|
|
|
+extends = base_config
|
|
|
+platform = espressif32
|
|
|
+board = adafruit_feather_esp32s3
|
|
|
+lib_deps =
|
|
|
+ ${base_config.lib_deps}
|
|
|
+ askuric/Simple FOC@^2.3.0
|
|
|
+ bodmer/TFT_eSPI@2.5.0
|
|
|
+
|
|
|
+build_flags =
|
|
|
+ ${base_config.build_flags}
|
|
|
+ ; Display enabled: 1=enable, 0=disable
|
|
|
+ -DSK_DISPLAY=0
|
|
|
+ ; Display orientation: 0=usb bottom, 2=usb top
|
|
|
+ -DSK_DISPLAY_ROTATION=0
|
|
|
+ ; LEDs enabled: 1=enable, 0=disable
|
|
|
+ -DSK_LEDS=0
|
|
|
+ ; Number of LEDs
|
|
|
+ -DNUM_LEDS=8
|
|
|
+ ; Strain-gauge press input enabled: 1=enable, 0=disable
|
|
|
+ -DSK_STRAIN=0
|
|
|
+ ; Ambient light sensor (VEML7700) enabled: 1=enable (display/LEDs match ambient brightness), 0=disable (100% brightness all the time)
|
|
|
+ -DSK_ALS=0
|
|
|
+
|
|
|
+ -DSENSOR_MAQ430=1
|
|
|
+ -DPIN_MAQ_SCK=6
|
|
|
+ -DPIN_MAQ_MISO=7
|
|
|
+ -DPIN_MAQ_MOSI=5
|
|
|
+ -DPIN_MAQ_SS=4
|
|
|
+ ; Invert direction of angle sensor (motor direction is detected relative to angle sensor as part of the calibration procedure)
|
|
|
+ -DSK_INVERT_ROTATION=1
|
|
|
+
|
|
|
+ -DMOTOR_MAD2804=1
|
|
|
+
|
|
|
+ ; Pin configurations
|
|
|
+ -DPIN_UH=21
|
|
|
+ -DPIN_UL=12
|
|
|
+ -DPIN_VH=14
|
|
|
+ -DPIN_VL=10
|
|
|
+ -DPIN_WH=13
|
|
|
+ -DPIN_WL=11
|
|
|
+ -DPIN_BUTTON_NEXT=-1
|
|
|
+ -DPIN_BUTTON_PREV=-1
|
|
|
+ -DPIN_LED_DATA=7
|
|
|
+ -DPIN_LCD_BACKLIGHT=08
|
|
|
+
|
|
|
+ -DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC=1
|
|
|
+ -DUSBCON=1
|
|
|
+ -DARDUINO_USB_CDC_ON_BOOT=1
|
|
|
+ -DARDUINO_USB_MODE=1
|
|
|
+ -DCORE_DEBUG_LEVEL=2
|
|
|
+ -DHSPI_SPEED=100000 ; MA/MAQ Nominal SPI Speed in Mhz (HSPI)
|
|
|
+ -DVSPI_SPEED=400000 ; TFt Nominal SPI Speed in Mhz (VSPI)
|
|
|
+
|
|
|
+ ; Reduce loop task stack size (only works on newer IDF Arduino core)
|
|
|
+ ; -DARDUINO_LOOP_STACK_SIZE=2048
|