Log In  

0

Howdy

Im trying to wring as much performance out of my TinyPi project which is running Pico-8 https://twitter.com/Pi0CKET

and i notice WiringPi is actually built into the RaspberyPi build. Looking at the documentation, the only mention i can find about it, is for allowing a cartridge to access the GPIO to flash lights etc, which is pretty kool!!

Is there any ability to use WiringPi to use the GPIO as input? This would mean that i could remove another external process (adafruit retrogame) and mean faster running (hopefully) :)

P#40690 2017-05-17 04:24

::

There isn't currently a way to remap gpio states as button input automatically, but you can do it by adding code to PEEK() the GPIO addresses and treat them as input. Here's someone else doing it:

https://twitter.com/Doomworks/status/758127995110494208

Perhaps a -gpio_buttons switch would be in order for such projects.

P#40716 2017-05-18 05:23

::

Thanks for the reply

I don't think my current method is adding a massive overhead, just trying to keep everything as minimal as possible.

Now if there was just a way to pipe the SDL2 output from pico-8 straight to /Dev/fb1, then I could trim some more :P

P#40727 2017-05-18 14:04

Log in to post a comment

user:
password:

New User | Account Help
:: New User
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2017-05-30 11:06 | 0.201s | 1572k | Q:11