Skipping the teensy

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
User avatar
joe7dust
Posts: 218
Joined: Mon Jun 06, 2016 4:13 am
Has thanked: 23 times
Been thanked: 7 times

Re: Skipping the teensy

Post by joe7dust » Tue Jun 07, 2016 10:39 pm

Ivoah wrote:I noticed that a lot of projects like this used a separate microcontroller for handling input. While this works just fine, it is another component to buy and power. It seems that not many people realize that the raspberry pi can use the GPIO pins as a keyboard, with the gpio_keys kernel module. Notro has a good tutorial on how to set it up on his fbtft wiki. Keep in mind that although it's on the fbtft wiki, I believe that it's a native part of the Pi kernel. Even if it isn't it doesn't matter, as fbtft is installed by default on the newer OSes. Hopefully people can use this trick to save a few bucks when making handhelds.
I checked that tut you linked, but I only see software commands listed. Where is a wiring diagram so I know where each of my switches will need to be soldered to on the GPIO?

User avatar
Fleder
Posts: 849
Joined: Thu May 05, 2016 9:04 am
Location: Germany
Has thanked: 183 times
Been thanked: 258 times

Re: Skipping the teensy

Post by Fleder » Wed Jun 08, 2016 1:35 am

joe7dust wrote:I checked that tut you linked, but I only see software commands listed. Where is a wiring diagram so I know where each of my switches will need to be soldered to on the GPIO?
1 to GND and 1 to the Pin. If you bridge the connection with your button, it will send an input.
Tactile Push Buttons usually have 2 pins for both, so id should not matter which, as long as you connect the right ones to GND and the Pin.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest