Skip to content

Commit 4b574b7

Browse files
authored
Merge pull request #1 from qinqiao555/EC600MCNLE-Demo
update solution-POC files
2 parents 7d3494b + 0112a85 commit 4b574b7

20 files changed

+1010
-223
lines changed
Binary file not shown.

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (c) Quectel Wireless Solution, Co., Ltd.All Rights Reserved.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

code/dev/lcd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def _LcdInit(self, Interface, SPICS, SPIRST, SPIDC, SPIPort, SPIMode, InitData,
196196
self._displayOff,
197197
None)
198198

199-
def clear(self, color=0xFFFFFF): # 清屏
199+
def clear(self, color=0x000000): # 清屏
200200
self._lcd.lcd_clear(color)
201201

202202
def display_on(self):

code/img/duoyun.png

1 KB
Loading

code/img/feng.png

700 Bytes
Loading

code/img/gps.png

-33 Bytes
Loading

code/img/number_6.png

-105 Bytes
Loading

code/img/qing.png

761 Bytes
Loading

code/img/wu.png

773 Bytes
Loading

code/img/xue.png

1.21 KB
Loading

code/img/yu.png

941 Bytes
Loading

code/poc_main.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
MemberScreen,\
1414
GroupScreen,\
1515
SettingScreen,\
16+
WeatherScreen,\
1617
DeviceScreen,\
1718
ICCIDScreen,\
1819
IMEIScreen,\
@@ -29,6 +30,7 @@
2930
MemberScreen,\
3031
GroupScreen,\
3132
SettingScreen,\
33+
WeatherScreen,\
3234
DeviceScreen,\
3335
ICCIDScreen,\
3436
IMEIScreen,\
@@ -126,19 +128,19 @@ def exec(cls):
126128

127129
if __name__ == '__main__':
128130

129-
#=== 1.添加按键 ===
131+
#=== 1.Add key ===
130132
App.add_key(KeyManger())
131133

132-
#=== 2.添加主UI ===
134+
#=== 2.add main UI ===
133135
App.set_ui(PocUI())
134136

135-
#=== 3.添加屏幕栏 ===
137+
#=== 3.Add screen bar ===
136138
App.add_bar(MenuBar())
137139

138-
#=== 4.添加消息框 ===
140+
#=== 4.Add message box ===
139141
App.add_msgbox(PromptBox())
140142

141-
#=== 5.添加UI屏幕 ===
143+
#=== 5.Add UI screen ===
142144
App.add_screen( MenuBar()) \
143145
.add_screen( MainScreen()) \
144146
.add_screen( WelcomeScreen() ) \
@@ -149,15 +151,17 @@ def exec(cls):
149151
.add_screen( DeviceScreen() ) \
150152
.add_screen( ICCIDScreen() ) \
151153
.add_screen( IMEIScreen()) \
152-
.add_screen( FirmwareScreen() )
154+
.add_screen( FirmwareScreen() ) \
155+
.add_screen( WeatherScreen())
153156

154-
#=== 6.添加服务 ===
157+
#=== 6.Add Service ===
155158
App.add_service( NetService()) \
156159
.add_service( PocService()) \
157160
.add_service( MediaService()) \
158-
.add_service( DevInfoService() )
161+
.add_service( DevInfoService() ) \
162+
.add_service( BatteryManager() )
159163

160-
#=== 7.运行App ===
164+
#=== 7.Run the app ===
161165
App.exec()
162166

163167

0 commit comments

Comments
 (0)