-
Notifications
You must be signed in to change notification settings - Fork 5
/
platformio.ini
80 lines (77 loc) · 2.04 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
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
data_dir = app
[env:esp12e]
platform = espressif8266
extra_scripts = pre:esp8266-arduino-i2s-patch.py
#platform_packages = framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git#2.6.3
board = esp12e
board_build.f_cpu = 160000000L
board_build.filesystem = littlefs
framework = arduino
build_type = release
build_flags =
-DARCH_ESP8266
-DDEBUG_LOG
# -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
-DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
# -DBEARSSL_SSL_BASIC
-DARDUINOJSON_USE_LONG_LONG=1
# -DDEBUG_ESP_HTTP_SERVER
# -DDEBUG_ESP_PORT=Serial
# -DDEBUG_ESP_SSL
# -DDEBUG_ESP_CORE
# -DDEBUG_BSSD
lib_ldf_mode = deep
lib_deps =
ESP8266Audio
radio
ArduinoJson
NTPClient
monitor_speed = 74880
monitor_filters = esp8266_exception_decoder
#upload_protocol = espota
#upload_port = 192.168.137.56
#upload_flags =
# --port=8266
[env:ATtiny3216]
platform = atmelmegaavr
board = ATtiny3216
framework = arduino
# it actually is 10k because we do not change fuses, but this makes the neopixels work properly
board_build.f_cpu = 8000000L
board_hardware.oscillator = internal
lib_deps =
radio
build_flags =
-DARCH_ATTINY
-DDISABLEMILLIS
-DMILLIS_USE_TIMERNONE
# TODO Enable this in production
# -DDEBUG_DISABLE_WDT
# -DDEBUG_LOG
# -DTEST_NEOPIXEL
# -DTEST_RADIO
# -O2
#build_unflags = -Os
upload_speed = 115200
upload_flags =
-d
tiny3216
-c
$UPLOAD_PORT
-b
$UPLOAD_SPEED
upload_command = pyupdi $UPLOAD_FLAGS -f $SOURCE
# monitor speed for avr, this corresponds to baudrate of 9600 set at the AVR
#monitor_speed = 9600 # 11500
monitor_speed = 145800
#monitor_filters = esp8266_exception_decoder