geekhack
geekhack Projects => Making Stuff Together! => Topic started by: Bandit on Tue, 24 February 2015, 21:23:34
-
Hey Guys, Bandit again. I recently wired up my Varmilo switch tester to a teensy 2.0 in a matrix. I no have officially no idea what I'm doing. I've fount Hasu's TMK firmware pack, and followed This guide (http://deskthority.net/workshop-f7/how-to-build-your-very-own-keyboard-firmware-t7177.html#p141386) but it isn't working right. I'm sure I'm missing something or I just have much to learn. Pointers in the right direction would be greatly appreciated!
-
What part are you stuck on specifically? matt3o's guide is pretty straight forward but you just have to pay close attention to the matrix of the switch tester and which pins you soldered them on.
-
What part are you stuck on specifically? matt3o's guide is pretty straight forward but you just have to pay close attention to the matrix of the switch tester and which pins you soldered them on.
I get to the very end where I have to type "make -f Makefile" and that comes up with an error at the very end.
(http://i.imgur.com/c2K8wPO.png)
-
If you are using Windows 8 you are in a very uphill battle. About the best solution in that case is to find an old XP box to do it, or linux of some fashion. That was the only way I was able to compile firmware. Even then I have no clue what I am doing. I just know that windows 8 has issues with WinAVR.
-
I'm using Windows 7. Does that work or should I use xp?
-
I *think* 7 worked but I abandoned that rig because easily accessible USB ports were not available
-
Any chance you can pastebin the code in the files you edited? That would help determine if it's an issue in the code or with the system.
-
Any chance you can pastebin the code in the files you edited? That would help determine if it's an issue in the code or with the system.
I'll post it here when I get home.
-
Why are you talking about Windows versions? There is clearly an error in the code
Keymap_common.h line 44
-
Why are you talking about Windows versions? There is clearly an error in the code
Keymap_common.h line 44
That's my guess, which is why I asked for files to be posted.
-
Here's my keymap_common.h
http://pastebin.com/FqYLKu2K (http://pastebin.com/FqYLKu2K)
-
Fix your KEYMAP. You have some extraneous commas and backslash.
#define KEYMAP( \
K00, K01, K02, \
K03, K04, K05, \
K06, K07, K08 \
) { \
{ KC_##K00, KC_##K01, KC_##K02 }, \
{ KC_##K03, KC_##K04, KC_##K05 }, \
{ KC_##K06, KC_##K07, KC_##K08 } \
}
-
Okay I fixed all the errors in my code, and I got the hex file to compile. Great! Now the only problem is that when I have the board plugged in, it just prints 369369369369369369369369 a bunch. I believe this is a hardware problem since it happens randomly on and off.
-
Okay I fixed all the errors in my code, and I got the hex file to compile. Great! Now the only problem is that when I have the board plugged in, it just prints 369369369369369369369369 a bunch. I believe this is a hardware problem since it happens randomly on and off.
Are 3 6 and 9 connected in your matrix? Looks like a backwards diode to me :)
-
Okay I fixed all the errors in my code, and I got the hex file to compile. Great! Now the only problem is that when I have the board plugged in, it just prints 369369369369369369369369 a bunch. I believe this is a hardware problem since it happens randomly on and off.
Are 3 6 and 9 connected in your matrix? Looks like a backwards diode to me :)
Yes, they're connected, but the diodes are all fine.
-
If it is happening intermittently, then it could be that the voltage levels are right on the edge. Are you sure you configured the I/O correctly with pull-up?
Also, do any of the other keys work?