And I found a workaround (instead requesting 800x600 and getting 800x472, request 800x472 and get that).
With that workaround display is not compressed in y direction anymore:
Before porting my Arduino sketch C code to control microscope z axis 28BYJ-48 stepper motor with half steps, I wanted to just test the hardware being controlled from Pi:
I looked into Joan's pigpio library and found (Python) example code to control stepper motors. The one I used was "Control stepper motor using keyboard left and right keys":
https://github.com/stripcode/pigpio-ste ... right-keys
I took a short video (37s) of focusing microscope, first from below focus drive fast up (keep KEY_LEFT pressed) and overshoot focus, then drive fast down overshooting again, followed by fine focusing until maximum of 587:
What you hear is constant voltage power supply providing 9V/161mA to 800lm led lighting microscope scene.
What you see in terminal window at bottom is output of this command:
Code: Select all
$ LIBCAMERA_LOG_LEVELS=RPiFocus:DEBUG build/src/qcam/qcam | grep Focus