Log In  

I'm working on a cart to control the GPIO pins as if they were on a PLC (With ladder logic and such), but I really don't want the hassle of running the project on actual hardware (Say, a RPi) every time I make changes and want to test them (Even if I can automate the entire pipeline, I really don't want anything to do with rarspberrys at the moment).

Is there something like a python library that allows me to interact with the GPIO pins of a pico-8 that is running as if it was running on certain hardware?

If not, what would be the best way of making one? Does pico-8 have an API I can use? Or does it store the memory values in certain places I can access? (Sorry if it's a dumb question, I started using pico 2 days ago :P)

P#86646 2021-01-21 14:07

you can export the cart to html after every change and test gpio interactions using javascript.

running pico on a linux box you might be able to bind the gpio to some /dev endpoint - raise the question on the Pico8 Discord, hardware channel:
https://discord.gg/agjnaGXxnk

P#86648 2021-01-21 14:55

Will do, thank you

P#86649 2021-01-21 15:04

I’m 86% sure only the raspbian build of pico8 has GPIO capacity, and it relies on libwiringpi for it. The feature is not present in linux-amd64 builds.

But we can read from stdin, a filename or a dropped file so that should be much more convenient than an array of 128 bytes!

P#86650 2021-01-21 15:24

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 00:08:57 | 0.006s | Q:11