Upgrade to Pro — share decks privately, control downloads, hide ads and more …

コマンドラインで使うArduino

 コマンドラインで使うArduino

Arduino IDEはコマンドラインからでも機能を使うことができるので、自動化が簡単にできる、ということの紹介です。あと、本家に機能追加した話も。

【増席】IoT縛りの勉強会! IoTLT vol.43 @LINE - LINEBOOTAWARDS - connpass https://iotlt.connpass.com/event/98870/
でLTした内容に加筆したものです。

Dc628d6ebfdeda396b818a066acf27eb?s=128

Yohsuke FURUTA

September 18, 2018
Tweet

Transcript

  1.   Arduino Yohsuke FURUTA

  2. Engineering

  3.   

  4.  Arduino IDE   

  5.   l Sketch l GUIArduino  l /Applications/Arduino.app/Contents/MacOS/Arduino --upload

    --port /dev/tty.SLAB_USBtoUART sketch.ino
  6.  l GUI  l    l 

      
  7. l Sketch  l GUIArduino  l /Applications/Arduino.app/Contents/MacOS/Arduino --upload --port

    /dev/tty.SLAB_USBtoUART sketch.ino   GUI
  8. l Sketch  l GUIArduino  l /Applications/Arduino.app/Contents/MacOS/Arduino --upload --port

    /dev/tty.SLAB_USBtoUART sketch.ino  CLI  
  9. l Sketch l GUI Arduino !# l /Applications/Arduino.app/Contents/MacOS/Arduino --upload --port

    /dev/tty.SLAB_USBtoUART sketch.ino  "CLI#  ' &PC $   % 
  10. l Sketch  l GUIArduino  Arduino15/preferences.txt  l /Applications/Arduino.app/Contents/MacOS/Arduino

    --upload --port /dev/tty.SLAB_USBtoUART sketch.ino Arduino15/preferences.txt  
  11. l Sketch l GUIArduino  Arduino15/preferences.txt ! l /Applications/Arduino.app/Contents/MacOS/Arduino --upload

    --port /dev/tty.SLAB_USBtoUART sketch.ino Arduino15/preferences.txt  --preferences-file     "
  12. l Sketch  l GUIArduino  l /Applications/Arduino.app/Contents/MacOS/Arduino --upload --port

    /dev/tty.SLAB_USBtoUART sketch.ino   CLI  
  13. arduino --verify --preserve-temp-files --pref build.path=/PATH/TO/DIR HOGE.ino   

  14. arduino --verify --preserve-temp-files --pref build.path=/PATH/TO/DIR HOGE.ino    

          (: esp32esptool)
  15. arduino --install-library XXX arduino --install-boards XXX --pref boardsmanager.additional.urls= https://example.com/package_index.json 

     
  16. arduino --install-library XXX arduino --install-boards XXX --pref boardsmanager.additional.urls= https://example.com/package_index.json 

      Toolchain Arduino Docker  
  17.  l  /  Arduino IDEJava

  18.  l  /  Arduino IDEJava arduino-cliGolang

  19.  l  /  Arduino IDE Java arduino-cliGolang 

    l   
  20.  l % / &# Arduino IDEJava arduino-cliGolang$ l 

    "'  l ! CLI  --version  
  21. Engineering Pull Request

  22. Engineering

  23. Engineering 8   1.8.6  

  24. https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc CLI