Skip to content

Commit 0422f09

Browse files
authored
Merge pull request #289 from arduino/jacobhylen/cheat-sheet-linkchanges
GIGA cheat sheet link fixes
2 parents ea1cb3c + 8fac0a6 commit 0422f09

File tree

1 file changed

+13
-13
lines changed
  • content/hardware/08.mega/boards/giga-r1/tutorials/cheat-sheet

1 file changed

+13
-13
lines changed

content/hardware/08.mega/boards/giga-r1/tutorials/cheat-sheet/cheat-sheet.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -151,37 +151,37 @@ Include the library and setup the DAC with the following code in the beginning o
151151
```arduino
152152
#include "AdvancedDAC.h"
153153
154-
AdvancedDAC dac(A12);
154+
AdvancedDAC dac1(A12);
155155
156156
```
157157

158158
Then, initialize the library, and check that everything went as expected with the following piece of code:
159159

160160
```arduino
161-
if (!dac.begin(AN_RESOLUTION_12, 8000, 32, 64)) {
161+
if (!dac1.begin(AN_RESOLUTION_12, 8000, 32, 64)) {
162162
Serial.println("Failed to start DAC!");
163163
while (1);
164164
}
165165
```
166166

167167
Then lastly, add the following code to `void loop()` to start:
168168
```arduino
169-
if (dac.available()) {
169+
if (dac1.available()) {
170170
171171
// Get a free buffer for writing
172-
SampleBuffer buf = dac.dequeue();
172+
SampleBuffer buf = dac1.dequeue();
173173
174174
// Write data to buffer
175175
for (int i=0; i<buf.size(); i++) {
176176
buf.data()[i] = (i % 2 == 0) ? 0: 0xfff;
177177
}
178178
179179
// Write the buffer data to DAC
180-
dac.write(buf);
180+
dac1.write(buf);
181181
}
182182
```
183183

184-
The options for audio playback and generation on your Arduino GIGA R1 are **much** more vast than this, however. To learn about audio playback in depth, check out the [audio guide](../giga-audio/content.md).
184+
The options for audio playback and generation on your Arduino GIGA R1 are **much** more vast than this, however. To learn about audio playback in depth, check out the [GIGA R1 Audio Guide](/tutorials/giga-r1/giga-audio).
185185

186186
### Input
187187
The audio jack on the Arduino GIGA R1 is not just connected to the DAC pins, however, but are also connected to pin A7, for microphone capabilities.
@@ -191,7 +191,7 @@ To take advantage of this, you can use the `AdvancedAnalogRedux` library from Ar
191191
```arduino
192192
#include "AdvancedADC.h"
193193
194-
AdvancedADC adc(A7);
194+
AdvancedADC adc1(A7);
195195
```
196196

197197
Now, initialise the library and run a check to make sure everything went as expected with the following code within `void setup()`:
@@ -200,15 +200,15 @@ Now, initialise the library and run a check to make sure everything went as expe
200200
Serial.begin(9600);
201201
202202
// Resolution, sample rate, number of samples per channel, and queue depth of the ADC
203-
if (!adc.begin(AN_RESOLUTION_16, 16000, 32, 64)) {
203+
if (!adc1.begin(AN_RESOLUTION_16, 16000, 32, 64)) {
204204
Serial.println("Failed to start analog acquisition!");
205205
while (1);
206206
}
207207
```
208208
Finally, read the ADC, and store it in a way that you can use it, do this within `void loop()`:
209209
```arduino
210-
if (adc.available()) {
211-
SampleBuffer buf = adc.read();
210+
if (adc1.available()) {
211+
SampleBuffer buf = adc1.read();
212212
213213
// Print first sample
214214
Serial.println(buf[0]);
@@ -217,7 +217,7 @@ Finally, read the ADC, and store it in a way that you can use it, do this within
217217
buf.release();
218218
```
219219

220-
The options for audio input on your Arduino GIGA R1 are **much** more vast than this, however. To learn about audio recording in depth, check out the [audio guide](../giga-audio/content.md).
220+
The options for audio input on your Arduino GIGA R1 are **much** more vast than this, however. To learn about audio recording in depth, check out the [GIGA R1 Audio Guide](/tutorials/giga-r1/giga-audio).
221221

222222
## MIPI Display Interface
223223
The **STM32H747XI** has an internal 2D graphics accelerator with support for resolutions up to 1024x768, it also has the ability to encode and decode JPEG codec. This is what allows the **Arduino GIGA R1** to boast a 2 lane MIPI display interface.
@@ -236,7 +236,7 @@ There are several libraries you can use for the USBHost capabilities of the Ardu
236236

237237
Some of these libraries are built in to the core and therefore you won't be required to download them separately.
238238

239-
To learn in depth about how to use these powerful features, read the [USBHost Guide](../giga-usb/giga-usb.md) that contains in-depth walkthroughs for each of them.
239+
To learn in depth about how to use these powerful features, read the [GIGA R1 USBHost Guide](/tutorials/giga-r1/giga-usb) that contains in-depth walkthroughs for each of them.
240240

241241
## RTC
242242

@@ -294,7 +294,7 @@ The Arduino GIGA features an onboard arducam compatible connector, with support
294294

295295
Programming the board in the **MicroPython** language using the **OpenMV IDE** easily lets you get started with a neural network analysing a realtime camera feed with ML.
296296

297-
To learn more about the camera capabilities of the Arduino GIGA R1, check out the [GIGA Camera Guide](../giga-camera/giga-camera.md)
297+
To learn more about the camera capabilities of the Arduino GIGA R1, check out the [GIGA R1 Camera Guide](/tutorials/giga-r1/giga-camera)
298298

299299
## JTAG
300300
The **Arduino GIGA R1** features a 2x5 pin JTAG (Joint Test Action Group) connector, giving advanced debug functionalities for more advanced users.

0 commit comments

Comments
 (0)