Giter VIP home page Giter VIP logo

Comments (9)

drygol avatar drygol commented on August 28, 2024

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.

digitalLumberjack avatar digitalLumberjack commented on August 28, 2024

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.

digitalLumberjack avatar digitalLumberjack commented on August 28, 2024

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.

drygol avatar drygol commented on August 28, 2024

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.

drygol avatar drygol commented on August 28, 2024

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.

digitalLumberjack avatar digitalLumberjack commented on August 28, 2024

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.

drygol avatar drygol commented on August 28, 2024

Yup , I did unload that module prior to testing.
All other standard/user gpios work flawlessly except that 27 one. Ill 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. Ill report back after test ;)

from mk_arcade_joystick_rpi.

digitalLumberjack avatar digitalLumberjack commented on August 28, 2024

Any progressions @drygol ?

from mk_arcade_joystick_rpi.

vitorveras avatar vitorveras commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.