On Wed, Nov 9, 2022 at 04:08 PM, Erik Kaashoek wrote:
How to extract a pixel from the two byte pixel data:
const uint16_t pixel = (first received pixel byte) | (second received pixel byte)<<8;
const uint8_t red =? (pixel >> 0) & 0xf8;
const uint8_t grn = ((pixel << 5) & 0xe0) | ((pixel >> 11) & 0x1c);
const uint8_t blu =? (pixel >> 5) & 0xf8;
?
Erik,
Thank you very much, but that's the easiest part. My question was more about the stream format and timing - I've reverse engineered it now using the NanoVNA source and got it working for tinySA, but the mouse click handling is still unstable at the moment and with the NanoVNA the mouse click doesn't work at all.
Developed under debian stable.
Remote control for the?tinySA?- mirror the screen to your PC and operate the device with the mouse. The keys?+
?and?-
?zoom in and out,?s
?takes a screenshot with timestamp,?ESC
?quits the program.
Work in progress - the mouse click is not fully working, currently no NanoVNA support.
usage: tinySA_remote.py [-h] [-d DEVICE] [-t | -n] [-z {2,3,4}]
optional arguments:
-h, --help show this help message and exit
-d DEVICE, --device DEVICE
connect to serial usb device
-t, --tinySA use with tinySA (default)
-n, --NanoVNA use with NanoVNA (not yet implemented)
-z {2,3,4}, --zoom {2,3,4}
zoom the screen image
Martin