From bbfe3c33f376a5883fff7ca835e1fbe5985e7ffc Mon Sep 17 00:00:00 2001 From: Sebastian Muszytowski Date: Wed, 27 Jan 2016 22:06:27 +0100 Subject: adjust message specification accordingly --- MessageSpecification.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MessageSpecification.md b/MessageSpecification.md index 9ab64f0..122abc1 100644 --- a/MessageSpecification.md +++ b/MessageSpecification.md @@ -36,16 +36,19 @@ XXXX XXXX XXXX XXXX (MSB -> LSB) ---- (reserved) ``` +The speed and delay ranges from a numeric value from 0 (0000) to 15 (1111). The higher the number, the faster the speed and the longer the delay. A direction of 0 (0000) specifies a left direction, a direction of 1 (0001) specifies a right direction. + ##### ANIMATION METADATA -A *`ANIMMETA`* is a two byte (16 bit) length metadata field for animation type pattern. It encodes the frame rate in the first byte and the delay in the second byte. +A *`ANIMMETA`* is a two byte (16 bit) length metadata field for animation type pattern. It encodes the frame rate in the lower nibble of the first byte and the delay in the lower nibble of the second byte. ``` -XXXXXXXX XXXXXXXX +0000XXXX 0000XXXX <------> <------> SPEED DELAY ``` +The speed and delay ranges from a numeric value from 0 (0000) to 15 (1111). ## Message format The message transmitted has to follow the following diagram: -- cgit v1.2.3