CD74HC4067 library for Arduino
Switch branches/tags
Nothing to show
Clone or download
Permalink
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
README.md Update README.md Apr 19, 2016
keywords.txt initial Apr 19, 2016
library.properties Update library.properties Nov 12, 2016

README.md

CD74HC4067

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

my_mux.channel(8);