sun_usb: Add Makefile for ATmega32U4

This commit is contained in:
tmk 2020-04-09 13:50:55 +09:00
parent 05c2df1237
commit e63aff8715
2 changed files with 13 additions and 4 deletions

View file

@ -0,0 +1,5 @@
TARGET = sun_usb_atmega32u4
MCU = atmega32u4
include Makefile

View file

@ -84,12 +84,16 @@ It can be still built with 'make HARDWARE_SERIAL=y' to enable hardware serial if
Build Firmware Build Firmware
-------------- --------------
Just use 'make' For TMK converter with ATmega32U2 just run `make` to build firmware hex file.
For other DIY converters with ATmega32U4 like Teensy2 or Pro Micro use `make -f Makefile.atmega32u4` instead of `make`.
$ cd sun_usb $ cd sun_usb
$ make $ make
Then, load the binary to MCU with your favorite programmer. Then, load the hex file into MCU with your favorite programmer. If you have `dfu-programmer` installed you can use `make dfu`.
$ make dfu
Keyboard Control Keyboard Control