Git Product home page Git Product logo

signalex's Introduction

Signalex

Control one of these bad boys over i2c! The base module for the Chronomix library

img

Reliant on the Adafruit Adafruit_MCP23017.h library.

Directions

Once you've imported it, you can create an instance with

Signalex mySignalex = Signalex(0); //Or 1, or 2... etc up to 7

//Or you can change the address with
mySignalex.setAddress(3);

//Once you are ready, in Setup, call

mySignalex.setup();

Using it can be a bit odd, since these Signalex displays do not work like LEDs. Each segment has a magnet that flips it on or off. Additionally, these magnets need to be charged to engage a flip, and then discharged.

So to flip a segment on, the code would be

//The 'true' denotes that we are targetting the coil that flips it 'on'
mySignalex.setSegmentOn(0, true); //Activate ON coil
delay(75); //Give it time to flip
mySignalex.setSegmentOff(0, true); //Deactivate ON coil

And then to turn that segment off:

mySignalex.setSegmentOn(0, false); //Activate OFF coil
delay(75); //Give it time to flip
mySignalex.setSegmentOff(0, false); //Deactivate OFF coil

Numbering

As I post this, I'm facepalming because I realized I left my notebook in another state. I believe these are organized by starting at the bottom right and moving clockwise.

signalex's People

Contributors

krebera 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.