Skip to content

Instantly share code, notes, and snippets.

Created February 2, 2015 17:38
What would you like to do?
PRU driver idea
class PRUDriverWrapper(object):
firmware = 'pru_driver.bin'
def __init__(self, pin1, pin2):
self.pru_driver = PRU.load(self.firmware, pin1, pin2)
def doit(self, value):
self.pru_driver.callFunction('doit', value)
def read(self):
return self.pru_driver.getValue('result')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment