Naguissa / uMuxOutputLib

Arduino, ESP8266 and STM32 multiplexed outputs library
GNU Lesser General Public License v3.0
2 stars 0 forks source link
arduino arduino-library multiplexed multiplexed-outputs naguissa

Arduino, ESP8266 and STM32 multiplexed outputs library - uMuxOutputLib

Master status: Build Status

What is this repository for?

Really tiny library to control multiplexed outputs.

It cycles among multiplexed outputs using a timer to control all pins.

Important: Dependencies

This library requires uTimerLib libary; it's available on IDE Library Manager and also here:

https://github.com/Naguissa/uTimerLib https://github.com/Naguissa/uTimerLib/releases

How do I get set up?

You can get it from Arduino libraries directly, searching by uMuxOutputLib.

For manual installation:

Documentation and extras

You can find all documentation and extras in this repository: https://github.com/Naguissa/uMuxOutputLib_doc_and_extras

You can read documentation online here: https://naguissa.github.io/uMuxOutputLib_doc_and_extras/

Usage

Constructor:

uMuxOutputLib::uMuxOutputLib(uint8_t npins, uint8_t nmuxes, int pins, int muxes, unsigned int freq);

Parameters:

Set a value:

void uMuxOutputLib::setPinAbsolute(uint position, bool value);

Parameters:

void uMuxOutputLib::setPinMuxPin(uint8_t pin, uint8_t mux, bool value);

Parameters:

Start library

void uMuxOutputLib::attachInterrupt();

Attaches internal timer interrupts to run multiplexed pins.

Extra: Mux logic level

bool uSevenSegmentLib::activeMuxValue = false;

This variable is used to indicate the level of an active mux. All muxes will be set to inverse of this value when they are not active.

Typical usage:

Examples

Included on example folder, available on Arduino IDE.

Who do I talk to?

Contribute

Any code contribution, report or comment are always welcome. Don't hesitate to use GitHub for that.

Thanks for your support.

Contributors hall of fame: https://www.foroelectro.net/hall-of-fame-f32/contributors-contribuyentes-t271.html