[platformio]
src_dir = .

[env:attiny84]
platform = atmelavr
board = attiny84
framework = arduino
board_build.f_cpu = 8000000L
build_src_filter = -<*> +<Arduino/RTI_Control/>
lib_deps =
    SoftwareSerial

; Environment for programming via Arduino Pro Micro as ISP
[env:attiny84_isp]
platform = atmelavr
board = attiny84
framework = arduino
board_build.f_cpu = 8000000L
build_src_filter = -<*> +<Arduino/RTI_Control/>
upload_protocol = stk500v1
upload_speed = 19200
; Set your Pro Micro port here
upload_port = /dev/ttyACM0 
upload_flags =
    -P$UPLOAD_PORT
    -b$UPLOAD_SPEED
lib_deps =
    SoftwareSerial

; Environment specifically for the blink test on pin 7
[env:attiny84_blink]
extends = env:attiny84_isp
build_src_filter = -<*> +<Arduino/Blink_Test/>

; Environment for testing IR remote signals to Raspberry Pi
[env:IR_remote_test]
extends = env:attiny84_isp
build_src_filter = -<*> +<Arduino/IR_remote_test/>

; Environment for decoding LIN bus events and converting to IR remote commands
[env:LIN_to_IR]
extends = env:attiny84_isp
build_src_filter = -<*> +<Arduino/LIN_to_IR/>
