Skip to content

Commit 7fe0a9b

Browse files
Merge pull request #1404 from arduino/benjamindannegard/display-shield-image-instructions
[GIGA Display Shield] Improved image instructions
2 parents c76e493 + 161e711 commit 7fe0a9b

File tree

4 files changed

+64
-1
lines changed

4 files changed

+64
-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

content/hardware/10.mega/shields/giga-display-shield/tutorials/06.image-orientation/assets/folder-struct.svg

Lines changed: 27 additions & 0 deletions
Loading

content/hardware/10.mega/shields/giga-display-shield/tutorials/06.image-orientation/content.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ void loop(){
110110

111111
### Full Sketch
112112

113+
Please note that the image that you want to use with the sketch needs to be in the same folder as the sketch for it to work. It should look like the image below:
114+
115+
![Folder structure](assets/folder-struct.svg)
116+
113117
Now to put it all together where the image will change depending on how we rotate the board and shield:
114118

115119
```arduino

0 commit comments

Comments
 (0)