Arduino cheat sheet: Difference between revisions

Line 327: Line 327:
=== cygwin + Arduino-mk ===
=== cygwin + Arduino-mk ===
  [https://github.com/sudar/Arduino-Makefile Arduino-Makefile]
  [https://github.com/sudar/Arduino-Makefile Arduino-Makefile]
avr-toolchains を cygwin で作りなしたので Arduino-Makefile も若干の修正で動く。
上記の cygwin で作りなおした avr-toolchains であれば若干の修正で動く。


/usr/local/share/arduino/Common.mk:
/usr/local/share/arduino/Common.mk:
Line 344: Line 344:
> #endif
> #endif
</syntaxhighlight>
</syntaxhighlight>
:UNIX 流の path でOK


Makefile:
<syntaxhighlight lang="make" enclose="div">
<syntaxhighlight lang="make" enclose="div">
ARDUINO_DIR = /usr/share/arduino
ARDUINO_DIR = /usr/share/arduino
Line 358: Line 360:


MONITOR_CMD  = picocom
MONITOR_CMD  = picocom
MONITOR_PARMS = 8,1,n,N
FORCE_MONITOR_PORT = /dev/ttyS0
FORCE_MONITOR_PORT = /dev/ttyS0