2 from traceback
import print_exc
7 print "Importing PyX52... ",
11 print "Creating PyX52.X52... ",
15 x52types
= {PyX52
.TYPE_X52
: "X52", PyX52
.TYPE_X52PRO
: "X52 Pro", PyX52
.TYPE_YOKE
: "Yoke"}
16 print "Detecting X52 device type... ",
17 typestr
= x52types
[x52
.gettype()]
19 print "X52 device type: [ %s ]" % typestr
21 print "Setting date... ",
25 print "Setting time... ",
29 print "Setting MFD brightness... ",
36 print "Setting LED brightness... ",
43 print "Setting text... ",
44 x52
.settext(1, "1234567890123456")
45 x52
.settext(2, "1234567890123456")
46 x52
.settext(3, "1234567890123456")
52 print "Setting LED states... ",
55 print "Setting time offset... ",