GY-63_MS5611/libraries/ADG725
2023-07-24 20:11:58 +02:00
..
.github 0.1.0 ADG725 2023-07-24 20:11:58 +02:00
examples/ADG725_demo 0.1.0 ADG725 2023-07-24 20:11:58 +02:00
test 0.1.0 ADG725 2023-07-24 20:11:58 +02:00
.arduino-ci.yml 0.1.0 ADG725 2023-07-24 20:11:58 +02:00
ADG725.h 0.1.0 ADG725 2023-07-24 20:11:58 +02:00
CHANGELOG.md 0.1.0 ADG725 2023-07-24 20:11:58 +02:00
keywords.txt 0.1.0 ADG725 2023-07-24 20:11:58 +02:00
library.json 0.1.0 ADG725 2023-07-24 20:11:58 +02:00
library.properties 0.1.0 ADG725 2023-07-24 20:11:58 +02:00
LICENSE 0.1.0 ADG725 2023-07-24 20:11:58 +02:00
README.md 0.1.0 ADG725 2023-07-24 20:11:58 +02:00

Arduino CI Arduino-lint JSON check License: MIT GitHub release

ADG725

Arduino library for ADG725 - 16 to 1 channel (2x) multiplexer.

Description

Experimental

ADG725 is an Arduino class that controls two 16 to 1 multiplexers over a SPI like interface. Only one of the 16 channels can be connected at the same time. The channels can be set per multiplexer or together in one call. The library also support to set them all off (17th state).

On power-up, all switches are in the OFF state.

This library can be used e.g. to connect 16 analog devices to one analog port, or to select between 16 DHT22 sensors.

Not tests with hardware have been done yet, so use with care. Feedback welcome!

TODO insert picture.

Interface

#include "ADG725.h"
  • ADG725(uint8_t clockPin, uint8_t dataPin, uint8_t syncPin) constructor.
  • void setChannel(uint8_t channel) set the current channel for both A and B. Valid values for channel are 0..15.
  • void setChannelA(uint8_t channel) set the current channel for A only. Valid values for channel are 0..15.
  • void setChannelB(uint8_t channel) set the current channel for B only. Valid values for channel are 0..15.
  • uint8_t getChannelA() get last set channel A == 0..15 or ADG725_ALLOFF.
  • uint8_t getChannelB() get last set channel B == 0..15 or ADG725_ALLOFF.
  • uint8_t channelCount() returns 16 for ADG725.

Future

Must

  • improve documentation
  • test with hardware

Should

  • add examples
  • check performance

Could

Wont