Skip to content

Commit 4921129

Browse files
Fixed image tutorial
1 parent 7d80c86 commit 4921129

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

content/hardware/10.mega/shields/giga-display-shield/tutorials/04.basic-draw-and-image/assets/file-structure.svg

Lines changed: 28 additions & 0 deletions
Loading

content/hardware/10.mega/shields/giga-display-shield/tutorials/04.basic-draw-and-image/content.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ We will be using the example sketch "ArduinoLogo" as the basis for the sketch th
143143

144144
Running the example sketch as is will display the Arduino logo on the screen, like in the image below:
145145

146-
[Arduino Logo on the GIGA Display Shield](assets/logo-img.svg)
146+
![Arduino Logo on the GIGA Display Shield](assets/logo-img.svg)
147147

148148
Now to use the image that we converted in the last step. Use the macro inside the example sketch. This makes use of the `incbin.h` translation library. The necessary files are located in the folder for the example sketch.
149149

@@ -163,6 +163,10 @@ By default the image we import will be called `test`. The line `Image img_arduin
163163

164164
### Full Sketch
165165

166+
To run this sketch you will need to have the image file that is used in the code in the correct location. In the example from the library, the image is in the same folder as the sketch, as shown in the image below. Please make sure the image you want to use matches the location indicated in the code.
167+
168+
![Folder structure for the sketch](assets/file-structure.svg)
169+
166170
```arduino
167171
/*
168172
ArduinoLogo

0 commit comments

Comments
 (0)