Added some serial commands

Totoo 2024-01-14 12:39:27 +01:00
parent 44db510b36
commit 3c7ea80c00

@ -26,6 +26,12 @@ The terminal exposes the ChibiOS/RT Shell:
* `screenshot`: Takes a screenshot. * `screenshot`: Takes a screenshot.
![grafik](https://github.com/eried/portapack-mayhem/assets/13151053/1c5278a9-3977-4bf7-8043-44cc524e8b83) ![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 <alt> <speed>`. 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. * `write_memory`: Writes arbitrary memory locations.
![grafik](https://github.com/eried/portapack-mayhem/assets/13151053/6d655d31-8de4-4c70-aa30-e0540583c236) ![grafik](https://github.com/eried/portapack-mayhem/assets/13151053/6d655d31-8de4-4c70-aa30-e0540583c236)