geekhack

geekhack Community => New Members => Topic started by: Pariah675 on Mon, 02 June 2014, 02:49:30

Title: Hello! I am new, and need help with programming my 40% keyboard!
Post by: Pariah675 on Mon, 02 June 2014, 02:49:30
Hi! I've owned a number of mechanical keyboards in the past. An old Model M, Logitech G710+, Ducky 9087G2 Pro, and a Razer Orbweaver. So I've sorta tried most of the popular keys, from BS to blues, browns, and greens. I recently picked up a left handed keyboard with Futuba mechanical keyswitches. Some of the switches had died, so I didn't feel too bad cutting it up. I've repurposed the stock plate, and laid out my switches/caps as I like them. I'm trying to use ne0phyte's 40% firmware as a basis, but I'm struggling with it. Can anybody please give me any hints as to how to define rows and columns in the Teensy 3.1 program?

Attached is a couple of pictures of how it looks right now with the stock Futuba doubleshots, and a shot of the rows/colums on the back. I've also added an edited picture of the back, more clearly showing the rows/columns. I'm also wondering how I can program the Teensy to light one LED when the normal typing mode is activated, and another when the Fn key (to the right of the spacebar) is activated. Any help is definitely appreciated.
Title: Re: Hello! I am new, and need help with programming my 40% keyboard!
Post by: Pariah675 on Mon, 02 June 2014, 03:35:09
I realise I should probably also post the matrix.c I'm using.

https://github.com/ne0phyte/tmk_keyboard/blob/master/keyboard/THKBv1/matrix.c#L141-L208

This is the keymap I'm using. This is a modification of ne0phyte's keymap. As this is my first time doing this, I'm still pretty confused by it, but I think I've got it sorted for the configuration I want to use. If anyone can see any glaring issues in it, I'd love to be told exactly where I'm ****ing up.

https://github.com/Pariah675/tmk_keyboard/blob/ef2426b9453b0622664822be8fa0b3508c887be7/keyboard/THKBv1/keymap_thkb.c