Hack Forums
[Python] When WiringPi won't work. Try this! (+threaded blink & full color RGB options) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] When WiringPi won't work. Try this! (+threaded blink & full color RGB options) (/showthread.php?tid=5949021)



When WiringPi won't work. Try this! (+threaded blink & full color RGB options) - datguy.dev - Mar 9, 2019

Greetings,
    Recently, I purchased an Odroid C2 and have it running Ubuntu 18.04 server. For whatever reason the ported wiringpi library, that is used to access the gpio, just wasn't working correctly. I asked for help but didn't receive any replies... ("Shoulda' bought a RaspberryPi"  🤣 [sarcasm]) So I decided to write a library as I could use the CLI gpio tool. As in "gpio readall." But it actually turned out to be more useful because I ended up threading a blink function and adding full RGB color range which provides more states like white. I run it via Python3, but I'm sure it will work with Python2. Don't care to test it. >_<

    Regards,

Imgs: (custom case with 80mm fan)
Spoiler (Click to View)