Skip to content

Commit 911c792

Browse files
New images
1 parent 3edade7 commit 911c792

File tree

3 files changed

+51
-2
lines changed

3 files changed

+51
-2
lines changed

content/hardware/10.mega/shields/giga-display-shield/tutorials/10.square-line-tutorial/assets/lv_config.svg

Lines changed: 27 additions & 0 deletions
Loading

content/hardware/10.mega/shields/giga-display-shield/tutorials/10.square-line-tutorial/assets/text_font_size.svg

Lines changed: 16 additions & 0 deletions
Loading

content/hardware/10.mega/shields/giga-display-shield/tutorials/10.square-line-tutorial/content.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,15 @@ Name the widgets accordingly:
9898
- **Decrease Button**: ui_ButtonDec
9999
- **Number Label**: ui_LabelNum
100100

101-
Now export the project and put the library in the Arduino libraries folder, as shown in the previous section.
101+
Also pay attention to the size of the font set for the counter label. We set the size to 26, this then needs to be enabled in the lv_conf.h file. This file can be found in /mbed/libraries/Arduino_H7_Video/src.
102+
103+
![Font size option in SquareLine Studio](assets/text_font_size.svg)
104+
105+
And to enable the font size find the **FONT USAGE** section. If you want to enable any other size simply change the `0` next to any of the font sizes into a `1`:
102106

103-
Download this [lv_conf.h]() file and put it in your */mbed/libraries/Arduino_H7_Video/src folder. After setting this up we can go ahead and link the buttons to the label in our sketch.
107+
![lv_conf.h font usage section](assets/lv_config.svg)
108+
109+
Now export the project and put the library in the Arduino libraries folder, as shown in the previous section.
104110

105111
First declare the libraries and set up the screen, this will be the same as the sketch above.
106112

0 commit comments

Comments
 (0)