Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
2d1bf8d30This file is pinned to the selected release. Download the original to open it in your design tool.
[platformio]
description = megadesk_bekant
default_envs = attiny841
[env:attiny841]
platform = atmelavr
board = attiny841
framework = arduino
; monitor_port = COM5
;monitor_speed = 19200
monitor_speed = 115200
; hexbyte display
;monitor_filters = hexlify
;monitor_flags = --encoding
; Latin1 ; required for hexlify filter to display *all* values in hex
; human serial settings
monitor_filters = direct
;, time, log2file ; for timestamps and logging
board_fuses.lfuse = 0xE2
board_fuses.efuse = 0xFE
board_fuses.hfuse = 0xD6
# -B0.5 will speed up the baud-rate.
# If you have problems flashing, remove these flags m
upload_flags =
-B0.5
[env:attiny1624]
platform = atmelmegaavr
board = ATtiny1624
framework = arduino
upload_protocol = atmelice_updi
build_flags = -D AVR2=1
board_build.f_cpu = 16000000L
board_fuses.osccfg = 0x01 # Run at 16MHz instead of default 20MHz. Saves power.
[env:attiny841_pololu_windows]
platform = atmelavr
board = attiny841
framework = arduino
board_fuses.lfuse = 0xE2
board_fuses.efuse = 0xFE
board_fuses.hfuse = 0xD6
upload_protocol = custom
upload_command =
avrdude -B 0.5 -c stk500v2 -p attiny841 -V -Uflash:w:$SOURCE:i -P COM3
[env:attiny841_BP_windows]
platform = atmelavr
board = attiny841
framework = arduino
board_fuses.lfuse = 0xE2
board_fuses.efuse = 0xFE
board_fuses.hfuse = 0xD6
upload_protocol = custom
upload_port = COM3
upload_speed = 115200
upload_command = avrdude -b $UPLOAD_SPEED -c buspirate -p $BOARD -V -U flash:w:$SOURCE:i -P $UPLOAD_PORT
[env:attiny841_pololu_linux]
platform = atmelavr
board = attiny841
framework = arduino
board_fuses.lfuse = 0xE2
board_fuses.efuse = 0xFE
board_fuses.hfuse = 0xD6
upload_protocol = stk500v2
upload_port = /dev/ttyACM0
upload_speed = 115200
upload_flags = "-B 0.5 -P $UPLOAD_PORT"
## These are referenced by Github Actions, do not modify.
[env:attiny841_noserial]
platform = atmelavr
board = attiny841
framework = arduino
board_fuses.lfuse = 0xE2
board_fuses.efuse = 0xFE
board_fuses.hfuse = 0xD6
[env:attiny841_serial]
platform = atmelavr
board = attiny841
framework = arduino
board_fuses.lfuse = 0xE2
board_fuses.efuse = 0xFE
board_fuses.hfuse = 0xD6
build_flags=
-DSERIALCOMMS
[env:attiny1624_noserial]
platform = atmelmegaavr
board = ATtiny1624
framework = arduino
build_flags = -D AVR2=1
board_build.f_cpu = 16000000L
board_fuses.osccfg = 0x01 # Run at 16MHz instead of default 20MHz. Saves power.
[env:attiny1624_serial]
platform = atmelmegaavr
board = ATtiny1624
framework = arduino
build_flags = -D AVR2=1 -DSERIALCOMMS
board_build.f_cpu = 16000000L
board_fuses.osccfg = 0x01 # Run at 16MHz instead of default 20MHz. Saves power.