-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
37 lines (36 loc) · 1 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
; 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
[env:attiny85_via_ArduinoISP]
platform = atmelavr
board = attiny85
framework = arduino
; Fuse settings voor 8 MHz
; Zie https://www.engbedded.com/fusecalc/
; low byte bit 7 = CKDIV8 (1 = geen divider)
board_fuses.lfuse = 0xE2
; high byte bit 3 = EESAVE (0 voorkomt wissen EEPROM)
; high byte bits 2-0 = BODLEVEL2-BODLEVEL0 (101 = 2,7 V)
board_fuses.hfuse = 0xD5
board_fuses.efuse = 0xFF
upload_protocol = custom
upload_port = COM3
upload_speed = 19200
upload_flags =
-C
${platformio.packages_dir}/tool-avrdude/avrdude.conf
-p
$BOARD_MCU
-P
$UPLOAD_PORT
-b
$UPLOAD_SPEED
-c
stk500v1
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i