n0bel / PiClock

A Fancy Clock built around a monitor and a Raspberry Pi
MIT License
566 stars 182 forks source link

Raspberry Pi 3 Model B+ GPIO Keys #159

Closed jshiatt closed 5 years ago

jshiatt commented 5 years ago

The company I work with put a bunch of PiClocks all throughout the shop floor on Raspberry Pi 3 Model Bs. We recently purchased a Model B+ to test its capabilities but ran into an issue with the gpio pins. When running the startup script, gpio-keys 23:KEY_SPACE prints the error message saying invalid key code. I ran pinout in the terminal and saw that the pins are all the same so there should be no issue with where the wires go and am wondering if this is a module issue or just an OS issue as a whole.

Also: I have done make clean and re-made the executable a few times and it doesn't change anything.

Edit: I tried it with other keys and it gives the same Unknown key code error message.

jshiatt commented 5 years ago

I figured it out. My uinput_names.inc was empty so I copied the values from github and pasted them into the file and remade gpio-keys.