Skip to content

Commit 350e00e

Browse files
jsuhaas22StaticRocket
authored andcommitted
feat: Add Debian-specific information to LVGL OOB docs
Presently, the LVGL OOB page is written under the assumption that the user is using Yocto. For Debian, some of the lines have to be changed. Therefore make those changes. Also add the doc in Debian's tree. Signed-off-by: Suhaas Joshi <[email protected]>
1 parent b6e7d71 commit 350e00e

File tree

4 files changed

+103
-54
lines changed

4 files changed

+103
-54
lines changed

configs/AM62LX/AM62LX_debian_toc.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ debian/Building_Debian_Packages
77
debian/How_to_Guides/index_How_to_Guides
88
linux/How_to_Guides/Target/How_To_Enable_M2CC3301_in_linux
99
debian/Demo_User_Guides/index_Demos
10+
linux/Demo_User_Guides/TI_LVGL_Demo_User_Guide

source/debian/Demo_User_Guides/index_Demos.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ The default Debian image supports the following demo-applications
1010
:maxdepth: 1
1111

1212
/debian/Demo_User_Guides/Chromium_Browser
13-
13+
/linux/Demo_User_Guides/TI_LVGL_Demo_User_Guide

source/devices/AM62LX/debian/Getting_Started_Guide.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ In addition to the EVM itself, the following hardware is needed:
2424
6. USB mouse and Keyboard (For controlling the UI)
2525
7. Ethernet cable (For network access)
2626

27+
.. _processor-sdk-debian-create-sd-card:
28+
2729
Create SD Card using balenaEtcher
2830
---------------------------------
2931

source/linux/Demo_User_Guides/TI_LVGL_Demo_User_Guide.rst

Lines changed: 99 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,31 @@ Hardware Prerequisites
6969
Launching the TI LVGL Demo
7070
**************************
7171

72-
The demo will auto launch upon Linux booting on the EVM. Follow the below instructions to flash the SD card:
72+
.. ifconfig:: CONFIG_sdk in ('SITARA')
7373

74-
1. Flash an SD card with the :file:`tisdk-default-image`. User can download the :file:`tisdk-default-image` wic image from |__SDK_DOWNLOAD_URL__|.
74+
The demo will auto launch upon Linux booting on the EVM. Follow the below instructions to flash the SD card:
75+
76+
1. Flash an SD card with the :file:`tisdk-default-image`. User can download the :file:`tisdk-default-image` wic image from |__SDK_DOWNLOAD_URL__|.
7577
Please follow the instructions from here to :ref:`Flash an SD card <processor-sdk-linux-create-sd-card>`.
7678

77-
2. Insert the flashed SD card to the board, connect the display, mouse/touch-input, ethernet cable, aux cable, jumper wire and power on the EVM.
79+
2. Insert the flashed SD card to the board, connect the display, mouse/touch-input, ethernet cable, aux cable, jumper wire and power on the EVM.
7880
The TI LVGL Demo will launch automatically when the device is fully booted.
7981

82+
.. ifconfig:: CONFIG_sdk in ('DebianSDK')
83+
84+
Upon booting the EVM, Weston is launched automatically. To launch the LVGL demo, refer the following
85+
instructions:
86+
87+
1. Flash an SD card with the :file:`tisdk-debian-trixie` wic image. User can download the wic image from |__SDK_DOWNLOAD_URL__|.
88+
Please follow the instructions from here to :ref:`Flash an SD card <processor-sdk-debian-create-sd-card>`.
89+
90+
2. Insert the flashed SD card to the board, connect the display, mouse/touch-input, ethernet cable, aux cable, jumper wire and power the EVM on.
91+
92+
3. Weston is launched on boot. Shut it down with `systemctl stop weston`.
93+
94+
4. Launch the demo by typing `/usr/bin/lvglsim` into the UART command prompt.
95+
96+
8097
**********************
8198
Using the TI LVGL Demo
8299
**********************
@@ -176,87 +193,100 @@ To launch the Smart Home HMI demo, click on the `Smart Home` widget in the apps
176193
177194
.. note::
178195

179-
By default CC33xx is configured at boot, so here are the steps that can be followed to enable it:
196+
By default CC33xx is configured at boot, so here are the steps that can be followed to enable it. If you are running as non-root user, run the following using `sudo`:
197+
198+
.. ifconfig:: CONFIG_sdk in ('SITARA')
199+
200+
.. code-block:: console
201+
202+
root@<machine>:~ systemctl stop ti-lvgl-demo
203+
root@<machine>:~ cd /usr/share/cc33xx
204+
root@<machine>:~ ./sta_start.sh
205+
root@<machine>:~ ./sta_connect.sh -s WPA-PSK -n <SSID> -p <PASSWORD>
206+
root@<machine>:~ udhcpc -i wlan0
207+
root@<machine>:~ systemctl start ti-lvgl-demo
180208
181-
.. code-block:: console
209+
.. ifconfig:: CONFIG_sdk in ('DebianSDK')
182210

