From 2c453c726920f7ee113f28ddbc85d891b7ef1ba9 Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 8 Oct 2010 20:03:16 +0900 Subject: [PATCH] change matrix pinouts. --- README | 40 +++++++++++++++++++++++++++------------- matrix.c | 4 ++-- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/README b/README index 1da6044a..1dc82ae2 100644 --- a/README +++ b/README @@ -9,7 +9,7 @@ The project is heavily based on PJRC USB Keyboard/Mouse Example and owes a debt to preceding keyboard firmware projects. -VERSION +Version ------- 0.1 2010/08/23 It works as normal keyboard. @@ -27,14 +27,18 @@ VERSION a s d spc: mouse buttons m ,: mouse wheel +1.1 2010/10/08 + Matrix wiring changed for casing. + (and my Teensy PD3 seems to be latchuped and unusable. :<) -target board + +Target board ------------ Teensy 2.0 http://www.pjrc.com/teensy -projects related +Projects related ---------------- PJRC USB Keyboard/Mouse Example http://www.pjrc.com/teensy/usb_keyboard.html @@ -57,25 +61,35 @@ ps2avr http://sourceforge.net/projects/ps2avr/ -TODO ----- +TODO & ideas +------------ licensing notes(GPL) I think GPL is not infringement of PJRC license. souce code cleaning sleep&wakeup -debouncing +debouncing logic will be coded when bouncing occurs. bouncing doesnt occur on my ALPS switch so far. scan rate is too slow?(to be measure) -setting menu(wizard) - debug console - keymap setting + +support for HHKB pro matrix signal + exchange controller board with teensy +Trackpoint(PS/2) + receive PS/2 signal from TrackPoint + send USB HID report +Thinkpad keyboard support + turn keyboard to USB keyboard/mouse composite device +mouse horizontal wheel + http://www.microchip.com/forums/tm.aspx?high=&m=391435&mpage=1#391521 + http://www.keil.com/forum/15671/ + http://www.microsoft.com/whdc/device/input/wheel.mspx +setting menu(configure without changing firmware) + console for display + keymap/layer setting + mouse speed/acceleration matrix display PS/2 keyboard mode -support for HHKB pro matrix signal -Trackpoint(PS/2) support -Thinkpad keyboard support -mouse horizontal wheel + with USB to PS/2 dumb adapter(possible?) EOF diff --git a/matrix.c b/matrix.c index 45863e4a..cb52d79c 100644 --- a/matrix.c +++ b/matrix.c @@ -8,9 +8,9 @@ // matrix is active low. (key on: 0/key off: 1) // row: Hi-Z(unselected)/low output(selected) -// PD:0,1,2,3,6,7/PC:6,7/PF:7 +// PD0, PC7, PD7, PF6, PD6, PD1, PD2, PC6, PF7 // col: input w/pullup -// PB:0-8 +// PB0-PB7 // matrix state buffer uint8_t *matrix;