Skip to content

Commit 655ba18

Browse files
committed
Getting Started Review Draw and Image Functions
1 parent 3edd99a commit 655ba18

File tree

1 file changed

+7
-6
lines changed
  • content/hardware/10.mega/shields/giga-display-shield/tutorials/basic-draw-and-image

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
title: Using Draw and Image Functions with the GIGA Display Shield
33
description: 'Learn how to use basic draw functions to create and display images on the GIGA Display Shield.'
44
author: Benjamin Dannegård
5+
hardware:
6+
- hardware/08.mega/boards/giga-r1-wifi
7+
- hardware/08.mega/shields/giga-display-shield
58
tags: [Display, Draw]
69
---
710

@@ -11,14 +14,14 @@ This is a great tutorial for getting started with your shield and exploring what
1114

1215
## Hardware & Software Needed
1316

14-
- [Arduino GIGA R1 WiFi](/hardware/giga-r1).
17+
- [Arduino GIGA R1 WiFi](/hardware/giga-r1-wifi).
1518
- [Arduino GIGA Display Shield](/hardware/giga-display-shield)
1619
- [Arduino IDE](https://www.arduino.cc/en/software)
1720
- [ArduinoGraphics library](https://www.arduino.cc/reference/en/libraries/arduinographics/)
1821

1922
## Downloading the Library and Core
2023

21-
Make sure the latest GIGA Core is installed in the Arduino IDE. **Tools > Board > Board Manager...**. Here you need to look for the **Arduino Mbed OS Giga Boards** and install it, the [Arduino_H7_Video library](https://github.com/arduino/ArduinoCore-mbed/tree/main/libraries/Arduino_H7_Video) is included in the core. Now you have to install the library needed for the graphical display features. To do this, go to **Tools > Manage libraries..**, search for **ArduinoGraphics**, and install it.
24+
Make sure the latest GIGA Core is installed in the Arduino IDE. **Tools > Board > Board Manager...**. Here you need to look for the **Arduino Mbed OS Giga Boards** and install it, the [Arduino_H7_Video library](https://github.com/arduino/ArduinoCore-mbed/tree/main/libraries/Arduino_H7_Video) is included in the core and is needed for the examples to work. Now you have to install the library needed for the graphical display features. To do this, go to **Tools > Manage libraries..**, search for **ArduinoGraphics**, and install it.
2225

2326
## Using Draw Feature in a Sketch
2427

@@ -45,7 +48,7 @@ void setup() {
4548
Display.clear();
4649
```
4750

48-
Next let's draw the circle that will be the base of the logo. First, set the color of the circle with `Display.fill(0x008184);`. Then draw the circle with the command `Display.circle()`. Inside the parentheses enter the x position, y position, and diameter of the circle. We can make the positioning easy by using the display's total width and height as a base for our position measurements.
51+
Next, let's draw the circle that will be the base of the logo. First, set the color of the circle with `Display.fill(0x008184);`. Then draw the circle with the command `Display.circle()`. Inside the parentheses enter the x position, y position, and diameter of the circle. We can make the positioning easy by using the display's total width and height as a base for our position measurements.
4952

5053
```arduino
5154
Display.fill(0x008184);
@@ -137,9 +140,7 @@ Using an online image converter you can pick any image you would like to be disp
137140

138141
We will be using the example sketch "ArduinoLogo" as the basis for the sketch that lets us display an image. The example sketch can be found under **File->Examples->Arduino_H7_Video->ArduinoLogo**.
139142

140-
Running the example sketch as is will display the Arduino logo on the screen, like in the image below:
141-
142-
[Arduino Logo on the GIGA Display Shield]()
143+
Running the example sketch as is will display the Arduino logo on the screen, like in the image shown above.
143144

144145
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.
145146

0 commit comments

Comments
 (0)