From 2b02d92e050367cc6561fd9a3160ee5c6261e610 Mon Sep 17 00:00:00 2001 From: Frater Date: Fri, 9 Oct 2020 01:13:25 +0200 Subject: [PATCH] Update CommandSet.MD --- CommandSet.MD | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/CommandSet.MD b/CommandSet.MD index 476fa5f..4348782 100644 --- a/CommandSet.MD +++ b/CommandSet.MD @@ -1,14 +1,17 @@ -All commands are _Escaped_ with hex 0x1b, and are quiet comprehensive... +All commands are _Escaped_ with hex 0x1b, and are quiet comprehensive... except for very basic command -according to the CP's drivers each command bloc was followed by an `usleep(1000);` function +according to the CP's drivers each command bloc was followed by an `usleep(1000);` function... | Commands | ASCII Cmd | write size | Test in G500 | Find In Tap | Descr | | ------ | ----- | ----- | ------ | ------ | ------ | +|0x0C | n/a | 1 | YES | | clear Screen | +|0x0b | n/a | 1 | YES | | home Cursor | |0x1B 0x40 | `ESC` @ | 2 | YES | | Display Init | |0x1B 0x42 0n | `ESC` B _n_ | 3 |YES | YES | Back Light State (0..???) ? | |0x1B 0x47 [1024 bytes]| `ESC` G ... | 1026 | YES | YES | Upload Picture (1) | |0x1B 0x12 | `ESC` n/a | 2 | | | Vertical scroll mode | |0x1B 0x13 | `ESC` n/a | 2 | | | Horizontal Scroll mode | +|0x1B 0x4C n | `ESC`L _n_ | 3 | YES | | LED Control (2) | |0x1B 0x5B 0x41 | `ESC` [ A | 3 | YES | | Move Cursor Up| |0x1B 0x5B 0x42 | `ESC` [ B | 3 | YES | | Move Cursor Down| |0x1B 0x5B 0x43 | `ESC` [ C | 3 | YES | | Move Cursor Right| @@ -21,4 +24,7 @@ according to the CP's drivers each command bloc was followed by an `usleep(1000) |0x1B 0x72 0x0n | `ESC` r *n* | 3 | YES | | Inverted character [n 0:OFF 1:ON]| |0x1B 0x50 nn | `ESC` P _n_ | 3 | YES | | Show Graphics Page nn | -(1) : picture are 128x64 pixels, encoded 1 pixel per bits \ No newline at end of file +**Notes** +(1) : picture are 128x64 pixels, encoded 1 pixel per bits +(2) : All led are controlled one by one ... more to come +