From 3730666b9788ce93a93185ef8ca76a5f5b770abd Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 2 Feb 2016 13:51:47 +0900 Subject: [PATCH] ibm4704_usb: Add Makefiles for TMK Converter --- converter/ibm4704_usb/Makefile | 4 ++-- converter/ibm4704_usb/Makefile.tmk_rev1 | 5 +++++ converter/ibm4704_usb/Makefile.tmk_rev2 | 6 ++++++ converter/ibm4704_usb/README.md | 19 ++++++++++++++++--- 4 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 converter/ibm4704_usb/Makefile.tmk_rev1 create mode 100644 converter/ibm4704_usb/Makefile.tmk_rev2 diff --git a/converter/ibm4704_usb/Makefile b/converter/ibm4704_usb/Makefile index b5c97d2d..79f17ec0 100644 --- a/converter/ibm4704_usb/Makefile +++ b/converter/ibm4704_usb/Makefile @@ -23,8 +23,8 @@ CONFIG_H = config.h # MCU name -#MCU = at90usb1287 -MCU = atmega32u4 +# TMK Converter rev.2 +MCU ?= atmega32u2 # Processor frequency. # This will define a symbol, F_CPU, in all source code files equal to the diff --git a/converter/ibm4704_usb/Makefile.tmk_rev1 b/converter/ibm4704_usb/Makefile.tmk_rev1 new file mode 100644 index 00000000..338b7da5 --- /dev/null +++ b/converter/ibm4704_usb/Makefile.tmk_rev1 @@ -0,0 +1,5 @@ +# TMK Converter rev.1 +# which looks like this: +# https://github.com/tmk/keyboard_converter#pcb-rev1 +MCU = atmega32u4 +include Makefile diff --git a/converter/ibm4704_usb/Makefile.tmk_rev2 b/converter/ibm4704_usb/Makefile.tmk_rev2 new file mode 100644 index 00000000..56c2c2c6 --- /dev/null +++ b/converter/ibm4704_usb/Makefile.tmk_rev2 @@ -0,0 +1,6 @@ +# TMK Converter rev.2 +# which looks like this: +# https://github.com/tmk/keyboard_converter#pcb-rev2 +MCU = atmega32u2 +include Makefile + diff --git a/converter/ibm4704_usb/README.md b/converter/ibm4704_usb/README.md index 68db4bd0..49c65cdf 100644 --- a/converter/ibm4704_usb/README.md +++ b/converter/ibm4704_usb/README.md @@ -47,22 +47,35 @@ Keyboard Plug from front: Connection ---------- -In case of using ATMega32U4(Teensy2.0): +In case of using ATMega32U4/U2 1. Supply power with VCC and GND. 2. Connect CLOCK to PD1 and DATA to PD0. You can change pin with config.h. 3. Optionally you may need pull-up register. 1KOhm probably work. +TMK Converter can supports IBM 4704. +https://github.com/tmk/keyboard_converter + Build Firmware -------------- Just run `make`: - $ make + $ make -f + +For TMK Converter rev.1 use `Makefile.tmk_rev1` as makefile: + + $ make -f Makefile.tmk_rev1 + +For TMK Converter rev.2 use `Makefile.tmk_rev2` as makefile: + + $ make -f Makefile.tmk_rev2 To select keymap: - $ make KEYMAP=[plain|...] + $ make -f KEYMAP=[plain|...] + +To indentify your TMK Converter revision see [this](https://github.com/tmk/keyboard_converter#pcb-revisions). Keymap