To use the arduino-language-server
every sketch needs a sketch.yaml
containing the FQBN (Fully Qualified Board Name).
default_fqbn: arduino:avr:uno
Adjust the /dev/ttyUSB0
with your USB port.
arduino-cli compile . -u -p /dev/ttyUSB0
make deps
make
Warning: You have to run the "clean command" after modifying the Makefile
:
make clean
Generate compile_commands.json
for clangd
make clean
bear -- make build
Warning: You can't upload and read UART at the same time.
minicom -D /dev/ttyUSB0 -b 19200