From 3c7ea80c00a0841c6d27246d43b64d1939ec563a Mon Sep 17 00:00:00 2001 From: Totoo Date: Sun, 14 Jan 2024 12:39:27 +0100 Subject: [PATCH] Added some serial commands --- USB-Serial-Console.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/USB-Serial-Console.md b/USB-Serial-Console.md index 6693c5a..cbe0351 100644 --- a/USB-Serial-Console.md +++ b/USB-Serial-Console.md @@ -26,6 +26,12 @@ The terminal exposes the ChibiOS/RT Shell: * `screenshot`: Takes a screenshot. ![grafik](https://github.com/eried/portapack-mayhem/assets/13151053/1c5278a9-3977-4bf7-8043-44cc524e8b83) +* `cmd_screenframe`: Replies with the screen's content. Format is 1 line / screen line, and for each pixel HEX (2 char) in the R,G,B order. So one line will be 720 + newline. +* `cmd_screenframeshort`: Replies with the screen's content. Format is 1 line / screen line, and for each pixel you'll get 1 character. Format is '00RRGGBB' + 32. So for black you'll get 32 (' '). For white 95 ('_'). +* `gotgps`: You can send apps your current position. Format `gotgps lat lon `. Lat, lon is mandantory with '.' as a decimal separator. +* `gotorientation`: You can send apps your current orientation. Format `gotorientation angle`. Send only integer, where 0 mean North, 90 East, 400 mean 'not set'. +* `applist`: Shows the apps that can be started with `appstart` command. You'll get 3 parameters per line: app short name (you'll need to use this with appstart), app's full name, and app category. +* `appstart`: You can start apps from the list given by the `applist` command. 1 paremeter needed, the app's short name. It'll stop any running apps. * `write_memory`: Writes arbitrary memory locations. ![grafik](https://github.com/eried/portapack-mayhem/assets/13151053/6d655d31-8de4-4c70-aa30-e0540583c236)