CD74HC4067 library for Arduino
Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information.
examples/Loop initial Apr 19, 2016
src Create CD74HC4067.cpp Oct 23, 2016
LICENSE Update LICENSE Oct 23, 2016 Update Apr 19, 2016
keywords.txt initial Apr 19, 2016 Update Nov 12, 2016


Arduino library for the CD74HC4067 mux

Connect the four control pins to any unused digital or analog pins.

Connect the common pin to any other available pin. This is the pin that will be shared between the 16 channels of the CD74HC4067. The 16 channels will inherit the capabilties of the common pin. For example, if it's connected to an anolog pin, you will be able to use analogRead on each of the 16 channels.

use the library by adding

#include <CD74HC4067.h>

to the top of your program.

Create a new CD74HC4067 object, specifying the control pins, s0 s1, s2, s3.

CD74HC4067 my_mux(4, 5, 6, 7);

Set the channel using the .channel() function;