Giter Club home page Giter Club logo

adg732's Introduction

Arduino CI Arduino-lint JSON check GitHub issues

License: MIT GitHub release PlatformIO Registry

ADG732

Arduino library for ADG732 - 32 to 1 channel multiplexer.

Description

Experimental

ADG732 is an Arduino class that controls a 1 x 32 multiplexer over a parallel interface. Only one of the 32 channels can be connected at the same time. The library also support to select none (== 33th state).

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

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

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

Related

Interface

#include "ADG732.h"
  • ADG732(uint8_t A, uint8_t B, uint8_t C, uint8_t D, uint8_t E, uint8_t CS, uint8_t EN, uint8_t WR) constructor.
  • ADG732(uint8_t address[5], uint8_t CS, uint8_t EN, uint8_t WR) constructor.
  • void setChannel(uint8_t channel) set the current channel for both A and B. Valid values for channel are 0..31. Numbers larger than 31 will be "wrapped" modulo 32.
  • uint8_t getChannel() get last set channel A == 0..31 or ADG732_ALLOFF.
  • uint8_t channelCount() returns 32 for ADG732.
  • void allOff() sets all channels to OFF, none selected.

Future

Must

  • improve documentation
  • test with hardware
  • keep in sync with ADG731 (interface)

Should

  • add examples

Could

  • bool setChannel(uint8_t channel) return false if out of range?

Wont

Support

If you appreciate my libraries, you can support the development and maintenance. Improve the quality of the libraries by providing issues and Pull Requests, or donate through PayPal or GitHub sponsors.

Thank you,

adg732's People

Contributors

robtillaart avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.