Skip to content

Commit 95ac4d7

Browse files
added images
1 parent c1b12f7 commit 95ac4d7

File tree

10 files changed

+9
-9
lines changed

10 files changed

+9
-9
lines changed

content/hardware/10.mega/shields/giga-display-shield/tutorials/12.emwin-guide/content.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags: [Display, emWin, GUI]
99

1010
Segger's emWin is a graphical framework for building powerful UIs, and is fully compatible with the GIGA Display Shield. It allows you to build UIs, using pre-made widgets like buttons, images, loading bars, sliders, checkboxes, etc. It also allows you to fully customize the screenspace on the display. In this guide, we will go through some of the different components, so you can learn how to best implement it in your projects.
1111

12-
[emWin full demo running on the GIGA Display Shield]()
12+
![emWin full demo running on the GIGA Display Shield](assets/emwin-example.png)
1313

1414
## Hardware & Software Needed
1515

@@ -128,7 +128,7 @@ To create different windows inside our display, use the `WM_CreateWindowAsChild(
128128
WM_CreateWindowAsChild(X-position, Y-position, Height, Width, ParentWindow, VisibilityFlag, WindowsCallback, AdditionalBytes);
129129
```
130130

131-
[Grid layout infographic]()
131+
![Grid layout infographic](assets/gridemwin.png)
132132

133133
This is how it would look to use emWin to create a 2x2 grid layout inside the main window:
134134

@@ -188,7 +188,7 @@ Now the image can be drawn by specifying the image file along with the x and y p
188188
GUI_DrawBitmap(&bmarduinologo, X-position, Y-position);
189189
```
190190

191-
[Displaying an image with emWin]()
191+
![Displaying an image with emWin](assets/emwin-image.png)
192192

193193
**Full Example:**
194194
**Remember that the image file needs to be in the same folder as the sketch, use the image that comes with the full demo (File > Examples > Arduino_H7_Video > emWinDemo)**
@@ -238,8 +238,6 @@ Calling `GUI_SetColor()` before the text print will allow you to change the colo
238238

239239
For changing the font size, use `GUI_SetFont(&GUI_Font16_1);`, this call will set the font size to 16.
240240

241-
[Displaying text with emWin]()
242-
243241
**Full Example:**
244242

245243
```arduino
@@ -296,7 +294,9 @@ Then for the state of the checkbox the number of states and where it should star
296294
CHECKBOX_SetState(hBox, 1);
297295
```
298296

299-
[emWin checkbox]()
297+
![emWin checkbox checked](assets/emwin-checkbox.png)
298+
299+
![emWin checkbox unchecked](assets/emwin-checkbox-unchecked.png)
300300

301301
**Full Example:**
302302

@@ -409,7 +409,7 @@ The GUI will also have to be re-drawn when the value changes so the display stay
409409
break;
410410
```
411411

412-
[emWin slider]()
412+
![emWin slider](assets/emwin-slider.png)
413413

414414
**Full Example:**
415415

@@ -658,7 +658,7 @@ if(Released) {
658658
}
659659
```
660660

661-
[emWin button]()
661+
![emWin button](assets/emwin-button.png)
662662

663663
**Full Example:**
664664

@@ -744,7 +744,7 @@ void loop() {
744744

745745
This guide went through the building blocks of the different components that can be implemented with emWin. To see these examples in a full running example sketch go to **File > Examples > Arduino_H7_Video > emWinDemo**.
746746

747-
[Example in the IDE]()
747+
![Example in the IDE](assets/example-in-ide.png)
748748

749749
This demo sketch will show the different components using a screen manager in a 2x2 grid.
750750

0 commit comments

Comments
 (0)