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