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:
**NOTE: Use forward slash not backslash and there should be no spaces or
214
+
special characters in the Windows paths (due to Win/Unix crossover). The paths
215
+
should not be *cygdrive* paths.**`ARDUINO_SKETCHBOOK` is defined to avoid
216
+
automatic resolution, which resolve to *cygdrive* and is incompatable with the
217
+
build tools.
218
+
198
219
On Windows (using MSYS and PuTTY), you might want to set the following extra parameters:
199
220
200
221
```make
@@ -205,44 +226,52 @@ On Windows (using MSYS and PuTTY), you might want to set the following extra par
205
226
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
227
207
228
```make
208
-
ARCHITECTURE = avr
229
+
ARCHITECTURE = avr
209
230
BOARD_TAG = atmegang
210
231
BOARD_SUB = atmega168
211
232
```
212
233
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:
234
+
#### Symbolic Link
214
235
215
-
c:\Program Files (x86)\Arduino
236
+
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:
237
+
238
+
C:\Program Files (x86)\Arduino
216
239
217
240
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
241
219
242
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
268
241
269
-`BOARD_TAG` - Type of board, for a list see boards.txt or `make show_boards`
242
270
-`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`
271
+
-`ARDUINO_DIR` - Path to Arduino installation. Using Windows with Cygwin,
272
+
this path must use Unix / and not Windows \\ (eg "C:/Arduino" not
273
+
"C:\\Arduino).
274
+
-`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 nessessary and must use / not \\.
246
275
-`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.
0 commit comments