Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion shiftpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,18 @@ def digitalWrite(pin, mode):

_setPin(pin, mode)
_execute()


def digitalWriteBundle(pinslist=[]):
'''
Allows the user to set the states of all pins on the register by using a single list.
The position of each element in the list represents the pin number, while its value represents the mode of the pin (HIGH or LOW).
'''
i = 1
for pinMode in pinslist:
_setPin(i, pinMode)
i+=1
_execute()

def delay(millis):
'''
Used for creating a delay between commands
Expand Down