Project:USB Disco Dance Floor/v1/firmware: Difference between revisions

From London Hackspace Wiki
(Beginnings of firmware docs)
 
(Better styles)
Line 9: Line 9:
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.
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.


{|
{| class="wikitable"
!Command
!Command
!Action
!Action

Revision as of 08:41, 4 April 2011

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.