-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
93 lines (84 loc) · 3.32 KB
/
platformio.ini
File metadata and controls
93 lines (84 loc) · 3.32 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
; 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]
description = DCF77 Receiver with DS3231 Realtimclock.
; default_envs = nanoatmega328
default_envs = attiny88
[common]
compile_flags =
-std=gnu++17
-Wall
compile_unflags =
-std=gnu++11
; on attiny88 debug and console_output is not possilbe
mybuild_flags =
; -DCONSOLE_OUTPUT
; -DWIRE_FAST_MODE
; -DDEV_BOARD
[env]
platform = atmelavr
framework = arduino
platform_packages =
lib_deps =
https://github.com/janelia-arduino/Streaming.git
arminjo/digitalWriteFast @ ^1.3.0
kair/Button_SL @ ^1.1.5
build_type = release
build_unflags =
${common.compile_unflags}
build_flags =
${common.compile_flags}
${common.mybuild_flags}
monitor_eol = LF
monitor_echo = YES
monitor_filters =
default ; Remove typical terminal control codes from input
time ; Add timestamp with milliseconds for each new line
monitor_speed = 115200
upload_flags =
-v
[env:nanoatmega328]
board = nanoatmega328new
board_upload.maximum_size = 32256
[env:pro8MHzatmega328]
board = pro8MHzatmega328
monitor_speed = 19200
;upload_port = COM[6]
[env:attiny88]
board = attiny88
board_build.f_cpu = 1000000L
; board_build.f_cpu = 8000000L
; In version 1.3.3 and later, the clock source is also made available via the CLOCK_SOURCE #define.
; CLOCK_SOURCE can take one of the following values (as of 1.4.0, it is expanded
; to cover a few weird clocking situations: the low 4 bits identify the source, and high 4 bits
; identify special things regarding it:
; 0 - Internal 8MHz oscillator, not prescaled, or prescaled to 1 MHz (ie, fully set by fuses)
; 1 - External Crystal
; 2 - External Clock (only available within the core on the 48, 88 and 828, as described above - note that
; above steps to use external clock on other parts, this will still be 1, not 2; as far as the core knows, it's a crystal)
; 3 - Internal WDT oscillator (not available on the x41, 1634, and 828)
; 4 - Internal ULP oscillator (available only on the x41, 1634, and 828)
; 5 - Internal 4MHz oscillator (present only on the x313 parts - if the 8MHz internal oscillator is prescaled to 4MHz, CLOCK_SOURCE will be 0, not 5)
; 6 - Internal PLL (x5 and x61 only)
; 15 or 0x10 (ie, 0x10 | 0) - Internal oscillator with prescaling not set by fuses (ie, not 1 MHz or 8 MHz - ie, 2 or 4 MHz)
; 17 or 0x11 (ie, 0x10 | 1) - External crystal at 16MHz, which may be prescaled to get lower frequencies (for Digispark Pro ATtiny167)
; 18 or 0x12 (ie, 0x10 | 2) - External clock at 16MHz, which may be prescaled to get lower frequencies (for MH Tiny ATtiny88)
; Standard ATtiny board setting is clock source 18! Thats wrong!
build_unflags = -DCLOCK_SOURCE=18 ; undef incorrect preset (Only useful for MH Tiny ATtiny88 Devboard)
build_flags = -DCLOCK_SOURCE=0 ; correct preset for bare ATtiny
${common.compile_flags}
${common.mybuild_flags}
upload_protocol = stk500v2 ;Einstellung fuer ISP Programmer
upload_flags =
-PCOM9
-e ;Erase EEPROM before write
-v
monitor_port = COM10
monitor_speed = 9600