![]() |
LCD script - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: Community (https://moodeaudio.org/forum/forumdisplay.php?fid=18) +--- Forum: General Discussion (https://moodeaudio.org/forum/forumdisplay.php?fid=21) +--- Thread: LCD script (/showthread.php?tid=3576) |
LCD script - g1gsw - 03-08-2021 I have the following python script to post data from lcd.txt to a 4x20 LCD. Code: import time I am completely new to python and want to monitor the file lcd.txt to see if it has changed and then run again the above script to update the LCD. Can anyone help I have tried lots of ideas I found online but cannot make it work. Below is one that will monitor the file but what do i need to add to the above to do the monitoring and trigger the update? Code: def read_file(): Thanks Colin |