Man of Honour
I have a fairly simple python script running on a RaspberryPi collecting data from a serial port on another device then outputting the data to an SH1106 based OLED display
I've spent the last few hours to wrap my head around threading but I'm still none the wiser.
The basic aim is to check a variable doesn't exceed a particular value, if it does then stop the main thread from writing to the OLED display (by setting a variable to False) and write a warning message for x seconds while the main loop continues to read and parse data
I've spent the last few hours to wrap my head around threading but I'm still none the wiser.
The basic aim is to check a variable doesn't exceed a particular value, if it does then stop the main thread from writing to the OLED display (by setting a variable to False) and write a warning message for x seconds while the main loop continues to read and parse data