-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
61 lines (55 loc) · 2.06 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
; 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]
default_envs = m328p
[env]
build_flags = -D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS -D CFG_eu868 -D CFG_sx1276_radio -D DISABLE_PING -D DISABLE_BEACONS -D LMIC_ENABLE_arbitrary_clock_error -D TINY_BME280_I2C
lib_deps = mcci-catena/MCCI LoRaWAN LMIC library, adafruit/Adafruit FRAM SPI, fabyte/Tiny BME280, https://github.com/canique/Low-Power-Canique.git, Wire
extra_scripts = pre:scripts/auto_config_h_checksum.py
monitor_speed = 115200
;monitor_port = /dev/ttyUSB*
; Flash firmware via serial connection
; platformio run -t upload -e m328p
[env:m328p]
platform = atmelavr
framework = arduino
board = ATmega328P
board_build.f_cpu = 8000000L
upload_speed = 57600
; Flash bootloader via ISP (usbasp)
; platformio run -t bootloader -e m328p_isp
[env:m328p_isp]
platform = atmelavr
framework = arduino
board = ATmega328P
board_build.f_cpu = 8000000L
board_bootloader.lfuse = 0xFF ; 8-16MHz crystal oscillator, slowly rising power 16KCK / 14CK + 65ms
board_bootloader.hfuse = 0xDE ; Boot size 256 words, boot reset vector enabled
board_bootloader.efuse = 0xFE ; BOD 1.8V
upload_protocol = usbasp
; Flash firmware via serial connection
; platformio run -t upload -e m328pb
[env:m328pb]
platform = atmelavr
framework = arduino
board = ATmega328PB
board_build.f_cpu = 8000000L
upload_speed = 57600
; Flash bootloader via ISP (usbasp)
; platformio run -t bootloader -e m328pb_isp
[env:m328pb_isp]
platform = atmelavr
framework = arduino
board = ATmega328PB
board_build.f_cpu = 8000000L
board_bootloader.lfuse = 0xFF ; 8-16MHz crystal oscillator, slowly rising power 16KCK / 19CK + 65ms
board_bootloader.hfuse = 0xDE ; Boot size 256 words, boot reset vector enabled
board_bootloader.efuse = 0xF6 ; BOD 1.8V, CFD off
upload_protocol = usbasp