|
|
|
|
|
by nickludlam
3890 days ago
|
|
So its actually a very basic setup. I used pygame to output to the framebuffer device on the Banana Pi, and created a very simple controller class to run the drawing thread. Its about 300 lines for the projector management class, with some internal state machine logic, and a number of draw calls using pygame.draw.circle(). Calibration offsets are stored in a config file to allow for variations between each physical device made up. Using a python thread to make the draw calls can occasionally go wrong and the Banana Pi gets stuck, but that's sufficiently rare enough that you can just reboot to solve the issue in the factory. |
|