Skip to content

Commit 5885726

Browse files
Add SPI and Serial Examples
1 parent a2653b9 commit 5885726

File tree

4 files changed

+456
-0
lines changed

4 files changed

+456
-0
lines changed

docs/example-SPI.md

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
---
2+
icon: simple/arduino
3+
---
4+
5+
## Feedback Loop
6+
The simplest way to test the SPI interface is with just a jumper *(wire)* and looping a data transmission from the **PICO** GPIO pin; back into the **POCI** GPIO pin. For this example, users are free to utilize any method or hardware they have to connect the **PICO** and **POCI** GPIO pins together. However, we recommend some IC hooks for a temporary connection.
7+
8+
9+
??? note "Optional Hardware"
10+
<div class="grid cards" markdown>
11+
12+
- <a href="https://www.sparkfun.com/products/501">
13+
<figure markdown>
14+
![Product Thumbnail](https://cdn.sparkfun.com/assets/parts/3/4/1/00501-1.jpg)
15+
</figure>
16+
17+
---
18+
19+
**IC Hook Test Leads**<br>
20+
CAB-00501</a>
21+
22+
23+
- <a href="https://www.sparkfun.com/products/9741">
24+
<figure markdown>
25+
![Product Thumbnail](https://cdn.sparkfun.com/assets/parts/3/6/9/6/09741-01.jpg)
26+
</figure>
27+
28+
---
29+
30+
**IC Hook with Pigtail**<br>
31+
CAB-09741</a>
32+
33+
34+
- <a href="https://www.sparkfun.com/products/9194">
35+
<figure markdown>
36+
![Product Thumbnail](https://cdn.sparkfun.com/assets/parts/2/6/3/4/JumperWire-Female-01-L.jpg)
37+
</figure>
38+
39+
---
40+
41+
**Jumper Wires Premium 6" Mixed Pack of 100**<br>
42+
PRT-09194</a>
43+
44+
45+
- <a href="https://www.sparkfun.com/products/116">
46+
<figure markdown>
47+
![Product Thumbnail](https://cdn.sparkfun.com/assets/parts/1/0/6/00116-02-L.jpg)
48+
</figure>
49+
50+
---
51+
52+
**Break Away Headers - Straight**<br>
53+
PRT-00116</a>
54+
55+
56+
- <a href="https://www.sparkfun.com/products/9044">
57+
<figure markdown>
58+
![Product Thumbnail](https://cdn.sparkfun.com/assets/parts/2/4/0/7/09044-02-L.jpg)
59+
</figure>
60+
61+
---
62+
63+
**Jumper - 2 Pin**<br>
64+
PRT-09044</a>
65+
66+
</div>
67+
68+
69+
70+
??? code
71+
```cpp
72+
--8<-- "./Firmware/Tests/SPI_Loopback/SPI_Loopback.ino"
73+
```
74+
75+
76+
77+
## Peripheral Device
78+
A more direct method for testing the SPI interface is with an actual SPI device. Users are free to utilize any hardware they already have; however, we recommend the [BME68x environmental sensor](https://www.sparkfun.com/products/19096), below. Its SPI pins are broken out on the edge of the board and can be easily connected to the RA6M5 Thing Plus. In addition, a [hookup guide](https://learn.sparkfun.com/tutorials/1168) and [Arduino library](https://github.com/BoschSensortec/Bosch-BME68x-Library) for the sensor are available.
79+
80+
81+
??? note "Optional Hardware"
82+
<div class="grid cards" markdown>
83+
84+
- <a href="https://www.sparkfun.com/products/19096">
85+
<figure markdown>
86+
![Product Thumbnail](https://cdn.sparkfun.com/assets/parts/1/8/6/9/6/19096-SparkFun_Environmental_Sensor_Breakout_-_BME688__Qwiic_-01.jpg)
87+
</figure>
88+
89+
---
90+
91+
**SparkFun Environmental Sensor - BME688 (Qwiic)**<br>
92+
SEN-19096</a>
93+
94+
95+
- <a href="https://www.sparkfun.com/products/501">
96+
<figure markdown>
97+
![Product Thumbnail](https://cdn.sparkfun.com/assets/parts/3/4/1/00501-1.jpg)
98+
</figure>
99+
100+
---
101+
102+
**IC Hook Test Leads**<br>
103+
CAB-00501</a>
104+
105+
106+
- <a href="https://www.sparkfun.com/products/11375">
107+
<figure markdown>
108+
![Product Thumbnail](https://cdn.sparkfun.com/assets/parts/7/1/2/0/11375-Hook-Up_Wire_-_Assortment__Solid_Core__22_AWG_-01.jpg)
109+
</figure>
110+
111+
---
112+
113+
**Hook-Up Wire - Assortment (Stranded, 22 AWG)**<br>
114+
PRT-11375</a>
115+
116+
117+
- <a href="https://www.sparkfun.com/products/9325">
118+
<figure markdown>
119+
![Product Thumbnail](https://cdn.sparkfun.com/assets/parts/2/8/7/3/09325_9161-Solder_Lead_Free_-_100-gram_Spool-01.jpg)
120+
</figure>
121+
122+
---
123+
124+
**Solder Lead Free - 100-gram Spool**<br>
125+
TOL-09325</a>
126+
127+
128+
- <a href="https://www.sparkfun.com/products/24063">
129+
<figure markdown>
130+
![Product Thumbnail](https://cdn.sparkfun.com/assets/parts/2/4/3/8/5/KIT-24063-PINECIL-Soldering-Iron-Kit-Feature.jpg)
131+
</figure>
132+
133+
---
134+
135+
**PINECIL Soldering Iron Kit**<br>
136+
KIT-24063</a>
137+
138+
139+
- <a href="https://www.sparkfun.com/products/9200">
140+
<figure markdown>
141+
![Product Thumbnail](https://cdn.sparkfun.com/assets/parts/2/6/4/6/09200-Hobby_Knife-01.jpg)
142+
</figure>
143+
144+
---
145+
146+
**Hobby Knife**<br>
147+
TOL-09200</a>
148+
149+
</div>
150+
151+
152+
153+
Users can find this sketch in the **File** > **Examples** > **Bosch BME68x Sensor** > **forced_mode** drop-down menu. *For more details on utilizing the BME68x breakout board, please refer to our [hookup guide](https://learn.sparkfun.com/tutorials/1168) for the sensor.*
154+
155+
156+
157+
??? code "`forced_mode.ino`"
158+
```cpp
159+
--8<-- "https://raw.githubusercontent.com/boschsensortec/Bosch-BME68x-Library/master/examples/forced_mode/forced_mode.ino"
160+
```

0 commit comments

Comments
 (0)