-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
96 lines (83 loc) · 2.38 KB
/
platformio.ini
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[firmware]
name = -D FW_NAME='"tactile vision - CollabJam"'
; TODO: Windows users may get this error while compiling the firmware:
; "error: unknown option `max-count=1`"
; In this case you have to specify the version (-DGIT_TAG) and revision (-DGIT_REV) manually.
; The version string refers to semantic versioning (see https://semver.org/)
; vX.Y.z with X=major, Y=minor, z=patch
; The revision string is the shortened ID (7 HEX digits) of the most recent commit.
; EXAMPLE: -DGIT_REV='"1a2b3c4"' -DGIT_TAG='"v1.0.0"'
; TODO: Replace call of the python script with the following:
; version = -DGIT_REV='"xxxxxx"' -DGIT_TAG='"v1.0.1"'
version = !python git_rev_macro.py
[device]
; TODO: Add device name (i.e., replace 'n') and version here
name = -DPCB_NAME='"CJ-n"'
version = -DPCB_VERSION='"v4.0.0"'
; This configuration is the default configuration for the ESP32 platform.
[env:esp32base]
framework = arduino
platform = espressif32
lib_deps =
SPI
ESP32 AnalogWrite
;EspSoftwareSerial
;https://github.com/plerup/espsoftwareserial/issues/305#issuecomment-1880188894
plerup/EspSoftwareSerial
https://github.com/dok-net/ghostl
adafruit/Adafruit DRV2605 Library@^1.2.0
sparkfun/SparkFun Qwiic Haptic Driver DA7280 Library@^1.0.3
lib_ldf_mode=deep+
; upload_port = /dev/cu.usbmodem142101
upload_port = /dev/cu.usbmodem101
; upload_port = /dev/cu.wchusbserial142330
; monitor_speed = 115200
monitor_port = ${env:esp32base.upload_port}
;CollabJam: no PCB
[env:cj0]
extends = env:esp32base
board = esp32dev
build_flags =
${firmware.name}
${firmware.version}
${device.name}
${device.version}
-DBOARD_CJ0
;CollabJam: PCB V1
[env:cj1]
extends = env:esp32base
board = lolin32_lite
build_flags =
${firmware.name}
${firmware.version}
${device.name}
${device.version}
-DBOARD_CJ1
; -DDEBUG
;CollabJam: PCB V2
[env:cj2]
extends = env:esp32base
board = lolin32_lite
build_flags =
${firmware.name}
${firmware.version}
${device.name}
${device.version}
-DBOARD_CJ2
; -DDEBUG
; -DTV_DEBUG_SERIAL
;CollabJam PCB V4
[env:cj4]
extends = env:esp32base
board = m5stack-stamps3
;https://github.com/espressif/arduino-esp32/pull/8187#issuecomment-1683001064
platform_packages = framework-arduinoespressif32@https://github.com/bsergei/arduino-esp32.git#issue-8185
build_flags =
${firmware.name}
${firmware.version}
${device.name}
${device.version}
-DBOARD_CJ4
; -DDEBUG
; -DTV_DEBUG_SERIAL
; -DUSBSERIAL