Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedesen/arduino-smartrix
A message protocol for turning on or off LEDs in up to 16 MAX72xx matrices
https://github.com/pedesen/arduino-smartrix
Last synced: about 1 month ago
JSON representation
A message protocol for turning on or off LEDs in up to 16 MAX72xx matrices
- Host: GitHub
- URL: https://github.com/pedesen/arduino-smartrix
- Owner: pedesen
- License: mit
- Created: 2016-05-04T07:16:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-07T09:29:47.000Z (over 8 years ago)
- Last Synced: 2024-10-25T06:50:26.825Z (3 months ago)
- Language: Arduino
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# arduino-smartrix
A message protocol for turning on or off LEDs in up to 16 MAX72xx matrices.Info about the wiring: http://playground.arduino.cc/Main/MAX72XXHardware
## Message structure
One message contains information for up to 64 LEDs in a Matrix connected to one MAX72xx device (up to 16 devices are addressable)
* Byte 1: A hex char identifying the MAX72xx device (0 to 15)
* Byte 2: A hex char defining the number of rows (up to 8)
* Byte 3: A hex char defining the number of columns (up to 8)
* Bytes 4 to 19: Each byte is a hex char containing status information (on/off) for 4 LEDs (1 to 16 bytes)
* The last byte is a termination character (`;`)## Example for a 4x3 LED Matrix
`1`: LED is on
`0`: LED is off
```
[[ 0, 0, 1 ],
[ 0, 1, 0 ],
[ 1, 1, 1 ],
[ 0, 0, 0 ]]
```Binary representation of the matrix:
`0010 1011 1000`Hex representation of the matrix:
`2 B 8`Serial message sent to the arduino:
`0432B8;`The first byte (`0`) addresses the first MAX72xx device, the second byte (`4`) defines a number of 4 rows, the third byte (`3`) defines a number of 3 columns, bytes 4 to 6 (`2B8`) are the hex representation of the 4x3 matrix (see above). The last byte (`;`) is the termination byte.
## Example for a 8x8 LED Matrix
To turn on all LEDs of a 8x8 Matrix send this message to the Arduino
`088FFFFFFFFFFFFFFFF;`