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

From London Hackspace Wiki
(Better styles)
(Formatting updates)
Line 10: Line 10:


{| class="wikitable"
{| class="wikitable"
!Command
!width="80"|Command
!Action
!Action
!Data
!width="100"|Min version
|-
|-
!00
!rowspan="2"|00
|'''Reset display'''
|'''Reset display'''
|''None''
|1.0
|-
|-
|
|colspan="2"|Resets the display, initialising all pixels to black.
|colspan="2"|Resets the display, initialising all pixels to black.
|-
|-
!01
!rowspan="2"|01
|'''Identify'''
|'''Identify'''
|<tt>xx yy</tt>
|1.0
|-
|-
|
|colspan="2"|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. <!-- position? neighbours? -->
|colspan="2"|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. <!-- position? neighbours? -->
|-
|-
!11
!rowspan="2"|11
|'''Update floor'''
|'''Update floor'''
|<tt>RR GG BB</tt> ...
|1.0
|-
|-
|
|colspan="2"|Update the entire floor with the given pattern.
|colspan="2"|Update the entire floor with the given pattern.
|}
|}

Revision as of 13:33, 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 Min version
00 Reset display 1.0
Resets the display, initialising all pixels to black.
01 Identify 1.0
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 1.0
Update the entire floor with the given pattern.