Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alfred82santa/tarrab-arduino-leds
Arduino code to control NeoPixels from computer
https://github.com/alfred82santa/tarrab-arduino-leds
Last synced: about 4 hours ago
JSON representation
Arduino code to control NeoPixels from computer
- Host: GitHub
- URL: https://github.com/alfred82santa/tarrab-arduino-leds
- Owner: alfred82santa
- License: gpl-2.0
- Created: 2015-04-01T01:45:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-26T21:25:11.000Z (over 9 years ago)
- Last Synced: 2023-03-29T19:23:36.013Z (over 1 year ago)
- Language: Arduino
- Size: 184 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
===================
tarrab-arduino-leds
===================Arduino code to control NeoPixels from computer
-------------------
Protocol definition
-------------------+---------+-------------------------+
| Command | Command data |
+=========+=========================+
| 1 Byte | n bytes of message data |
+---------+-------------------------+--------
Commands
--------ACTION_SET_PIXEL
================**Command:** 0x01
**Command data length:** 7 bytes (+ 1 byte for command)
+---------+----------------------+--------+--------+--------+
| Command | Pixel position | Red | Green | Blue |
+=========+===========+==========+========+========+========+
| 0x01 | high byte | low byte | 1 byte | 1 byte | 1 byte |
+---------+-----------+----------+--------+--------+--------+ACTION_SET_SECTOR
=================**Command:** 0x02
**Command data length:** 7 bytes (+ 1 byte for command)
+---------+----------------------+----------------------+--------+--------+--------+
| Command | First pixel position | Sector length | Red | Green | Blue |
+=========+===========+==========+===========+==========+========+========+========+
| 0x02 | high byte | low byte | high byte | low byte | 1 byte | 1 byte | 1 byte |
+---------+-----------+----------+-----------+----------+--------+--------+--------+ACTION_SHOW
===========**Command:** 0x03
**Command data length:** 0 bytes (+ 1 byte for command)
+---------+
| Command |
+=========+
| 0x03 |
+---------+ACTION_CONFIG_STRIP
===================**Command:** 0x04
**Command data length:** 2 bytes (+ 1 byte for command)
+---------+----------------------+
| Command | Strip length |
+=========+===========+==========+
| 0x04 | high byte | low byte |
+---------+-----------+----------+ACTION_SET_8_PIXELS
===================**Command:** 0x05
**Command data length:** 27 bytes (+ 1 byte for command)
+---------+----------------------+--------+---------+--------+--------+---------+--------+--------+---------+--------+--------+---------+--------+--------+---------+--------+--------+---------+--------+--------+---------+--------+--------+---------+--------+
| Command | First pixel position | 1 Red | 1 Green | 1 Blue | 2 Red | 2 Green | 2 Blue | 3 Red | 3 Green | 3 Blue | 4 Red | 4 Green | 4 Blue | 5 Red | 5 Green | 5 Blue | 6 Red | 6 Green | 6 Blue | 7 Red | 7 Green | 7 Blue | 8 Red | 8 Green | 8 Blue |
+=========+===========+==========+========+=========+========+========+=========+========+========+=========+========+========+=========+========+========+=========+========+========+=========+========+========+=========+========+========+=========+========+
| 0x05 | high byte | low byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte | 1 byte |
+---------+-----------+----------+--------+---------+--------+--------+---------+--------+--------+---------+--------+--------+---------+--------+--------+---------+--------+--------+---------+--------+--------+---------+--------+--------+---------+--------+