Comments (9)
I also posted similar question on rpi forums but nobody seems to have this issue.
http://93.93.128.176/forums/viewtopic.php?f=78&t=82878&sid=d0d74e743d877f9f3d166b283daee1d2&start=50
I wonder if my RPI B is bricked or is it simply a bug after you recent commits,
from mk_arcade_joystick_rpi.
Your pi may be bricked as it's running on many pi for me, i installed it on a b+ yesterday...
from mk_arcade_joystick_rpi.
Try that : unload the driver,
then run with python :
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(27, GPIO.IN, pull_up_down = GPIO.PUD_UP)
GPIO.wait_for_edge(27, GPIO.FALLING)
print("GPIO 27 is ok")
GPIO.cleanup()
from mk_arcade_joystick_rpi.
Hmm , I should have figure that out earlier :D Thanks for a hint to check GPIOs first lol
I just gave it a go and python script never ends , it just runs forever. I am not familiar with RPi gpio python libraries and from a code I can see that there is no error handling except success. If script runs forever , does it mean that GPIO 27 is bricked ? I already tried with other GPIOs and a result is pretty much the same. Also I just installed wiringPI and it shows that all user GPIOs are OK but it skips 27 so I will have to look for some other test or simply recode stuff to fit my check. Could you please give me a hint if above code returns an error in case of faulty GPIO ?
from mk_arcade_joystick_rpi.
Ok m I just figured that python code out. So it looks like it is not working if I set GPIO 27 - os reports that this GPIO is already assigned and busy.However if I put there 21 instead it all works correctly. GPIO 21 is a same pin as 27. I just changed mapping to 21 instaed 27 for "left " in mk_arcade_joystick_rpi.c and built a deb package and installed it. Unfortunately it is still not working.
So RPi is not bricked.
from mk_arcade_joystick_rpi.
Ok. If you test the python code with gpio22 (right) does it work ? (don't forget to unload the driver)
That's weird it looks like something is using gpio 27 for a special feature...
from mk_arcade_joystick_rpi.
Yup , I did unload that module prior to testing.
All other standard/user gpios work flawlessly except that 27 one. I
ll install fresh retropie or raspbian and check it again cos it starts to looks like that something is eating up this gpio like you just said. I
ll report back after test ;)
from mk_arcade_joystick_rpi.
Any progressions @drygol ?
from mk_arcade_joystick_rpi.
Same problem here on RPI2. jstest shows :Axes: 0:-32767 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off
from mk_arcade_joystick_rpi.
Related Issues (20)
- Analog Joystick With arduino as adc? HOT 3
- RX data HOT 1
- Add support for MCP23S17 HOT 3
- Using const for mcp max buttons HOT 1
- mk_arcade_joystick_rpi not found - repository not found HOT 1
- Retropie 4.4 Error! Bad return status for module build on kernel: 4.14.30-v7+ (armv7l) HOT 10
- One button not work
- Custom pin always on
- linux-headers-4.9.35-v7+_4.9.35-v7+-2_armhf.deb
- hotkey input
- Branch hotkeybtn Imposes USB Audio Issue on Amiberry
- Install script has a 404 at the kernel headers HOT 4
- gpio for 2 joysticks problem
- recalbox 6.0-DragonBlaze /recalbox 4.1 gpio buttons do not work at zero but work at pi3 HOT 30
- setup_timer needs to be replaced by timer_setup HOT 2
- Can I use this driver at raspberry pi 4B ? HOT 9
- mk_arcade_joystick_rpi can
- mk_arcade_joystick_rpi not work at retropie 4.6 HOT 2
- Not working for RetroPie 4.8 on Pi Zero WH
- Add support for RGB-Pi Jamma hat
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mk_arcade_joystick_rpi.