GithubHelp home page GithubHelp logo

josemalone / cryptoio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crypter/cryptoio

0.0 1.0 0.0 29 KB

Get 32 outputs from ESP8266 boards using shift registers and I2S

License: GNU General Public License v3.0

C++ 100.00%

cryptoio's Introduction

CryptoIO

Get 32 outputs from ESP8266 boards using shift registers and I2S

What this library can do:

  • digitalWrite
  • analogWrite (aka. PWM)
  • DSWrite (Delta-Sigma PWM)
  • servoWrite (servo control signal)
  • LEDWrite (Delta-Sigma PWM, exponentialy scalled for realistic LED light output - 127 really looks like half the light of 255)

...and all of that on DMA using timed interrupts for better precision. This means the CPU is mostly free for other uses.

You have sinceTimer and resetTimer functions inbuild for easier timing manipulation.

Soon I'll add wiring diagram, this should suffice for now:

  • GPIO2 (NodeMCU pin D4) [i2s output ws] <=> latch (74HC595 pin 12)
  • GPIO15 (NodeMCU pin D8) [i2s output clock] <=> serial clock in (74HC595 pin 11)
  • GPIO3 (NodeMCU pin RX) [i2s output data] <=> serial data in (74HC595 pin 14)

This library still needs a lot of improvements and optimisations, the current version was good enough for the internet. If you find a bug please report it, or even better - contribute a fix!

Idea taken from Cnlohr's LED driver and Lhartmann's RepRap driver.

cryptoio's People

Contributors

crypter avatar

Watchers

James Cloos 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.