| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,7 @@ I2C i2c; | |||
| 3 | 3 | ||
| 4 | 4 | // HMC6352 is a digital compass module using I2C | |
| 5 | 5 | // datasheet: https://www.sparkfun.com/datasheets/Components/HMC6352.pdf | |
| 6 | + // see setup.png in the sketch folder for wiring details | ||
| 6 | 7 | ||
| 7 | 8 | void setup() { | |
| 8 | 9 | //printArray(I2C.list()); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,7 @@ color bgcolor = 0; | |||
| 3 | 3 | ||
| 4 | 4 | // GPIO numbers refer to different phyiscal pins on various boards | |
| 5 | 5 | // On the Raspberry Pi GPIO 4 is physical pin 7 on the header | |
| 6 | + // see setup.png in the sketch folder for wiring details | ||
| 6 | 7 | ||
| 7 | 8 | void setup() { | |
| 8 | 9 | GPIO.pinMode(4, GPIO.INPUT); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,7 @@ SPI spi; | |||
| 3 | 3 | ||
| 4 | 4 | // MCP3001 is a Analog-to-Digital converter using SPI | |
| 5 | 5 | // datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/21293C.pdf | |
| 6 | + // see setup.png in the sketch folder for wiring details | ||
| 6 | 7 | ||
| 7 | 8 | void setup() { | |
| 8 | 9 | //printArray(SPI.list()); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,8 @@ | |||
| 1 | 1 | import processing.io.*; | |
| 2 | 2 | MCP3001 adc; | |
| 3 | 3 | ||
| 4 | + // see setup.png in the sketch folder for wiring details | ||
| 5 | + | ||
| 4 | 6 | void setup() { | |
| 5 | 7 | //printArray(SPI.list()); | |
| 6 | 8 | adc = new MCP3001(SPI.list()[0]); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,7 @@ import processing.io.*; | |||
| 2 | 2 | ||
| 3 | 3 | // GPIO numbers refer to different phyiscal pins on various boards | |
| 4 | 4 | // On the Raspberry Pi GPIO 4 is physical pin 7 on the header | |
| 5 | + // see setup.png in the sketch folder for wiring details | ||
| 5 | 6 | ||
| 6 | 7 | void setup() { | |
| 7 | 8 | GPIO.pinMode(4, GPIO.INPUT); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,7 @@ boolean ledOn = false; | |||
| 3 | 3 | ||
| 4 | 4 | // GPIO numbers refer to different phyiscal pins on various boards | |
| 5 | 5 | // On the Raspberry Pi GPIO 4 is physical pin 7 on the header | |
| 6 | + // see setup.png in the sketch folder for wiring details | ||
| 6 | 7 | ||
| 7 | 8 | void setup() { | |
| 8 | 9 | GPIO.pinMode(4, GPIO.OUTPUT); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments