1765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang#!/usr/bin/python
2765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# Author: Zion Orent <zorent@ics.com>
3765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# Copyright (c) 2015 Intel Corporation.
4765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang#
5765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# Permission is hereby granted, free of charge, to any person obtaining
6765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# a copy of this software and associated documentation files (the
7765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# "Software"), to deal in the Software without restriction, including
8765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# without limitation the rights to use, copy, modify, merge, publish,
9765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# distribute, sublicense, and/or sell copies of the Software, and to
10765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# permit persons to whom the Software is furnished to do so, subject to
11765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# the following conditions:
12765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang#
13765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# The above copyright notice and this permission notice shall be
14765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# included in all copies or substantial portions of the Software.
15765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang#
16765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang
24765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# Load i2clcd display module
25765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhangimport time, signal, sys
26765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhangimport pyupm_i2clcd as upmLCD
27765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang
28765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun ZhangmyLCD = upmLCD.SSD1327(0, 0x3C);
29765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang
30765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun ZhanglogoArr = [0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x08, 0x00,
31765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
32765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x60, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
33765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x06, 0x00,
34765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
35765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x01, 0xC0, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00,
36765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x01, 0xC0, 0x07, 0x00,
37765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
38765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x03, 0x80, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00,
39765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x03, 0x80,
40765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
41765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x07, 0x80, 0x03, 0xC0, 0x00, 0x00, 0x00, 0x00,
42765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x07, 0x80, 0x01, 0xC0,
43765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
44765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x07, 0x80, 0x01, 0xE0, 0x08, 0x00, 0x00, 0x00,
45765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x20, 0x0F, 0x80, 0x01, 0xE0,
46765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
47765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x0F, 0x00, 0x01, 0xE0, 0x08, 0x00, 0x00, 0x00,
48765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x30, 0x0F, 0x00, 0x01, 0xE0,
49765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
50765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x0F, 0x00, 0x01, 0xE0, 0x18, 0x00, 0x00, 0x00,
51765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x30, 0x0F, 0x00, 0x01, 0xE0,
52765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38,
53765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x0F, 0x00, 0x01, 0xE0, 0x18, 0x00, 0x00, 0x00,
54765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x38, 0x0F, 0x00, 0x01, 0xE0,
55765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38,
56765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x0F, 0x80, 0x01, 0xE0, 0x38, 0x00, 0x00, 0x00,
57765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x3C, 0x0F, 0x80, 0x01, 0xE0,
58765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E,
59765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x0F, 0x80, 0x03, 0xE0, 0x78, 0x00, 0x00, 0x00,
60765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x1E, 0x07, 0x80, 0x03, 0xE0,
61765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E,
62765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x07, 0x80, 0x03, 0xE0, 0xF0, 0x00, 0x00, 0x00,
63765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x1F, 0x07, 0x80, 0x03, 0xC1,
64765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F,
65765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x87, 0xC0, 0x07, 0xC1, 0xF0, 0x00, 0x00, 0x00,
66765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x0F, 0x83, 0xC0, 0x07, 0x83,
67765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F,
68765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xC3, 0xC0, 0x07, 0x87, 0xE0, 0x00, 0x00, 0x00,
69765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x07, 0xE1, 0xE0, 0x07, 0x0F,
70765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
71765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xF0, 0xE0, 0x0F, 0x0F, 0x80, 0x00, 0x00, 0x00,
72765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x01, 0xF8, 0xF0, 0x0E, 0x1F,
73765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
74765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xF8, 0x70, 0x1C, 0x3F, 0x00, 0x00, 0x00, 0x00,
75765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0xFC, 0x30, 0x18, 0x7E,
76765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
77765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x7F, 0x18, 0x30, 0xFC, 0x00, 0x00, 0x00, 0x00,
78765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x1F, 0x88, 0x21, 0xF0,
79765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
80765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x0F, 0xC4, 0x47, 0xE0, 0x00, 0x00, 0x00, 0x00,
81765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x03, 0xE0, 0x0F, 0x80,
82765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
83765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0xF8, 0x3E, 0x00, 0x00, 0x00, 0x00, 0x00,
84765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x0E, 0xE0, 0x00,
85765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
86765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
87765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
88765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
89765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
90765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,
91765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00,
92765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x02, 0x00, 0x06, 0x00, 0x00, 0x6C, 0x00,
93765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x06,
94765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x60, 0x00, 0x7E, 0x3F, 0x0F, 0xC3,
95765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xF0, 0xFA, 0x0F, 0xDF, 0xE1, 0x9F, 0xEC, 0x7E,
96765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xE6, 0x73, 0x9C, 0xE7, 0x39, 0xCE, 0x1C, 0xDF,
97765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xE1, 0xB9, 0xEC, 0xE7, 0xE0, 0x61, 0xD8, 0x66,
98765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x1B, 0x86, 0x1C, 0x06, 0x61, 0xB0, 0x6D, 0xC3,
99765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x7C, 0x7F, 0xFF, 0xFF, 0xFF, 0x06, 0x0F, 0x86,
100765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x61, 0xB0, 0x6D, 0x83, 0x3E, 0x7F, 0xFF, 0xFF,
101765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xFF, 0x06, 0x07, 0xC6, 0x61, 0xB0, 0x6D, 0x83,
102765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xC3, 0x61, 0x18, 0x46, 0x03, 0x86, 0x18, 0x66,
103765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x61, 0xB0, 0x6D, 0xC3, 0xFE, 0x7F, 0x9F, 0xE7,
104765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xF9, 0xFE, 0x1F, 0xE6, 0x3F, 0x9F, 0xEC, 0xFE,
105765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x7E, 0x3F, 0x0F, 0xC3, 0xF0, 0xFA, 0x0F, 0xC6,
106765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x3F, 0x9F, 0xEC, 0x7E, 0x00, 0x00, 0x00, 0x00,
107765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
108765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
109765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
110765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
111765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
112765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
113765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
114765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
115765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
116765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
117765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
118765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
119765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
120765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
121765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
122765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
123765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
124765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
125765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
126765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
127765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
128765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
129765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
130765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
131765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
132765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
133765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
134765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
135765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
136765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
137765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
138765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
139765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0x00,
140765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x20, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00,
141765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x44, 0x00, 0x00, 0x20, 0x82, 0x00,
142765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6C, 0xF3,
143765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xCF, 0x70, 0x9E, 0x79, 0xE7, 0x80, 0x00, 0x00,
144765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x7D, 0x9E, 0x68, 0x20, 0xB2, 0xC8,
145765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x9E,
146765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x6F, 0x20, 0xB2, 0xF9, 0xE7, 0x80, 0x00, 0x00,
147765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x46, 0x9A, 0x61, 0x20, 0xB2, 0xCB,
148765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x60, 0x80, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xF3,
149765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xCF, 0x30, 0x9E, 0x79, 0xE7, 0x90, 0x00, 0x00,
150765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
151765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
152765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
153765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
154765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
155765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
156765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
157765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
158765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
159765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x7C, 0x02, 0x00, 0x00, 0x82, 0x60, 0x00, 0x00,
160765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0xF8, 0x00, 0x00, 0x40, 0x40, 0x02, 0x00, 0x00,
161765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x83, 0x60, 0x00, 0x00, 0x8C, 0x00, 0x00, 0x40,
162765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x60, 0xB7, 0x79, 0xE7, 0x81, 0xC7, 0x92, 0x70,
163765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x89, 0xE7, 0x9E, 0x78, 0x7C, 0xE2, 0xC9, 0x2C,
164765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x81, 0xCC, 0xD2, 0x40, 0xFB, 0x21, 0xB2, 0x48,
165765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x40, 0x62, 0xF9, 0x2C, 0x80, 0x8C, 0xD2, 0x40,
166765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x8B, 0xE7, 0xB0, 0x48, 0x40, 0xE2, 0xC9, 0x2C,
167765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x80, 0x84, 0xD2, 0x40, 0x8B, 0x2D, 0x92, 0x48,
168765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x7D, 0xB3, 0x79, 0x27, 0x80, 0x87, 0x9E, 0x40,
169765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x8D, 0xE7, 0x9E, 0x48, 0x00, 0x00, 0x00, 0x00,
170765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
171765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
172765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
173765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
174765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang
175765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun ZhangSeeedLogo = upmLCD.uint8Array(len(logoArr))
176765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang
177765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhangfor x in range(len(logoArr)):
178765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang	SeeedLogo.__setitem__(x, logoArr[x])
179765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang
180765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang# If you don't set the display to be white, the seeed logo will appear jagged
181765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun ZhangmyLCD.setGrayLevel(12)
182765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun ZhangmyLCD.draw(SeeedLogo, 96 * 96 / 8);
183765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang
184765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhangfor i in range(12):
185765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang	myLCD.setCursor(i, 0)
186765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang	myLCD.setGrayLevel(i)
187765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang	myLCD.write('Hello World')
188765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhang
189765adb95dc941c32690d6c43bc08b9d07d197fcbJianxun Zhangprint "Exiting"
190