--- dinovo-dbus-test.py 2006-12-29 18:47:42.000000000 -0500 +++ dinovo-dbus-test.py 2007-01-08 23:17:08.000000000 -0500 @@ -1,4 +1,6 @@ #!/usr/bin/env python +# -*- coding: utf8 -*- +# vim: set fileencoding=utf8 : import dbus @@ -24,12 +26,20 @@ 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. +# Cyrillic / Greek: +# А = 'A' б = 0x9b Б = 0x80 Г = 0x92 +# Д = 0x81 Е = 'E' Ж = 0x82 З = 0x83 +# И = 0x84 Й = 0x85 К = 'K' Л = 0x86 +# М = 'M' Н = 'H' О = 'O' П = 0x87 +# Р = 'P' С = 'C' Т = 'T' У = 0x88 +# Ф = 0x99 Х = 'X' Ц = 0x89 Ч = 0x8a +# Ш = 0x8b Щ = 0x8c Ы = 0x8e Э = 0x8f +# Ю = Я = я = Ь = 0x8d +# ь = ф = 0xd8 ё = 0xeb +# α = 0x90 п = 0x93 Σ = 0x94 σ = 0x95 +# τ = 0x97 Ω = 0x9a ε = 0x9e +# Latin Extended: 0xc0 - 0xff +# German ss-Set: ß = 0xdf SMALL_TRIANGLE_RIGHT = "\x03" SMALL_TRIANGLE_LEFT = "\x04" @@ -49,6 +59,32 @@ GEQUAL = "\x1d" LARGE_TRIANGLE_UP = "\x1e" LARGE_TRIANGLE_DOWN = "\x1f" +EIGHTH_NOTE = "\x91" +SIXTEENTH_NOTE = "\x96" +BELL = "\x98" +INFINITY = "\x9b" +HEART = "\x9c" +MATH_UNITY = "\x9f" +PAUSE = "\xa0" +UNKNOWN1 = "\xa1" +CENTS = "\xa2" +POUNDS = "\xa3" +YEN = "\xa5" +PIPE = "\xa6" # | +SECTION = "\xa7" +UMLAUT = "\xa8" +C_INVERSE = "\xa9" +UNKNOWN_2 = "\xaa" +DOUBLE_ARROWS_LEFT = "\xab" # << +R_INVERSE = "\xae" +SQUARED = "\xb2" +CUBED = "\xb3" +DOUBLE_ARROWS_RIGHT = "\xbb" # >> +ONE_FOURTH = "\xbc" +ONE_HALF = "\xbd" +THREE_FOURTHS = "\xbe" +SPANISH_QMARK = "\xbf" + bus = dbus.SystemBus() obj = bus.get_object("com.hentenaar.Dinovo.MediaPad", "/com/hentenaar/Dinovo/MediaPad") @@ -59,4 +95,7 @@ intf.WriteText(" -------------- " "| Dinovo Linux |" " -------------- ") +#intf.WriteTextBin([0x83, ord('A'), ord('K'), ord('A'), ord('T')]) +#intf.WriteLineBin(2,[0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff]) +#intf.WriteLine(3,"Git-R-Done")