Giter Club home page Giter Club logo

atomictext's Introduction

Atomic Text

Quick and dirty tool to scroll messages posted over HTTP on an M5Stack Atom.

Usage

  1. Open the source folder in the PlatformIO IDE
  2. Set your WiFi network SSID and PASSWORD in main.cpp.
  3. Upload using the PlatformIO Upload button (which will also do a build first).
  4. POST to the endpoint http://atomictext.local/m with the KEY "text" and your message as the VALUE. You can also use GET (e.g. ?text=HELLO) but spaces are treated as URL ENCODED so not recommended
  5. Optionally include KEY "grb" to set a fixed text colour (e.g. &grb=0x00FF00 would set the text to red - nb. GRB not RGB order)

Note: mobile devices may not support mDNS which is used to set the domain name "atomictext.local" on your network - so you may need to find the IP address on your router instead.

Limitations

  • Currently only horziontal scroll to the left is supported as earlier revisions used the official M5Atom library 0.0.1 animation API which despite supporting scroll in many directions appears to have a memory corruption issue and would crash with messages of more than a few words (about 20 characters).

  • The font used in this library could do with work - any improvements on design and usage appreciated (bear in mind it's 5x5 pixels)! You are restricted to the alphabet in dict.h.

  • There was an interrupt bug causing the LEDs to flicker slightly on scroll caused by the WiFi and display threads running on the same core which is another limitation in the M5Atom library 0.0.1. To workaround it the display is initialised directly in setup() and the core explicitly chosen, instead of using M5.begin() for this purpose. This may cause incompatibility when the M5Atom library is updated if the patch is not removed.

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.