Skip to content

Commit

Permalink
- Added start of coding python the correct way
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsir911 committed May 5, 2016
1 parent 06fddbe commit 9793cfc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gpiotesting/spoof.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def setmode(mode):
def setup(pinnum, direction):
pass
def output(pinnum, state):
# pinnum = state
exec("pin{0} = {1}".format(pinnum,state), globals())
print("setting pin",pinnum,"to",state)
def wait(pinnum):
Expand Down

0 comments on commit 9793cfc

Please sign in to comment.