Coder Social home page Coder Social logo

xpldevices's People

Contributors

giocc avatar martinrusk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

giocc

xpldevices's Issues

Add ShiftOut class

Just renaming LedShift is not a good idea.
ShiftOut needs only HIGH/LOW state and no timer. So we will provide a new class or even make ShiftOut the parent class of LedShift.
Separate class is preferred, since we can use a compact storage with one bit each, so just needing 8 int8 words.

Extend LedShift to generic output shift registers (also to Led driver chains)

The LedShifter device could be used basically unchanged for output shift register; actually, the only change required is that ShRegs come in blocks of 8 outputs.
As a generalization, both LedDrivers and [chains of] shift registers could be grouped in a single device by simply adding a parameter/attribute with the number of 8-bit blocks.

An alteration is anyhow necessary for daisy-chained DM13A.

provide optional direct access to expander pins

A consideration: IMHO, in practice, it would make sense to limit this to multiplexers.
For other expanders (MCPs and, even if not [yet] foreseen, shift registers/SPI MCPs, particularly if chained) reading one input directly would mean reading all their input set, which basically defeats the purpose of having a quicker direct read.

Extend fast GPIO handling to LedShift

Since the shift register driver lines are also heavily switched, it would make sense to use the direct GPIO handling for those too.
This would mean adding one more byte for each line (3 bytes) per device, but given the expected number of devices, I would not expect this to be a significant drawback (to be evaluated of course).

Extend fast GPIO handling to LedShift

Since the shift register driver lines are also heavily switched, it would make sense to use the direct GPIO handling for those too.
This would mean adding one more byte for each line (3 bytes) per device, but given the expected number of devices, I would not expect this to be a significant drawback (to be evaluated of course).

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.