| .vscode | ||
| .gitignore | ||
| blink.c | ||
| Makefile | ||
| readme.md | ||
Usage
- Prepare & install
brew tap osx-cross/avrbrew install avr-gccbrew install avrdude- OPTIONAL: GUI for avrdude (to easily read and set fuses):
- Install AVRFuses for Mac from http://vonnieda.org/software/avrfuses and open it
- Point AVRFuses to your avrdude installation:
- Get path via command line
$ which avrdude
- Get path via command line
- Connect your USPasp to your Arduino and plug it into your Mac.
- Chose the usbasp in the programmer dropdown.
- Choose the usb port in AVRFuses. In my case it was just
usb. Close Settings window. - Click on „Autodetect“ to verify that everything works as expected. Now you can read and set Fuses.
- Setup project in vscode with make
- Install c/c++ extension via marketplace
- Download https://git.timovolkmann.de/tvolkmann/avr-vsc-c-demo for sample project. Make sure that paths in
.vscode/c_cpp_properties.jsonare correct. - Enter project directory and build with
$ make all - Flash to Arduino with
$ make flash