Skip to content

Commit e3d97f7

Browse files
committed
Merge pull request #362 from sej7278/master
Added examples for various boards and IDE versions to the Blink example.
2 parents 1a1a739 + 1ccbc03 commit e3d97f7

File tree

3 files changed

+129
-2
lines changed

3 files changed

+129
-2
lines changed

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it
66

77
### In Development
88

9+
- New: Add more board examples to Blink demo (https://github.com/sej7278)
910
- New: Add option to split avrdude MCU from avr-gcc MCU (Issue #357) (https://github.com/hhgarnes)
1011
- New: Add support for /dev/tty.wchusbserial* (comes with cheap clones - DCCduino) (https://github.com/biesiad)
1112
- New: Add support for picocom as serial monitor(https://github.com/biesiad)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ or you can install it using the [pre-built package installer](https://pypi.pytho
129129

130130
You can also find more [detailed instructions in this guide](http://hardwarefun.com/tutorials/compiling-arduino-sketches-using-makefile).
131131

132-
You can also checkout the sample makefiles inside the `examples/` directory, e.g. [Makefile-example](examples/MakefileExample/Makefile-example.mk).
132+
You can also checkout the sample makefiles inside the `examples/` directory, e.g. [Makefile-example](examples/MakefileExample/Makefile-example.mk) demonstrates some of the more advanced options,
133+
whilst [Blink](examples/Blink/Makefile) demonstrates the minimal settings required for various boards like the Uno, Nano, Mega, Teensy, ATtiny etc.
133134

134135
Download a copy of this repo some where in your system or install it through a package.
135136

examples/Blink/Makefile

Lines changed: 126 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,130 @@
11
# Arduino Make file. Refer to https://github.com/sudar/Arduino-Makefile
22

33
BOARD_TAG = uno
4-
54
include ../../Arduino.mk
5+
6+
7+
8+
# --- leonardo (or pro micro w/leo bootloader)
9+
#BOARD_TAG = leonardo
10+
#MONITOR_PORT = /dev/ttyACM0
11+
#include /usr/share/arduino/Arduino.mk
12+
13+
# --- mega2560 ide 1.0
14+
#BOARD_TAG = mega2560
15+
#ARDUINO_PORT = /dev/ttyACM0
16+
#include /usr/share/arduino/Arduino.mk
17+
18+
# --- mega2560 ide 1.6
19+
#BOARD_TAG = mega
20+
#BOARD_SUB = atmega2560
21+
#MONITOR_PORT = /dev/ttyACM0
22+
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5
23+
#include /usr/share/arduino/Arduino.mk
24+
25+
# --- nano ide 1.0
26+
#BOARD_TAG = nano328
27+
#MONITOR_PORT = /dev/ttyUSB0
28+
#include /usr/share/arduino/Arduino.mk
29+
30+
# --- nano ide 1.6
31+
#BOARD_TAG = nano
32+
#BOARD_SUB = atmega328
33+
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5
34+
#include /usr/share/arduino/Arduino.mk
35+
36+
# --- pro mini
37+
#BOARD_TAG = pro5v328
38+
#MONITOR_PORT = /dev/ttyUSB0
39+
#include /usr/share/arduino/Arduino.mk
40+
41+
# --- sparkfun pro micro
42+
#BOARD_TAG = promicro16
43+
#ALTERNATE_CORE = promicro
44+
#BOARDS_TXT = $(HOME)/arduino/hardware/promicro/boards.txt
45+
#BOOTLOADER_PARENT = $(HOME)/arduino/hardware/promicro/bootloaders
46+
#BOOTLOADER_PATH = caterina
47+
#BOOTLOADER_FILE = Caterina-promicro16.hex
48+
#ISP_PROG = usbasp
49+
#AVRDUDE_OPTS = -v
50+
#include /usr/share/arduino/Arduino.mk
51+
52+
# --- chipkit
53+
#BOARD_TAG = mega_pic32
54+
#MPIDE_DIR = /where/you/installed/mpide-0023-linux64-20130817-test
55+
#include /usr/share/arduino/chipKIT.mk
56+
57+
# --- pinoccio
58+
#BOARD_TAG = pinoccio256
59+
#ALTERNATE_CORE = pinoccio
60+
#BOOTLOADER_PARENT = $(HOME)/arduino/hardware/pinoccio/bootloaders
61+
#BOOTLOADER_PATH = STK500RFR2/release_0.51
62+
#BOOTLOADER_FILE = boot_pinoccio.hex
63+
#CFLAGS_STD = -std=gnu99
64+
#CXXFLAGS_STD = -std=gnu++11
65+
#include /usr/share/arduino/Arduino.mk
66+
67+
# --- fio
68+
#BOARD_TAG = fio
69+
#include /usr/share/arduino/Arduino.mk
70+
71+
# --- atmega-ng ide 1.6
72+
#BOARD_TAG = atmegang
73+
#BOARD_SUB = atmega168
74+
#MONITOR_PORT = /dev/ttyACM0
75+
#ARDUINO_DIR = /where/you/installed/arduino-1.6.5
76+
#include /usr/share/arduino/Arduino.mk
77+
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+
110+
# --- teensy3
111+
#BOARD_TAG = teensy31
112+
#ARDUINO_DIR = /where/you/installed/the/patched/teensy/arduino-1.0.6
113+
#include /usr/share/arduino/Teensy.mk
114+
115+
# --- mighty 1284p
116+
#BOARD_TAG = mighty_opt
117+
#BOARDS_TXT = $(HOME)/arduino/hardware/mighty-1284p/boards.txt
118+
#BOOTLOADER_PARENT = $(HOME)/arduino/hardware/mighty-1284p/bootloaders
119+
#BOOTLOADER_PATH = optiboot
120+
#BOOTLOADER_FILE = optiboot_atmega1284p.hex
121+
#ISP_PROG = usbasp
122+
#AVRDUDE_OPTS = -v
123+
#include /usr/share/arduino/Arduino.mk
124+
125+
# --- atmega328p on breadboard
126+
#BOARD_TAG = atmega328bb
127+
#ISP_PROG = usbasp
128+
#AVRDUDE_OPTS = -v
129+
#BOARDS_TXT = $(HOME)/arduino/hardware/breadboard/boards.txt
130+
#include /usr/share/arduino/Arduino.mk

0 commit comments

Comments
 (0)