#!/usr/bin/env python import dbus # Indicators LCD_ICON_EMAIL = 1 LCD_ICON_IM = 2 LCD_ICON_MUTE = 4 LCD_ICON_ALARM = 8 # Indicator States LCD_ICON_OFF = 0 LCD_ICON_ON = 1 LCD_ICON_BLINK = 2 # LCD Beep Codes LCD_DONT_BEEP = 0 LCD_BEEP_DEEP = 1 LCD_BEEP_SHORT = 2 LCD_BEEP_LONG = 3 # LCD LED States LCD_LED_OFF = 0 LCD_LED_BLINK = 1 # Special Characters (which might be useful) # Note: In the interest of i18n, it's worth mentioning that the majority of Cyrillic characters are at # 0x80 - 0x8f. The ones that overlap with Greek are in the 0x90 - 0x9f range, along with various # Symbols (heart, 8th note, 16th node, alarm bell, etc.) # # For Cyrillic, the messages work fine on Winblows, which means that the LCD uses the ASCII character set # modified as it would be for KOI8-R. SMALL_TRIANGLE_RIGHT = "\x03" SMALL_TRIANGLE_LEFT = "\x04" LARGE_TRIANGLE_RIGHT = "\x10" LARGE_TRIANGLE_LEFT = "\x11" QUOTE_UP = "\x12" QUOTE_DOWN = "\x13" SMALL_TRIANGLES_UP = "\x14" SMALL_TRIANGLES_DOWN = "\x15" BULLET = "\x16" RETURN_SYMBOL = "\x17" ARROW_UP = "\x18" ARROW_DOWN = "\x19" ARROW_RIGHT = "\x1a" ARROW_LEFT = "\x1b" LEQUAL = "\x1c" GEQUAL = "\x1d" LARGE_TRIANGLE_UP = "\x1e" LARGE_TRIANGLE_DOWN = "\x1f" bus = dbus.SystemBus() obj = bus.get_object("com.hentenaar.Dinovo.MediaPad", "/com/hentenaar/Dinovo/MediaPad") intf = dbus.Interface(obj, "com.hentenaar.Dinovo.MediaPad") intf.SetIndicator(LCD_ICON_ALARM,LCD_ICON_BLINK) intf.BlinkOrBeep(LCD_BEEP_SHORT,LCD_LED_OFF) intf.WriteText(" -------------- " "| Dinovo Linux |" " -------------- ")