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
import wiringpi | |
pin_base = 65 | |
i2c_addr = 0x20 | |
#pins = [65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80] | |
ROWS = range(68, 68 + 4) | |
def initialize(): | |
# Set all out pins to 0 (prevent floating) | |
for pin in ROWS: |