tmk / tmk_keyboard

Keyboard firmwares for Atmel AVR and Cortex-M
4k stars 1.71k forks source link

GH60 PCB RevB or later support #64

Closed tmk closed 8 years ago

tmk commented 11 years ago

tmk GH60 doesn't support RevB or later atm, I'll fix code when I receive final revision of PCB in hand.

1) RevB has changed pin usage of col9(8,I,K,M. col8 in tmk) PB0 to PB7. http://geekhack.org/index.php?topic=37570.msg1040414#msg1040414 2) And RevB schematic has pins(PF4-7) for support for LEDs, apparently.

MEMO: To use PF4-7 you should stop JTAG function at intialization. (See datasheet for JTD bit)

ybh1125 commented 11 years ago

thank tmk!!!

ybh1125 commented 11 years ago

REV.B col10 row keys, press any of the buttons , but all output , such as pressing \"9\" output \"9ol,\" release the stop , press the other buttons on the column COL10 , too, this is why !

Kdash commented 11 years ago

Hi tmk! you said :"To use PF4-7 you should stop JTAG function at intialization", so which is the intialization file ?

tmk commented 11 years ago

You can initialize anywhere you want but I'd recommend matrix_init of matrix.c for now. Though, I wonder led.h should have function for init or new another API. In my firmware LED does not support well except for standard indicators.

Kdash commented 11 years ago

OK ! thank you! I'll try it~

Kdash commented 11 years ago

Hi, when I plug my GH60 keyboard on mac air , I run terminal.app or xcode 4, I find a side bar appeared, it's very annoying. How can i fix this ? (BTW: also I test the komar's firmware, it goes fine, no side bar.) term

tmk commented 11 years ago

Are you sure? It doesn't seem keyboard affects scroll bar behaviour. It looks your problem is just up to setting of Terminal.app to me.

If I'm wrong you need to explain your problem for more detail.

Kdash commented 11 years ago

I run xcode.app or iterm.app also appeared this side bar. (I using Mac osx 10.8.5 and 10.9). If I flash the komar's firmware, no side bar appeared. and I plug another keyboard like ikbc f-104, no side bar appeared. so I don't know why...

tmk commented 11 years ago

OK. I had used OS X several years ago but don't have working Mac now.

If you follow this scenario below will you get these results?

1) connect f-104 to your Mac 2) run Terminal.app icon on Dock by click Result 1: You don't have scroll bar on Terminal window.

3) disconnect f-104 and connect GH60 with tmk_keyboard firmware 4) run same Terminal.app icon on Dock by click Result 2: You have scroll bar on Terminal window.

Kdash commented 11 years ago

Yes, that's what I described.

And also I test the komar's firmware. 1) connect GH60 with komar's firmware 2) run Terminal.app icon on Dock by click Result 3: I don't have scroll bar on Terminal window

Some guys who has GH60 with tmk_keyboard firmware ,when connect the mac pro also cause this. gh60

tmk commented 11 years ago

hmm, totally weird. I can't come up with any clear clues at all.

I'm not sure but what if you reset keyboard setting? When you connected the keyboard first time you configured keyboard with setup assistance wizard. I guess it affects application property setting though it may be unlikely... http://www.raneri.it/blog/eng/2009/01/17/how-to-reset-the-mac-keyboard/

Or what if you use Teensy keyboard's USB VID and PID: 16c0 and 047c in config.h instead? These ID are used in kormar's firmware and Teensy example program; meanwhile tmk_keyboard uses invalid vendor ID(feed) which is not registered to USB authority organization. http://usb-ids.gowdy.us/read/UD/16c0

Last, which USB stack: LUFA or PJRC do you use? This affects the result?

Kdash commented 11 years ago

Thanks. I did what you told just before. I use Teensy keyboard's USB VID and PID: 16c0 and 047c in config.h instead and delete the /Library/Preferences/com.apple.keyboardtype.plist file, it also affects the result(I have scroll bar on Terminal window). I also used the LUFA and PJRC stack for test, both of them affect this (scroll bar on Terminal window).

tmk commented 11 years ago

Thanks for testing. Now that I have no idea.

Filed this problem as new issue #74 now. If you find something post a comment on that page.

showvim commented 10 years ago

hello~ I try to gh60 nkro ,but it is not run! neither lufa nor pjrc...only 6 keys to play! I want to know ,where was my wrong ? My Makefile NKRO set yes ,also My Makefile.pjrc NKRO set yes ...whatever that ,it is remain 6 keys play! I'm going to creazy...5555~~~~


Thank tmk very much ~ ^_^... Now,I can do it,Haha~ Nice! By 2013-12-14

tmk commented 10 years ago

NKRO is not enabled by default, you must turn on it explicitly with command. https://github.com/tmk/tmk_keyboard#magic-comannds

tmk commented 8 years ago

Both Rev.A and Rev.B were supported since commit beacd58