; 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 = attiny85_debug

[env]
build_flags = -Wall
lib_deps = 
    Adafruit NeoPixel
    Encoder

[env:attiny85]
build_type = release
platform = atmelavr
board = attiny85
framework = arduino
upload_protocol = usbtiny
board_build.f_cpu = 16000000L
; board_fuses.lfuse = 0xAA
; board_fuses.hfuse = 0xBB
; board_fuses.efuse = 0xCC

[env:attiny85_debug]
build_type = debug
extends = env:attiny85
build_flags = -D DEBUG

[env:attiny85_init_debug]
build_type = debug
extends = env:attiny85_debug
build_flags = -D DEBUG_INIT


[env:uno]
build_type = debug
platform = atmelavr
board = uno
framework = arduino
build_flags = -D DEBUG