You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, if you have setup Cygwin to use a Windows Python installation,
140
+
simply install using pip:
141
+
142
+
```
143
+
pip install pyserial
144
+
```
145
+
146
+
Arduino-Makefile should automatically detect the Python installation type and
147
+
use the correct device port binding.
148
+
140
149
## Usage
141
150
142
151
Download a copy of this repo somewhere to your system or install it through a package by following the above installation instruction.
143
152
144
153
Sample makefiles are provided in the `examples/` directory. E.g. [Makefile-example](examples/MakefileExample/Makefile-example.mk) demonstrates some of the more advanced options,
145
154
whilst [Blink](examples/Blink/Makefile) demonstrates the minimal settings required for various boards like the Uno, Nano, Mega, Teensy, ATtiny etc.
146
155
147
-
MAC:
156
+
### Mac
148
157
149
158
On the Mac with IDE 1.0 you might want to set:
150
159
@@ -158,24 +167,28 @@ On the Mac with IDE 1.0 you might want to set:
@@ -184,17 +197,22 @@ Example of the project's make file:
184
197
MONITOR_PORT = /dev/ttyACM0
185
198
```
186
199
187
-
WINDOWS:
200
+
### Windows
188
201
189
-
On Windows (using cygwin), you might want to set:
202
+
On Windows (using Cygwin), you might want to set:
190
203
191
204
```make
192
-
ARDUINO_DIR = ../../arduino
205
+
# Symbolic link to Arduino installation directory - see below
206
+
ARDUINO_DIR = C:/Arduino
193
207
ARDMK_DIR = path/to/mkfile
194
208
MONITOR_PORT = com3
195
209
BOARD_TAG = mega2560
196
210
```
197
211
212
+
**NOTE: Use forward slash not backslash and there should be no spaces or
213
+
special characters in the Windows paths (due to Win/Unix crossover). The paths
214
+
should not be *cygdrive* paths.**
215
+
198
216
On Windows (using MSYS and PuTTY), you might want to set the following extra parameters:
199
217
200
218
```make
@@ -205,45 +223,53 @@ On Windows (using MSYS and PuTTY), you might want to set the following extra par
205
223
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:
206
224
207
225
```make
208
-
ARCHITECTURE = avr
226
+
ARCHITECTURE = avr
209
227
BOARD_TAG = atmegang
210
228
BOARD_SUB = atmega168
211
229
```
212
230
213
-
It is recommended in Windows that you create a symbolic link to avoid problems with file naming conventions on Windows. For example, if your your Arduino directory is in:
231
+
#### Symbolic Link
214
232
215
-
c:\Program Files (x86)\Arduino
233
+
It is recommended in Windows that you create a symbolic link to avoid problems with file naming conventions on Windows; unless one installs to a non-default location. For example, if your your Arduino directory is in:
234
+
235
+
C:\Program Files (x86)\Arduino
216
236
217
237
You will get problems with the special characters on the directory name. More details about this can be found in [issue #94](https://github.com/sudar/Arduino-Makefile/issues/94)
218
238
219
239
To create a symbolic link, you can use the command “mklink” on Windows, e.g.
The list of all variables that can be overridden is available at [arduino-mk-vars.md](arduino-mk-vars.md) file.
240
265
241
266
-`BOARD_TAG` - Type of board, for a list see boards.txt or `make show_boards`
242
267
-`MONITOR_PORT` - The port where your Arduino is plugged in, usually `/dev/ttyACM0` or `/dev/ttyUSB0` in Linux or Mac OS X and `com3`, `com4`, etc. in Windows.
243
-
-`ARDUINO_DIR` - Path to Arduino installation. In Cygwin in Windows this path must be
244
-
relative, not absolute (e.g. "../../arduino" and not "/c/cygwin/Arduino").
245
-
-`ARDMK_DIR` - Path where the `*.mk` are present. If you installed the package, then it is usually `/usr/share/arduino`
246
-
-`AVR_TOOLS_DIR` - Path where the avr tools chain binaries are present. If you are going to use the binaries that came with Arduino installation, then you don't have to set it. Otherwise set it realtive and not absolute.
268
+
-`ARDUINO_DIR` - Path to Arduino installation. Using Windows with Cygwin,
269
+
this path must use Unix / and not Windows \\ (eg "C:/Arduino" not
270
+
"C:\\Arduino).
271
+
-`ARDMK_DIR` - Path where the `*.mk` are present. If you installed the package, then it is usually `/usr/share/arduino`. On Windows, this should be a path without spaces and no special characters, it can be a *cygdrive* path if necessary and must use / not \\.
272
+
-`AVR_TOOLS_DIR` - Path where the avr tools chain binaries are present. If you are going to use the binaries that came with Arduino installation, then you don't have to set it. Otherwise set it relative and not absolute.
0 commit comments