183-
$ systemctl stop ti-lvgl-demo
184-
$ cd /usr/share/cc33xx
185-
$ ./sta_start.sh
186-
$ ./sta_connect.sh -s WPA-PSK -n <SSID> -p <PASSWORD>
187-
$ udhcpc -i wlan0
188-
$ systemctl start ti-lvgl-demo
211+
.. code-block:: console
212+
213+
root@<machine>:~ systemctl stop ti-lvgl-demo
214+
root@<machine>:~ cd /usr/share/cc33xx
215+
root@<machine>:~ bash ./sta_start.sh
216+
root@<machine>:~ bash ./sta_connect.sh -s WPA-PSK -n <SSID> -p <PASSWORD>
217+
root@<machine>:~ udhcpc -i wlan0
218+
root@<machine>:~ systemctl start ti-lvgl-demo
189219
190220
For more details on how to enable CC33xx and connect to WiFi, visit :ref:`How to Enable M.2-CC33x1 in Linux <enable_m2cc3301>`
191221

192222
**The application includes the following widgets:**
193223

194224
*Widget#1: Climate Control*
195225

196-
.. note::
226+
.. note::
197227

198-
This feature will work on platforms that have on-chip ADC. Following is supported on AM62Lx
228+
This feature will work on platforms that have on-chip ADC. Following is supported on AM62Lx
199229

200-
- The indoor temperature in this widget displays the digital data obtained from ADC and display (data/10) on the widget.
201-
- The outdoor temperature below the indoor temperature shows the value of (data/10)-6.5, if it is positive, else, shows zero.
202-
- The indoor temperature is sent over SSL-encrypted MQTT messages under the topic `SmartHome/temp`
203-
- This demo uses channel 0 for ADC input. To change the channel being used, modify the following in
230+
- The indoor temperature in this widget displays the digital data obtained from ADC and display (data/10) on the widget.
231+
- The outdoor temperature below the indoor temperature shows the value of (data/10)-6.5, if it is positive, else, shows zero.
232+
- The indoor temperature is sent over SSL-encrypted MQTT messages under the topic `SmartHome/temp`
233+
- This demo uses channel 0 for ADC input. To change the channel being used, modify the following in
204234
`ti-lvgl-demo/lv_port_linux/lvgl/demos/high_res/adc.c <https://github.com/TexasInstruments/ti-lvgl-demo.git/>`__
205235

206-
.. code-block:: c
236+
.. code-block:: c
207237
208-
FILE *fp = popen("cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw", "r");
238+
FILE *fp = popen("cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw", "r");
209239
210240
*Widget#2: Charging*
211241

212-
- The data shown in this widget is the same that is shown in the EV Charging HMI app.
213-
- This percentage completion data is also sent over SSL-encrypted MQTT messages under the topic `SmartHome/evCharge`
242+
- The data shown in this widget is the same that is shown in the EV Charging HMI app.
243+
- This percentage completion data is also sent over SSL-encrypted MQTT messages under the topic `SmartHome/evCharge`
214244

215245
*Widget#3: Lock*
216246

217-
.. note::
247+
.. note::
218248

219-
Lock screen feature has only been enabled on AM62L
249+
Lock screen feature has only been enabled on AM62L
220250

221-
- Sliding the lock to the right will lock the screen (disable all screen input)
222-
- To unlock, press the SW5: User Button on the TMDS62LEVM
251+
- Sliding the lock to the right will lock the screen (disable all screen input)
252+
- To unlock, press the SW5: User Button on the TMDS62LEVM
223253

224-
.. Image:: /images/ti-lvgl-demo-tmds62levm-usr-button.png
225-
:height: 200
254+
.. Image:: /images/ti-lvgl-demo-tmds62levm-usr-button.png
255+
:height: 200
226256

227257
*Widget#4: Speaker*
228258

229-
- The play/pause button will play noise in the McASP device.
230-
- Custom audio filecan also be played by making necessary changes as shown below in
231-
`ti-lvgl-demo/lv_port_linux/lvgl/demos/high_res/audio.c <https://github.com/TexasInstruments/ti-lvgl-demo.git/>`__
259+
- The play/pause button will play noise in the McASP device.
260+
- Custom audio filecan also be played by making necessary changes as shown below in
261+
`ti-lvgl-demo/lv_port_linux/lvgl/demos/high_res/audio.c <https://github.com/TexasInstruments/ti-lvgl-demo.git/>`__
232262

