mirror of
https://github.com/Pecusx/piradio-mini.git
synced 2026-05-20 22:33:44 +02:00
minor changes
This commit is contained in:
@@ -443,7 +443,7 @@ def get_switch_states(lcd,radio,rss):
|
|||||||
# Sleep exit message
|
# Sleep exit message
|
||||||
def DisplayExitMessage(lcd):
|
def DisplayExitMessage(lcd):
|
||||||
lcd.line3("Press menu button to")
|
lcd.line3("Press menu button to")
|
||||||
lcd.line4("exit sleep mode")
|
lcd.line4(" exit sleep mode")
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
lcd.line3("")
|
lcd.line3("")
|
||||||
lcd.line4("")
|
lcd.line4("")
|
||||||
@@ -773,16 +773,17 @@ def displayWakeUpMessage(lcd):
|
|||||||
|
|
||||||
def displayShutdown(lcd):
|
def displayShutdown(lcd):
|
||||||
lcd.setBright(False) # LCD backlight brightness to low (Pecus)
|
lcd.setBright(False) # LCD backlight brightness to low (Pecus)
|
||||||
lcd.line1("Stopping radio")
|
lcd.line1(" Stopping radio")
|
||||||
radio.execCommand("service mpd stop")
|
radio.execCommand("service mpd stop")
|
||||||
radio.pandora_stop()
|
radio.pandora_stop()
|
||||||
|
lcd.line2(" ")
|
||||||
lcd.line3(" ")
|
lcd.line3(" ")
|
||||||
lcd.line4(" ")
|
lcd.line4(" ")
|
||||||
radio.execCommand("shutdown -h now")
|
radio.execCommand("shutdown -h now")
|
||||||
lcd.line2("Shutdown issued")
|
lcd.line2(" Shutdown issued")
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
lcd.line1("Radio stopped")
|
lcd.line1(" Radio stopped")
|
||||||
lcd.line2("Power off radio")
|
lcd.line2(" Power off radio")
|
||||||
return
|
return
|
||||||
|
|
||||||
def displayInfo(lcd,ipaddr,mpd_version):
|
def displayInfo(lcd,ipaddr,mpd_version):
|
||||||
|
|||||||
Reference in New Issue
Block a user