AndreaFavero71 / cubotino

Updated scripts and files for CUBOTino autonomous: A small, 3D printed, Rubik’s cube solver robot
Creative Commons Attribution 4.0 International
47 stars 16 forks source link

Moved display related functions in a separate file. #1

Closed heneault closed 2 years ago

heneault commented 2 years ago

This fix an issue where the lcd is initialized twice during setup. A singleton is now used for both the servo and the main file. This change also encapsulate the graphic libraries in the display python file to avoid polluing the main namespace with them for nothing. The logic to check for the logo in jpg format was removed since it will be always the case with git update. The sleep that was part of some display functions has been moved out back to the main files because this is not display specific.