Skip to content

Latest commit

 

History

History
72 lines (56 loc) · 2.79 KB

notes to myself.md

File metadata and controls

72 lines (56 loc) · 2.79 KB

notes to myself as I go about getting re-setup to develop and run Arduino


current laptop h/w

MacBook Pro Apple M1 Max

macOS Monterey 12.6.1


using VS Code and arduino-cli instead of the Arduino GUI/desktop application

Updated arduino-cli arduino-cli 0.28.0 -> 0.29.0


Python requirement pip3 install pyserial


board list

Need to get various boards added to board manager

Remember to update arduino-cli.yaml with necessary url's
file: /Users/chris/Library/Arduino15/arduino-cli.yaml

board_manager:
  additional_urls:
    - https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
    - https://adafruit.github.io/arduino-board-index/package_adafruit_index.json

add board definitions to core via cli

arduino-cli core update-index --additional-urls https://adafruit.github.io/arduino-board-index/package_adafruit_index.json

Handy cli commands


compile commands

  • arduino-cli compile docs
  • compile, do not upload
    • arduino-cli compile --fqbn esp32:esp32:featheresp32 bme680station.ino
  • compile and upload
    • arduino-cli compile -u -p /dev/cu.usbserial-0160E91C --fqbn esp32:esp32:featheresp32 MyFirstSketch.ino
  • compile clean and upload (clean can add quite some time)
    • arduino-cli compile --clean -u -p /dev/cu.usbserial-0160E91C --fqbn esp32:esp32:featheresp32 testsketch.ino