Skip to content

Commit c3fe5dc

Browse files
authored
Merge pull request #541 from sej7278/master
Moved ATtiny examples from Blink to ATtinyBlink Probably the last merge of 2017? ;-)
2 parents 7a26a86 + 6d3d973 commit c3fe5dc

File tree

3 files changed

+83
-45
lines changed

3 files changed

+83
-45
lines changed

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The following is the rough list of changes that went into different versions.
55
I tried to give credit whenever possible. If I have missed anyone, kindly add it to the list.
66

77
### In Development
8+
- Fix: Moved ATtiny examples to ATtinyBlink, updated alternate core instructions (issue #537) (https://github.com/sej7278)
89
- Fix: Add -fno-devirtualize flag to workaround g++ segfault bug (issue #486). (https://github.com/sej7278)
910
- Fix: Quote the prefix tag in the space_pad_to function
1011
- Fix: recognize serial monitors with full path in MONITOR_CMD

examples/ATtinyBlink/Makefile

Lines changed: 54 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,59 @@
11
# Arduino Make file. Refer to https://github.com/sudar/Arduino-Makefile
22

3-
# if you have placed the alternate core in your sketchbook directory, then you can just mention the core name alone.
4-
ALTERNATE_CORE = attiny
5-
# If not, you might have to include the full path.
6-
#ALTERNATE_CORE_PATH = /home/sudar/Dropbox/code/arduino-sketches/hardware/attiny/
3+
# Set this if the IDE is not in your $PATH or you want to use a specific version:
4+
ARDUINO_DIR = $(HOME)/arduino-1.8.5
75

8-
BOARD_TAG = attiny85-8
9-
ISP_PORT = /dev/ttyACM*
6+
# Programmer type:
7+
ISP_PROG = usbasp
108

11-
include $(ARDMK_DIR)/Arduino.mk
9+
# Examples - obviously pick only one and comment/delete the rest:
1210

13-
# !!! Important. You have to use make ispload to upload when using ISP programmer
11+
# ------------------------------------------------------------------ #
12+
13+
# https://github.com/SpenceKonde/ATTinyCore (1.5+)
14+
ALTERNATE_CORE = ATTinyCore
15+
BOARD_TAG = attinyx4
16+
BOARD_SUB = 84
17+
VARIANT = tinyX4
18+
F_CPU = 8000000L
19+
#BOARD_TAG = attinyx313
20+
#BOARD_SUB = 4313
21+
#BOARD_TAG = attinyx61
22+
#BOARD_SUB = 861
23+
#F_CPU = 8000000L
24+
25+
# ------------------------------------------------------------------ #
26+
27+
# https://github.com/Coding-Badly/TinyCore1 (1.5+)
28+
ALTERNATE_CORE = tiny
29+
BOARD_TAG = attiny85at8
30+
#BOARD_TAG = attiny2313at1
31+
32+
# https://github.com/Coding-Badly/arduino-tiny (1.0)
33+
ALTERNATE_CORE = tiny
34+
BOARD_TAG = attiny85at8
35+
#BOARD_TAG = attiny44at8
36+
#BOARD_TAG = attiny84at8
37+
ARDUINO_VAR_PATH = $(HOME)/arduino/hardware/tiny/cores/tiny
38+
ARDUINO_CORE_PATH = $(HOME)/arduino/hardware/tiny/cores/tiny
39+
40+
# ------------------------------------------------------------------ #
41+
42+
# https://github.com/damellis/attiny (1.5+)
43+
ALTERNATE_CORE = attiny-master
44+
BOARD_TAG = attiny
45+
BOARD_SUB = attiny85
46+
F_CPU = 16000000L
47+
48+
# https://github.com/damellis/attiny (1.0)
49+
ALTERNATE_CORE = attiny-master
50+
BOARD_TAG = attiny85
51+
#BOARD_TAG = attiny44-8
52+
#BOARD_TAG = attiny84-20
53+
54+
# ------------------------------------------------------------------ #
55+
56+
# Path to the Arduino Makefile
57+
include /usr/share/arduino/Arduino.mk
58+
59+
# !!! Important. You have to use 'make ispload' when using an ISP.

examples/Blink/Makefile

Lines changed: 28 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ include ../../Arduino.mk
4545
#BOOTLOADER_PARENT = $(HOME)/arduino/hardware/promicro/bootloaders
4646
#BOOTLOADER_PATH = caterina
4747
#BOOTLOADER_FILE = Caterina-promicro16.hex
48-
#ISP_PROG = usbasp
49-
#AVRDUDE_OPTS = -v
48+
#ISP_PROG = usbasp
49+
#AVRDUDE_OPTS = -v
5050
#include /usr/share/arduino/Arduino.mk
5151

5252
# --- chipkit
@@ -75,40 +75,8 @@ include ../../Arduino.mk
7575
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5
7676
#include /usr/share/arduino/Arduino.mk
7777

78-
# --- arduino-tiny ide 1.0
79-
#ISP_PROG = usbasp
80-
#BOARD_TAG = attiny85at8
81-
#ALTERNATE_CORE = tiny
82-
#ARDUINO_VAR_PATH = $(HOME)/arduino/hardware/tiny/cores/tiny
83-
#ARDUINO_CORE_PATH = $(HOME)/arduino/hardware/tiny/cores/tiny
84-
#AVRDUDE_OPTS = -v
85-
#include /usr/share/arduino/Arduino.mk
86-
87-
# --- arduino-tiny ide 1.6
88-
#ISP_PROG = usbasp
89-
#BOARD_TAG = attiny85at8
90-
#ALTERNATE_CORE = tiny
91-
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5
92-
#include /usr/share/arduino/Arduino.mk
93-
94-
# --- damellis attiny ide 1.0
95-
#ISP_PROG = usbasp
96-
#BOARD_TAG = attiny85
97-
#ALTERNATE_CORE = attiny-master
98-
#AVRDUDE_OPTS = -v
99-
#include /usr/share/arduino/Arduino.mk
100-
101-
# --- damellis attiny ide 1.6
102-
#ISP_PROG = usbasp
103-
#BOARD_TAG = attiny
104-
#BOARD_SUB = attiny85
105-
#ALTERNATE_CORE = attiny
106-
#F_CPU = 16000000L
107-
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5
108-
#include /usr/share/arduino/Arduino.mk
109-
11078
# --- teensy3
111-
#BOARD_TAG = teensy31
79+
#BOARD_TAG = teensy31
11280
#ARDUINO_DIR = /where/you/installed/the/patched/teensy/arduino-1.0.6
11381
#include /usr/share/arduino/Teensy.mk
11482

@@ -118,8 +86,31 @@ include ../../Arduino.mk
11886
#BOOTLOADER_PARENT = $(HOME)/arduino/hardware/mighty-1284p/bootloaders
11987
#BOOTLOADER_PATH = optiboot
12088
#BOOTLOADER_FILE = optiboot_atmega1284p.hex
121-
#ISP_PROG = usbasp
122-
#AVRDUDE_OPTS = -v
89+
#ISP_PROG = usbasp
90+
#AVRDUDE_OPTS = -v
91+
#include /usr/share/arduino/Arduino.mk
92+
93+
# --- mightycore
94+
#ALTERNATE_CORE = MightyCore
95+
#BOARD_TAG = 1284
96+
#MCU = atmega1284p
97+
#BOARD_TAG = 644
98+
#MCU = atmega644p
99+
#VARIANT = standard
100+
#F_CPU = 16000000L
101+
#include /usr/share/arduino/Arduino.mk
102+
103+
# --- megacore
104+
#BOARD_TAG = 128
105+
#ALTERNATE_CORE = megacore
106+
#F_CPU = 16000000L
107+
#include /usr/share/arduino/Arduino.mk
108+
109+
# --- sanguino 644p
110+
#BOARD_TAG = atmega644p
111+
#ALTERNATE_CORE = sanguino
112+
#ISP_PROG = usbasp
113+
#AVRDUDE_OPTS = -v
123114
#include /usr/share/arduino/Arduino.mk
124115

125116
# --- atmega328p on breadboard

0 commit comments

Comments
 (0)