SparkFun Bar Graph
qbit opened this issue · comments
Aaron Bieber commented
Has anyone tested this with the SparkFun bar graph?
I have it connected to what i believe are the proper pins ( following this [pdf] ) but I am getting no love.
Running the below script:
import RPi.GPIO as GPIO
import shiftpi.shiftpi as shiftpi
shiftpi.shiftRegisters(4)
shiftpi.startupMode(shiftpi.HIGH, True)
# turns shift register's pin 1 to HIGH
shiftpi.digitalWrite(1, shiftpi.HIGH)
shiftpi.delay(1000)
# turns shift register's pin 1 to LOW
shiftpi.digitalWrite(1, shiftpi.LOW)
shiftpi.delay(1000)
# turns all shift register pins to HIGH
shiftpi.digitalWrite(shiftpi.ALL, shiftpi.LOW)
shiftpi.delay(1000)
Aaron Bieber commented
Turns out I was using the RasPI pinouts and not the RasPI 3! Works like a charm!