From: tmk Date: Thu, 9 Apr 2020 04:50:55 +0000 (+0900) Subject: sun_usb: Add Makefile for ATmega32U4 X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=e63aff87150282c02335e400dcbef4b1159d7b48;p=max%2Ftmk_keyboard.git sun_usb: Add Makefile for ATmega32U4 --- diff --git a/converter/sun_usb/Makefile.atmega32u4 b/converter/sun_usb/Makefile.atmega32u4 new file mode 100644 index 00000000..3f721fe3 --- /dev/null +++ b/converter/sun_usb/Makefile.atmega32u4 @@ -0,0 +1,5 @@ +TARGET = sun_usb_atmega32u4 +MCU = atmega32u4 + +include Makefile + diff --git a/converter/sun_usb/README.md b/converter/sun_usb/README.md index e65e2bcd..415786bf 100644 --- a/converter/sun_usb/README.md +++ b/converter/sun_usb/README.md @@ -24,7 +24,7 @@ Modern Type 4 and 5 keyboards uses 8Pin mini DIN. / 8 7 6 \ | 5 4 3 | \_ 2 1 _/ - \_____/ + \_____/ (receptacle) Wiring: @@ -76,7 +76,7 @@ It can be still built with 'make HARDWARE_SERIAL=y' to enable hardware serial if means no keys pressed. 0xFE Layout Response 0xFF Reset Response(followed by 0x04) - + ### Reference - http://kentie.net/article/sunkbd/page2.htm - http://kentie.net/article/sunkbd/KBD.pdf @@ -84,12 +84,16 @@ It can be still built with 'make HARDWARE_SERIAL=y' to enable hardware serial if 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 $ 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