<
From version < 73.1 >
edited by BoYang Xie
on 2024/11/21 18:19
To version < 75.1 >
edited by BoYang Xie
on 2024/11/21 18:26
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -47,7 +47,6 @@
47 47  * 5V DC power
48 48  * IP Rating: IP52
49 49  
50 -
51 51  == 1.3  Specification ==
52 52  
53 53  
... ... @@ -87,7 +87,6 @@
87 87  
88 88  * External 5V DC power adapter
89 89  
90 -
91 91  == 1.5  Storage & Operation Temperature ==
92 92  
93 93  
... ... @@ -94,7 +94,6 @@
94 94  * Operation Temperature: -20 ~~ 70°C  (No Dew)
95 95  * Storage Temperature: -30 ~~ 70°C  (No Dew)
96 96  
97 -
98 98  == 1.6  Applications ==
99 99  
100 100  
... ... @@ -105,7 +105,6 @@
105 105  * Smart Cities
106 106  * Smart Factory
107 107  
108 -
109 109  = 2.  Getting Started with Hello World =
110 110  
111 111  == 2.1  About this demo ==
... ... @@ -295,7 +295,91 @@
295 295  
296 296  = 4. Example Project 2: LoRaWAN RS485 Alarm =
297 297  
294 +(% class="wikigeneratedid" %)
295 += 5.  The way to add a new panel to project =
298 298  
297 +~1. Design a panel in SquareLine Studio, using image 5.1 below as a reference.
298 +
299 +[[image:image-20241121113445-1.png||height="584" width="934"]]
300 +
301 + image 5.1 a panel about water_leak
302 +
303 +2. Export the ui file. You need  to adjust the export path first, then click "Export->Export UI Files". This step had been introduced before. Then you can get the ui files as shown in image 5.2.
304 +
305 +[[image:image-20241121141120-4.png||height="383" width="795"]]
306 +
307 + image 5.2 ui files exported
308 +
309 +3. Delete or rename some file. Here are the steps:
310 +
311 + 3.1 Delete the 'components' directory.
312 + 3.2 Delete 'filelist.txt'.
313 + 3.3 Delete 'ui_helpers.c' and 'ui_helpers.h'.
314 + 3.4 Rename 'ui_ScreenMain.c' in the 'screens' directory to 'ui_water_leak_style.c'.
315 + 3.5 Rename the 'screens' directory to 'styles'.
316 +
317 +[[image:image-20241121151934-10.png||height="303" width="792"]]
318 +
319 + image 5.3 rest file 1
320 +
321 +[[image:image-20241121142925-7.png||height="141" width="793"]]
322 +
323 + image 5.4 rest file 2
324 +
325 +4. Open this project in vscode.
326 +
327 +5. Add file include path about water_leak in extra_lib/CMakeLists.txt as shown in image 5.5, 5.6, and its format is similar to the tem_hum or door.
328 +
329 +[[image:image-20241121181957-17.png||height="438" width="516"]]
330 +
331 + image 5.5 before add
332 +
333 +[[image:image-20241121182239-18.png||height="520" width="518"]]
334 +
335 + image 5.6 after add
336 +
337 +6. Modify header file include in fonts and images directory. Open the fonts/ui_font_Font12.c file, as shown in image 5.7, then modify the '#include "../ui.h"' to '#include "../ui_water_leak.h"', the image 5.8 is the modified image. Other font file need to be modified in same way.
338 +
339 +[[image:image-20241121171629-11.png]]
340 +
341 + image 5.7 before-modified font file
342 +
343 +[[image:image-20241121171901-12.png]]
344 +
345 + image 5.8 modified font file
346 +
347 +Open the images/ui_img_battery_empty_png.c file, as shown in image 5.9, then modify the '#include "../ui.h"' to '#include "../ui_water_leak.h"', the image 5.10 is the modified image. Other image file need to be modified in same way.
348 +
349 +[[image:image-20241121172714-13.png]]
350 +
351 + image 5.9 before-modified image file
352 +
353 +[[image:image-20241121172908-14.png]]
354 +
355 + image 5.10 modified image file
356 +
357 +7. Modify the ui_water_leak/CMakeLists.txt. Open this file, and modify it from image 5.11 to image 5.12.
358 +
359 +[[image:image-20241121180030-15.png]]
360 +
361 + image 5.11 before modification
362 +
363 +[[image:image-20241121180517-16.png]]
364 +
365 + image 5.12 after modification
366 +
367 +8.
368 +
369 +
370 +
371 +
372 +
373 +
374 +
375 +
376 +
377 +
378 +
299 299  = 6. FAQ =
300 300  
301 301  == 6.1 ==
... ... @@ -318,7 +318,6 @@
318 318  * 5V,2A DC Power Adapter.
319 319  * USB Type C Program Cable
320 320  
321 -
322 322  = 8. Support =
323 323  
324 324  
... ... @@ -325,7 +325,6 @@
325 325  * Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
326 326  * Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to [[support@dragino.com>>url:file:///D:/市场资料/说明书/LoRa/LT系列/support@dragino.com]].
327 327  
328 -
329 329  = 9.  Reference material =
330 330  
331 331  
... ... @@ -333,7 +333,6 @@
333 333  * Source Code
334 334  * Mechinical
335 335  
336 -
337 337  = 10. FCC Warning =
338 338  
339 339  
image-20241121182239-18.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.xieby
Size
... ... @@ -1,0 +1,1 @@
1 +71.3 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0