Update kuukar_lcd.py

This commit is contained in:
Siwat Sirichai 2022-12-08 21:41:21 +07:00
parent dbfdd546ea
commit 880a16a462
1 changed files with 1 additions and 1 deletions

View File

@ -61,5 +61,5 @@ class lcd:
self.nextion.send_command( self.nextion.send_command(
f"brightnessTXT.txt=\"{self.sensors.get_brightness_pct()}\"") f"brightnessTXT.txt=\"{self.sensors.get_brightness_pct()}\"")
self.nextion.send_command( self.nextion.send_command(
f"sonarTXT.txt=\"{int(self.sensors.sonar_get_distance(2))} / {int(self.sensors.sonar_get_distance(1))} / {int(self.sensors.sonar_get_distance(0))}\"") f"sonarTXT.txt=\"{self.sensors.sonar_get_distance()}\"")
sleep(1) sleep(1)