From ec1cabb7d469fb751cd5390ea9eb416bf7b86c82 Mon Sep 17 00:00:00 2001 From: mmdolze Date: Mon, 9 Jul 2012 18:27:24 +0000 Subject: [PATCH] Add the current ideas about pictograms. --- docs/pictogram-spec.docbook | 93 ++++++++++++++++++++++++++++++++++++- server/drivers/t6963_low.h | 2 +- 2 files changed, 93 insertions(+), 2 deletions(-) diff --git a/docs/pictogram-spec.docbook b/docs/pictogram-spec.docbook index 67b482f..0bc1453 100644 --- a/docs/pictogram-spec.docbook +++ b/docs/pictogram-spec.docbook @@ -41,7 +41,98 @@ term pictogram has been chosen. Client language -This section should talk about the client language. + + There are two language commands that can be called by the client: + pictograms_get and pictogram_set. + + + + + + pictograms_get + + + This command may be called by a client to get a list of + available pictograms. If pictograms are not support by the + particular version of LCDd, it will respond with an error + message (huh? unknown command). + + + Clients should either check the version number returned as + response to the 'hello' command or the response to + 'pictograms_get' to check if LCDd supports pictograms before + calling 'pictogram_set' (see below). + + + + The response will be a string in the format: + + + pictograms pictogram list... + + + The pictogram list will be a sequence of pictogram + definitions separated by a space character. Each pictogram + definition consists of up to four fields separated by a colon. + + + + + Name + + + The text representation of the pictogram name. + + + + + Type + + + The type of the pictogram: 'n' for numerical pictograms + and 'b' for boolean type pictograms. + + + + + Group ID + + + The Group ID is optional and if present is a number greater than zero + that models the driver's idea of a several pictograms that form a group. This + may e.g. be used for media source pictograms. + + The group ID is only informational for the client and is not used + within LCDd. The driver however may make use of groups internally. + + + + + + Group type + + + + + + + + + + + + + pictogram_set + + + + + + + + + + Driver API diff --git a/server/drivers/t6963_low.h b/server/drivers/t6963_low.h index ac8d4fb..acbf50b 100644 --- a/server/drivers/t6963_low.h +++ b/server/drivers/t6963_low.h @@ -77,7 +77,7 @@ #define AUTO_READ 0xb1 #define AUTO_RESET 0xb2 -/* 'Status read' anwer codes */ +/* 'Status read' answer codes */ #define STA0 0x01 #define STA1 0x02 #define STA3 0x08