pISO
pISO copied to clipboard
seeking for your help about @No0ne fork
#Hi @No0ne, I made one piso from your fork, but I don't have the key 2 working, just joystick up and down as expected, what check should I do to get it working ? thanks
https://github.com/No0ne/pISO/commit/dbb8a5f0d61b25107724497f50a708638e193ce2#diff-560156d3a7c437865b720d969a0fda0eebd224fb7df6fb1901c60b3b2c994e81
As you can see here, there are three buttons defined. The select key should be mapped to the button when you press the joystick in. Like on a Playstation controller the joystick is also a button.
ok, I missed that, because I made a custom case for it and the way it's made I have missed that. thanks for your help. I'm just a beginner swift coder so I can barely understand your code. Is there a chance that this push button and button 2 or other will work together? because definitely I'll not be able to code it myself. thanks
Do you use the Waveshare 1.3inch OLED HAT or something else?
I use the same as yours in the project.
Le 8 mars 2021 à 12:42, No0ne [email protected] a écrit :
Do you use the Waveshare 1.3inch OLED HAT or something else?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hardware approach: solder a wire from pin 33 to pin 38. https://www.waveshare.com/w/upload/c/c8/1.3inch-OLED-HAL-Schematic.pdf
Software approach one button: change the line
let select_input = Pin::new(13);
to
let select_input = Pin::new(20);
Software approach both buttons: this would require more code changes!
is it possible to do something with a "or" condition ?
You need to do the initialization and listen for button presses separately for each pin.
the matter is not that I don't want to compile, it's more that I don't know how, even if if change the pin to 20 like you suggested in the source file
but I'm willing to learn how, if you don't mind to suggest a how to, please
Its documented here: https://github.com/ALSchwalm/pISO/blob/master/README.md
If you don't want to code or compile, the hardware approach with a wire between pin 33 and pin 38 on the gpio header or waveshare board should be the easiest solution.
ok I'll try, and I keep the hardware approach in mind, thank you.