arduino:configuring_netbeans_for_arduino_development
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
arduino:configuring_netbeans_for_arduino_development [2018/08/24 16:05] – mithat | arduino:configuring_netbeans_for_arduino_development [2024/02/05 19:06] (current) – mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Configuring Netbeans for Arduino Development ====== | ====== Configuring Netbeans for Arduino Development ====== | ||
- | My current favorite tool for developing non-trivial Arduino projects is Netbeans with C++ support. This documents my setup. It has been vetted with NetBeans 8.2. | + | My current favorite tool for developing non-trivial Arduino projects is [[https:// |
===== The tool collection ===== | ===== The tool collection ===== | ||
- | + | NetBeans will be happiest if you let it know where the build tools for your project live. Set up a new tool collection for Arduino along the lines of the figure below: | |
- | I use either [[https:// | + | |
{{: | {{: | ||
+ | If you are using an Arduino that uses something other than an AVR microcontroller, | ||
===== The Makefile and config ===== | ===== The Makefile and config ===== | ||
- | ==== Arduino-Makefile | + | I use my own [[https:// |
- | + | ||
- | When creating a new project with Arduino-Makefile, | + | |
- | <file make Makefile> | + | ==== Arduino-Build ==== |
- | # Project config | + | |
- | ARDUINO_LIBS | + | |
- | BOARD_TAG | + | |
- | BOARD_SUB | + | |
- | MONITOR_PORT | + | |
- | MONITOR_CMD = screen-wrap | + | |
- | + | ||
- | # " | + | |
- | ARDUINO_QUIET | + | |
- | ARDUINO_SKETCHBOOK | + | |
- | ARDUINO_DIR | + | |
- | ARDMK_DIR | + | |
- | + | ||
- | # Include parent Makefile from < | + | |
- | include $(HOME)/ | + | |
- | </ | + | |
- | ==== Arduino-Build ==== | ||
If you're using Arduino-Build, | If you're using Arduino-Build, | ||
<file make Makefile> | <file make Makefile> | ||
- | # Point BB at the arduino-build.sh script | + | # Point BB at the arduino-build script |
- | BB=<your-path-to>/ | + | BB=/your/path/to/ |
# You shouldn' | # You shouldn' | ||
Line 59: | Line 40: | ||
</ | </ | ||
- | You will also need an '' | + | You will also need an '' |
- | < | + | < |
# === Arduino path === | # === Arduino path === | ||
ARDUINO_PATH=/ | ARDUINO_PATH=/ | ||
Line 76: | Line 57: | ||
</ | </ | ||
- | See the Arduino-Build readme for information on figuring out the board parameters and other fiddly bits. | + | Consult |
+ | |||
+ | ==== Arduino-Makefile ==== | ||
+ | |||
+ | When creating a new project with Arduino-Makefile, | ||
+ | |||
+ | <file make Makefile> | ||
+ | # Project config | ||
+ | ARDUINO_LIBS = SoftwareWire AsyncTimer | ||
+ | BOARD_TAG = pro | ||
+ | BOARD_SUB = 16MHzatmega328 | ||
+ | MONITOR_PORT = / | ||
+ | MONITOR_CMD = screen-wrap | ||
+ | |||
+ | # " | ||
+ | ARDUINO_QUIET = true | ||
+ | ARDUINO_SKETCHBOOK = $(HOME)/ | ||
+ | ARDUINO_DIR = $(HOME)/ | ||
+ | ARDMK_DIR = $(HOME)/ | ||
+ | |||
+ | # Include parent Makefile from < | ||
+ | include $(HOME)/ | ||
+ | </ | ||
===== Code completion ===== | ===== Code completion ===== | ||
- | While your setup should be working now, NB will be shouting at you a lot about things not being defined, etc. That's because you need to add [[arduino: | + | While your setup should be working now, NetBeans |
arduino/configuring_netbeans_for_arduino_development.1535126758.txt.gz · Last modified: 2018/08/24 16:05 by mithat