neroroxxx / RoxMux

Collection of Multiplexer Controllers for some commonly used multiplexer chips.
Other
15 stars 5 forks source link

How to address multiple multiplexer and shift register #2

Closed mavoIn closed 3 years ago

mavoIn commented 3 years ago

Hello,

your library looks very cool.

How can i use multiple shift register in chain and a multiplexer at the same time? How do i have to change your examples, in my case for example:

define MUX_TOTAL_StellButtons 1

Rox74HC4067 muxStellButtons;

define MUX_TOTAL_StellLeds 3

Rox74HC165 muxStellLeds;

thx

neroroxxx commented 3 years ago

Hi, yes you can use as many as you want and even have multiple chains of the same if you want.

Your code should work as is, just keep in mind that "Rox74HC165" is not for LEDs it's for digital inputs, it uses the 74HC165, for leds you want to use the Rox74HC595 example

mavoIn commented 3 years ago

Cool. thank you for your fast answer. sorry, i had a lot to do... no time for my hobby