Git Product home page Git Product logo

light-parser's Introduction

light-parser

A Python script that takes a (lowercase alphabetic) string and parses the string into Arduino formatted data for output to a minimum 8 x 5 LED dot matrix module, flashed one letter at a time. For use with MAX7219 and MAX7221 display drivers and the LedControl library.

How to use

$ python main.py
  1. Input your string. Only lowercase Latin alphabetic characters are supported at this time.
  2. Copy and paste the whole output into a blank file in the Arduino IDE.
  3. Initialize your program with the LedControl library according to their documentation.
  4. Compile and upload your code to Arduino.

Warnings

The letters are not pretty. If you have better ideas for more elegant letters, open a pull request for the binary letters. Each 8-bit value covers one 8-LED row or column of your display; letters are currently max 5 rows tall.

At the moment, if you type a word with repeated letters, you'll have to manually delete the duplicate binary code from BinaryDict.

Acknowledgements

This code was inspired by Elegoo's tutorial for the LED dot matrix parser, which can be found here, under "Elegoo UNO R3 The Most Complete Starter Kit" (please be warned that the file containing the tutorial is 500+ MB). At this time, some of the letters in BinaryDict are from the code in this file and may have rights held by Elegoo.

light-parser's People

Contributors

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