Skip to content

Commit

Permalink
atmelavr 3.3.0, attiny45 config
Browse files Browse the repository at this point in the history
  • Loading branch information
dontsovcmc committed May 31, 2021
1 parent 1bad752 commit 614ecd5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
22 changes: 20 additions & 2 deletions Attiny85/platformio.ini
Expand Up @@ -3,9 +3,11 @@
; [platformio]
; home_dir = C:\platformio

[platformio]
default_envs = attiny85 ; attiny45

[env:attiny85]
platform = atmelavr@3.2.0
platform = atmelavr@3.3.0
board = attiny85
framework = arduino
board_build.mcu = attiny85
Expand Down Expand Up @@ -41,4 +43,20 @@ upload_flags =
;Справочная информация
;=====================
;
;avrdude: safemode: Fuses OK (E:FF, H:DF, L:62)
;avrdude: safemode: Fuses OK (E:FF, H:DF, L:62)


[env:attiny45]
platform = atmelavr@3.3.0
board = attiny45
framework = arduino
board_build.mcu = attiny45
board_build.f_cpu = 1000000L

build_flags = -Wall
upload_port = COM5

upload_protocol = usbasp
upload_flags =
-Pusb
-B5
6 changes: 5 additions & 1 deletion Attiny85/src/main.cpp
Expand Up @@ -17,11 +17,15 @@
#endif


#define FIRMWARE_VER 19 // Версия прошивки. Передается в ESP и на сервер в данных.
#define FIRMWARE_VER 20 // Версия прошивки. Передается в ESP и на сервер в данных.

/*
Версии прошивок
20 - 2021.05.31 - dontsovcmc
1. atmelavr@3.3.0
2. конфигурация для attiny45
19 - 2021.04.03 - dontsovcmc
1. WDTCR = bit( WDCE ); в resetWatchdog
Expand Down

0 comments on commit 614ecd5

Please sign in to comment.