Help wanted with port of Python gpio_lib
Andrew Conroy (370) 740 posts |
During Lockdown, I had a little project to port the gpio_lib Python library to RISC OS to allow access to GPIO from Python in a standard way. For my use this seems to be working and I’ve been able to run code supplied by Pimoroni with their hardware natively on RISC OS Python without changing it. Unfortunately, as a newcomer to Python and a generally ‘rough-and-ready’ coder, my Python is not really up to the standards necessary to release the library publically. I did ask for help before, and was told then that my code was fairly poor quality, but the suggestions to improve it also broke the library functionality (ie. made it no longer compatible with the original gpio_lib), so I gave up. Is there anyone who would be prepared to take my poor attempt at writing Python in a BASIC-esque style, and write it properly so that it can be released? Obviously they would get full credit for the library whilst any inadequacies would be down to my original mistakes. Alternatively, has anyone already ported the gpio_lib library properly? |
David J. Ruck (33) 1636 posts |
I might be able to take a quick look, but can’t promise anything, there is a war on. |
Andrew Conroy (370) 740 posts |
Thanks, I’ll send you an email. You might want to be sat down with a stiff drink on hand when you look at it though! |
Chris Johns (8262) 242 posts |
I think I had a quick look at this ages ago but things like life got in the way, apologies. It would be nice to get another RISC OS library into pip. It /should/ be possible to do it all from RISC OS, but I’ve not tried for a while. I need to get my python hat back on.. |
Andrew Conroy (370) 740 posts |
I’d settle for most of it being possible so long as the library remains fully compatible with the existing rpi.gpio library for the things it does support. |