Giter Site home page Giter Site logo

marcelstoer / nodemcu-max7219 Goto Github PK

View Code? Open in Web Editor NEW
33.0 7.0 9.0 8 KB

A NodeMCU library to write to MAX7219 8x8 matrix and 7-segment displays using SPI

Home Page: https://frightanic.com/iot/max7219-library-nodemcu-making/

License: MIT License

Lua 100.00%
nodemcu led-displays led-matrix-displays

nodemcu-max7219's Introduction

Hi there ๐Ÿ‘‹

I'm Marcel and GitHub is - at times - my second home.

:octocat: All the statistics

My GitHub stats Top languages

trophy

Twitter Follow GitHub Sponsors GitHub User's stars GitHub followers

nodemcu-max7219's People

Contributors

arsxrs avatar marcelstoer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodemcu-max7219's Issues

Add "rotate" parameter to setup(), extend rotation in write()

Basic rotation, reflecting the design of the display (modules combined this or that way), should be set during setup(). An extra rotation during write() would make a nice addition, in particular if angles of 90, 180 and 270 degrees would be supported :)
(BTW, what about mirroring?)

Example code does not work: max7219.lua:70: bad argument #1 to 'ipairs' (table or rotable expected, got nil)

The example code does not work:

[MAX7219] number of modules: 4, SS pin: 8
max7219.lua:70: bad argument #1 to 'ipairs' (table or rotable expected, got nil)
stack traceback:
	[C]: in function 'ipairs'
	max7219.lua:70: in function '?'
	max7219.lua:177: in function 'write'
	summy2.lua:3: in main chunk
	[C]: in function 'dofile'
	stdin:1: in main chunk

NodeMCU version:

NodeMCU custom build by frightanic.com
	branch: master
	commit: 22e1adc4b06c931797539b986c85e229e5942a5f
	SSL: false
	modules: bit,bme280,cjson,file,gpio,i2c,mqtt,net,node,spi,tmr,u8g,uart,wifi
 build 	built on: 2017-04-17 16:21
 powered by Lua 5.1.4 on SDK 2.0.0(656edbf)

Addition: Set/clear/toggle individual pixels

Currently, text output is the major focus of the module.
For simple graphics and effects, it should be possible to set/clear individual pixels (or rectangles), or toggle them.
The latter functionality would require to keep an image of the display in memory, I think.
Having a bit pattern in memory would also provide support for scrolling (issue #3) and what I think "oscillation" (issue #4) means...

Addition: Write to specific module

Right now, for multiple 7-segment modules, it just extends the length of the string that can be written. But it would be great if you could write text to a specific module.

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.