summaryrefslogtreecommitdiff
path: root/RobotFirmware/platformio.ini
blob: d533e1418567642787debf14069b96b0fcb3e429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[platformio]
src_dir = src
default_envs = robot

[env:robot]
platform = espressif32 @ 6.9.0
board                 = esp32-s3-devkitc-1
framework             = arduino
extra_scripts         = pre:link_prebuilt.py
monitor_speed         = 115200
board_build.partitions = partitions.csv
upload_speed = 115200

; Compile opmodes/ alongside src/ — students only ever open opmodes/
build_src_filter = +<*> +<**/*> +<../opmodes/**/*>

; FreeRTOS at 1000Hz ticks — gives 1ms resolution for vTaskDelayUntil
build_unflags = -std=gnu++11 -std=c++11

build_flags =
    -DNRL_TEAM_NUMBER=205
    -DNRL_WIFI_CHANNEL=1
    "-DNRL_TEAM_NAME=\"Pixel Pokers\""
    -DCONFIG_FREERTOS_HZ=1000
    -DCORE_DEBUG_LEVEL=3
    -std=gnu++17
    -DARDUINO_USB_MODE=1
    -DARDUINO_USB_CDC_ON_BOOT=1

lib_deps =
    Preferences
    adafruit/Adafruit NeoPixel
    adafruit/Adafruit LSM6DS
    adafruit/Adafruit Unified Sensor

lib_extra_dirs =
    lib
    ../lib/HexaServos
    ../lib/HexaOLED
    ../lib/HexaIMU
    ../lib/HexaHAL
    ../lib/HexaLED
    ../lib/HexaPower