Created
February 2, 2015 17:38
-
-
Save alexanderhiam/4310934a026b79fc8c65 to your computer and use it in GitHub Desktop.
PRU driver idea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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