arduino
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| arduino [2023/11/29 05:24] – jhagstrand | arduino [2023/11/30 00:58] (current) – [arduino-cli] jhagstrand | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| Arduino CLI is a command-line version of the same software. | Arduino CLI is a command-line version of the same software. | ||
| + | |||
| + | ===== Arduino IDE ===== | ||
| + | |||
| + | File - Preferences - Show verbose output during x compilation x upload | ||
| + | |||
| + | Check compilation and upload to get detailed messaging and learn: | ||
| + | * arduino-builder - the executable run for compile and upload. | ||
| + | * the name of the board | ||
| + | * the name of the core | ||
| + | * the tools and libraries used | ||
| + | * the include files used and from which folders | ||
| + | |||
| + | |||
| + | ===== arduino-cli ===== | ||
| + | |||
| + | Display a list of all installed boards, human name and FQBN: | ||
| + | $ arduino-cli board listall | ||
| + | |||
| + | Display current config settings, print out ~/ | ||
| + | $ arduino-cli config dump | ||
| Line 21: | Line 41: | ||
| Why is my sk8mini no longer compiling? | Why is my sk8mini no longer compiling? | ||
| + | |||
| + | When using Tools - Pin Numbering - "By Arduino pin (default)" | ||
| + | function digitalPinToGPIONumber(_pin) is added and compile fails | ||
| + | |||
| + | When using Tools - Pin Numbering - "By GPIO number (legacy)" | ||
| + | it compiles successfully, | ||
| + | |||
| + | My code uses D3 and D6 as pin numbers. | ||
| + | Where are these defined? | ||
| - | === Using Microcontrollers === | + | ===== Using Microcontrollers |
| A microcontroller is a type of integrated circuit (IC), a chip. | A microcontroller is a type of integrated circuit (IC), a chip. | ||
| Line 142: | Line 171: | ||
| Library Manager - where is this list of libraries? | Library Manager - where is this list of libraries? | ||
| + | Each of these folders contains a file named boards.txt. | ||
| + | boards.txt contains a number of key=value parameters grouped into sections. | ||
| + | It includes a name= keyword that identifies the name as displayed in the board menu in the IDE. | ||
| - | ===== Folder Structure ===== | + | nano_nora.name=Arduino Nano ESP32 |
| + | This board is found in two packages. | ||
| + | ~/ | ||
| + | ~/ | ||
| - | File - Preferences | + | The CLI needs the FQBN for the board. |
| + | |||
| + | I have 5 Nano ESP32 boards installed. | ||
| + | | Arduino Nano | arduino: | ||
| + | | Arduino Nano ESP32 | esp32: | ||
| + | | Arduino Nano ESP32 | arduino: | ||
| + | | Nano32 | ||
| + | | UM NanoS3 | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Folder Structure ===== | ||
| - | Sketchbook location: | + | Directories created by initial apt install: |
| + | * ~/ | ||
| + | * ~/ | ||
| + | * ~/ | ||
| - | Additional Boards Manager URLs: | + | ~/ |
| + | ~/ | ||
| + | Directores specified in preferences.txt: | ||
| + | * Sketchbook location: ~/Arduino | ||
| + | * Additional Boards Manager URLs: https:// | ||
| - | Package installed | + | Boards Manager installs |
| - | /home/john/.local/bin/arduino/arduino-1.8.19/ | + | * ~/.arduino15/packages/ |
| + | * ~/.arduino15/packages/arduino/hardware/ | ||
| + | * ~/.arduino15/ | ||
| - | Boards | + | Libarary |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| === Failure on Upload === | === Failure on Upload === | ||
arduino.1701253475.txt.gz · Last modified: 2023/11/29 05:24 by jhagstrand