233-
.. code-block:: c
263+
.. code-block:: c
234264
235-
/* Copy the audio file in the SD file system */
236-
/* In audio_play() function in audio.c */
265+
/* Copy the audio file in the SD file system */
266+
/* In audio_play() function in audio.c */
237267
238-
//Modify the following as per the specification of the audio file
239-
rate = 48000; //in Hz
240-
channels = 1; //1: mono, 2:stereo
241-
seconds = 1; //duration of audio
242-
:
243-
:
244-
//Replace "/usr/share/sounds/alsa/Noise.wav" with the path of the audio file
245-
char *filename_wav = "/usr/share/sounds/alsa/Noise.wav";
268+
//Modify the following as per the specification of the audio file
269+
rate = 48000; //in Hz
270+
channels = 1; //1: mono, 2:stereo
271+
seconds = 1; //duration of audio
272+
:
273+
:
274+
//Replace "/usr/share/sounds/alsa/Noise.wav" with the path of the audio file
275+
char *filename_wav = "/usr/share/sounds/alsa/Noise.wav";
246276
247-
- Volume can be controlled from the vertical slider on the right-side of the widget.
248-
- Volume can also be set by sending values between 1 to 100 over MQTT topic `SmartHome/volume` from remote device over internet.
277+
- Volume can be controlled from the vertical slider on the right-side of the widget.
278+
- Volume can also be set by sending values between 1 to 100 over MQTT topic `SmartHome/volume` from remote device over internet.
249279

250280
*Widget#5: Main Light*
251281

252-
- The `Light temperature` slider will increase/decrease the User LED blinking frequency.
253-
- The left-end of slider (0 K) toggles LED every 250ms and the right-end of slider (20000 K) toggles LED every 20ms.
254-
- `Light temperature` can also be set by sending values between 0 to 20000 over MQTT topic `SmartHome/led` from remote device over internet.
255-
- In HMI, the slider `Light temperature` is not associated with any functionality but can be programmed be user to perform any function.
282+
- The `Light temperature` slider will increase/decrease the User LED blinking frequency.
283+
- The left-end of slider (0 K) toggles LED every 250ms and the right-end of slider (20000 K) toggles LED every 20ms.
284+
- `Light temperature` can also be set by sending values between 0 to 20000 over MQTT topic `SmartHome/led` from remote device over internet.
285+
- In HMI, the slider `Light temperature` is not associated with any functionality but can be programmed be user to perform any function.
256286

257287
*Widget#6: Sensor Controls*
258288

259-
- The buttons/sliders in this widget are not associated with any functionality but can be programmed by the user to perform any function.
289+
- The buttons/sliders in this widget are not associated with any functionality but can be programmed by the user to perform any function.
260290

261291
Launching the Smart Meter HMI
262292
=============================
@@ -290,11 +320,27 @@ This widget contains a slide-show on Application Processor Security for AM6X dev
290320
Building the TI LVGL Demo from Sources
291321
**************************************
292322

293-
The TI LVGL Demo is enabled in :file:`tisdk-default-image` yocto filesystem for |__PART_FAMILY_DEVICE_NAMES__| by default. Note, that
294-
the binary itself does not have asset images and slides built in it. :file:`tisdk-default-image` contains the required assets within
295-
:file:`/usr/share/ti-lvgl-demo/*`. Place any additional assets here while making any modifications. Yocto recipe for
296-
building this demo can be found at
297-
`github: ti-lvgl-demo.bb <https://github.com/TexasInstruments/meta-tisdk/blob/scarthgap/recipes-demos/ti-lvgl-demo/ti-lvgl-demo.bb>`__
323+
.. ifconfig:: CONFIG_sdk in ('SITARA')
324+
325+
The TI LVGL Demo is enabled in :file:`tisdk-default-image` yocto filesystem for |__PART_FAMILY_DEVICE_NAMES__| by default.
326+
327+
.. ifconfig:: CONFIG_sdk in ('DebianSDK')
328+
329+
The TI LVGL Demo is packaged in :file:`tisdk-debian-trixie` wic image for |__PART_FAMILY_DEVICE_NAMES__| by default.
330+
331+
Note, that the binary itself does not have asset images and slides built in it.
332+
The image contains the required assets within :file:`/usr/share/ti-lvgl-demo/`. Place any additional
333+
assets here while making any modifications.
334+
335+
.. ifconfig:: CONFIG_sdk in ('SITARA')
336+
337+
Yocto recipe for building this demo can be found at
338+
`github: ti-lvgl-demo.bb <https://github.com/TexasInstruments/meta-tisdk/blob/scarthgap/recipes-demos/ti-lvgl-demo/ti-lvgl-demo.bb>`__
339+
340+
.. ifconfig:: CONFIG_sdk in ('DebianSDK')
341+
342+
Debian package for building this demo can be found at
343+
`github: ti-lvgl-demo debian package <https://github.com/TexasInstruments/debian-repos/blob/master/ti-lvgl-demo/suite/trixie/debian/>`__
298344

299345
The source code is available at `TI LVGL Demo <https://github.com/TexasInstruments/ti-lvgl-demo.git/>`__ and can be re-compiled with the
300346
following steps:

0 commit comments

Comments
 (0)