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 07:34] – [Folder Structure] 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 141: | Line 170: | ||
| 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. | ||
| + | |||
| + | nano_nora.name=Arduino Nano ESP32 | ||
| + | This board is found in two packages. | ||
| + | ~/ | ||
| + | ~/ | ||
| + | |||
| + | 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 | ||
| + | |||
| + | |||
| + | |||
| + | |||
arduino.1701261256.txt.gz · Last modified: 2023/11/29 07:34 by jhagstrand