Project:USB Disco Dance Floor/v1/firmware

From London Hackspace Wiki
< Project:USB Disco Dance Floor‎ | v1
Revision as of 08:40, 4 April 2011 by Dmi (talk | contribs) (Beginnings of firmware docs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
USB Disco Dance Floor v1 Firmware
Created 2011-03-31
Members DMI
Project Status Prototyping


Introduction

The firmware will be responsible for listening for serial commands, and then acting upon them. This will primarily involve changing the display.

Commands

Commands start with a one-byte identifier, followed by zero or more data bytes. The number of data bytes is command-specific. The device should not output any data unless specified below.

Command Action Data
00 Reset display None
Resets the display, initialising all pixels to black.
01 Identify xx yy
Asks the device to identify itself. The controller sends its version number as two data bytes: major and minor version. The device will respond with a two-byte code containing its major and minor version.
11 Update floor RR GG BB ...
Update the entire floor with the given pattern.