A lightweight, low memory consuming CD74HC4067 Library for Arduino IDE based microcontrollers
- Lightweight
- Consumes much less memory (RAM) compared to other CD74HC4067 libraries
- Easy to use
Include the library in sketch
#include <light_CD74HC4067.h>
Create a new CD74HC4067 object, specifying the select pins, s0 s1, s2, s3.
CD74HC4067 mux(4, 5, 6, 7); // mux(s0,s1,s2,s3), where s3 is the highest select line (MSB)
Set the channel using the channel() method
mux.channel(8); // Enter channel numbers from 0 - 15
Here is an instructable with simple example
If this library makes your life easier and has helped bring your project to reality, I would appreciate a small token of gratitude. Click on the below icon to contribute.