shiftpi icon indicating copy to clipboard operation
shiftpi copied to clipboard

use 74HC595 to control 16 led?

Open Jakkawad opened this issue 9 years ago • 6 comments

how to call second 74HC595 pin? can use 'pin9'?

Jakkawad avatar Nov 07 '15 20:11 Jakkawad

Use provided shiftRegisters(num) in initialization:

shiftRegisters(2)
digitalWrite(9, HIGH)

this does work for me

jthomaschewski avatar Dec 04 '15 01:12 jthomaschewski

So far I successfully linked 4 registers... planning to link 8 :P

chapunazar avatar Aug 01 '16 12:08 chapunazar

how do you connect the second shift register?? please somebody help me i need 20 output

superino92 avatar Aug 06 '16 17:08 superino92

Hi, here you can see how you can connect 2 registers. Though its for arduino it works perfectly for Rpi pin voltage levels. Adding more registers as simple as chaining them

chapunazar avatar Aug 08 '16 13:08 chapunazar

HELP!!! look what my program in python say it! Traceback (most recent call last): File "tres.py", line 9, in shiftRegisters(2) NameError: name 'shiftRegisters' is not defined

superino92 avatar Aug 08 '16 16:08 superino92

make sure you are importing correctly shiftpi and also try with shiftpi.shiftRegisters(2)

chapunazar avatar Aug 08 '16 16:08 chapunazar