Skip to content

Commit 977e43f

Browse files
committed
Merge pull request #353 from sej7278/master
Updated some documentation to clarify 1.5+ settings.
2 parents cd74017 + eaa8f1f commit 977e43f

File tree

4 files changed

+27
-15
lines changed

4 files changed

+27
-15
lines changed

HISTORY.md

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

99
- Tweak: Looks for submenu items first when parsing BOARDS_TXT (Issue #347) (https://github.com/sej7278)
1010
- Tweak: Various spelling/grammar/typo fixes (https://github.com/dcousens)
11+
- Tweak: Clarified some 1.5+ issues in docs (Issue #352) (https://github.com/sej7278)
1112

1213
### 1.5 (2015-04-07)
1314
- New: Add support for new 1.5.x library layout (Issue #275) (https://github.com/lukasz-e)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,11 @@ On Windows (using MSYS and PuTTY), you might want to set the following extra par
162162
MONITOR_PARMS = 8,1,n,N
163163
```
164164

165-
On Arduino 1.5.x installs, you should set the architecture to either `avr` or `sam` and if using a submenu CPU, then also set that:
165+
On Arduino 1.5+ installs, you should set the architecture to either `avr` or `sam` and if using a submenu CPU type, then also set that:
166166

167167
```make
168168
ARCHITECTURE = avr
169+
BOARD_TAG = atmegang
169170
BOARD_SUB = atmega168
170171
```
171172

arduino-mk-vars.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ARDUINO_QUIET = 1
4040

4141
Directory where the `*.mk` files are stored.
4242

43-
Usually can be auto-detected as `AUTO_ARDUINO_DIR` (parent of `Arduino.mk`).
43+
Usually can be auto-detected as parent of `Arduino.mk`.
4444

4545
**Example:**
4646

@@ -96,7 +96,7 @@ RESET_CMD = ~/gertduino/reset
9696

9797
**Description:**
9898

99-
Directory where the Arduino IDE and/or core files are stored.
99+
Directory where the Arduino IDE and/or core files are stored. Usually can be auto-detected as `AUTO_ARDUINO_DIR`.
100100

101101
**Example:**
102102

@@ -105,6 +105,8 @@ Directory where the Arduino IDE and/or core files are stored.
105105
ARDUINO_DIR = /usr/share/arduino
106106
# Mac OS X
107107
ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java
108+
# Mac OSX with IDE 1.5+
109+
ARDUINO_DIR = /Applications/Arduino.app/Contents/Java
108110
```
109111

110112
**Requirement:** *Optional*
@@ -116,7 +118,7 @@ ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java
116118
**Description:**
117119

118120
Directory where the Arduino platform dependent libraries are stored.
119-
(Used only for Arduino 1.5.x)
121+
(Used only for Arduino 1.5+)
120122

121123
**Example:**
122124

@@ -150,9 +152,9 @@ ARDUINO_VERSION = 105
150152

151153
**Description:**
152154

153-
Architecture for Arduino 1.5
155+
Architecture for Arduino 1.5+
154156

155-
Defaults to unset for 1.0 or `avr` for 1.5
157+
Defaults to unset for 1.0 or `avr` for 1.5+
156158

157159
**Example:**
158160

@@ -208,8 +210,10 @@ Path to Arduino `preferences.txt` file.
208210

209211
Usually can be auto-detected as `AUTO_ARDUINO_PREFERENCES` from the defaults:
210212

211-
* on Linux : `~/.arduino/preferences.txt`
212-
* on Mac OS X : `~/Library/Arduino/preferences.txt`
213+
* on Linux (1.0): `~/.arduino/preferences.txt`
214+
* on Linux (1.5+): `~/.arduino15/preferences.txt`
215+
* on Mac OS X (1.0): `~/Library/Arduino/preferences.txt`
216+
* on Mac OS X (1.5+): `~/Library/Arduino15/preferences.txt`
213217

214218
**Example:**
215219

@@ -277,7 +281,7 @@ BOARD_TAG = uno or mega2560
277281

278282
**Description:**
279283

280-
1.5 submenu as listed in `boards.txt`
284+
1.5+ submenu as listed in `boards.txt`
281285

282286
**Example:**
283287

@@ -289,7 +293,7 @@ BOARD_TAG=diecimila
289293
BOARD_SUB=atmega168
290294
```
291295

292-
**Requirement:** *Mandatory for 1.5 if using a submenu CPU*
296+
**Requirement:** *Mandatory for 1.5+ if using a submenu CPU*
293297

294298
----
295299

@@ -521,7 +525,7 @@ USB_PID = 0x8039
521525
CPU speed in Hz
522526

523527
Usually can be auto-detected as `build.f_cpu` from `boards.txt`, except in
524-
some 1.6 cores like attiny where there is a clock submenu.
528+
some 1.5+ cores like attiny where there is a clock submenu.
525529

526530
**Example:**
527531

examples/TinySoftWareSerial/Makefile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@ ALTERNATE_CORE = attiny
55
# If not, you might have to include the full path.
66
#ALTERNATE_CORE_PATH = /home/sudar/Dropbox/code/arduino-sketches/hardware/attiny/
77

8-
BOARD_TAG = attiny85-8
8+
# !!! Important. You have to use "make ispload" to upload when using ISP programmer
9+
ISP_PROG = usbasp
910

10-
ARDUINO_LIBS = SoftwareSerial
11+
# 1.5+ example of submenu cpu
12+
BOARD_TAG = attiny
13+
BOARD_SUB = attiny85
14+
15+
# clock is a submenu too
16+
F_CPU = 16000000L
1117

12-
include $(ARDMK_DIR)/Arduino.mk
18+
ARDUINO_LIBS = SoftwareSerial
1319

14-
# !!! Important. You have to use make ispload to upload when using ISP programmer
20+
include /usr/share/arduino/Arduino.mk

0 commit comments

Comments
 (0)