Skip to content

Commit 102f55b

Browse files
committed
IO: Add comments pointing to wiring diagrams
1 parent 38c58d2 commit 102f55b

6 files changed

Lines changed: 7 additions & 0 deletions

File tree

java/libraries/io/examples/I2CCompass/I2CCompass.pde

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ I2C i2c;
33

44
// HMC6352 is a digital compass module using I2C
55
// datasheet: https://www.sparkfun.com/datasheets/Components/HMC6352.pdf
6+
// see setup.png in the sketch folder for wiring details
67

78
void setup() {
89
//printArray(I2C.list());

java/libraries/io/examples/Interrupt/Interrupt.pde

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ color bgcolor = 0;
33

44
// GPIO numbers refer to different phyiscal pins on various boards
55
// On the Raspberry Pi GPIO 4 is physical pin 7 on the header
6+
// see setup.png in the sketch folder for wiring details
67

78
void setup() {
89
GPIO.pinMode(4, GPIO.INPUT);

java/libraries/io/examples/SPIAnalogDigital/SPIAnalogDigital.pde

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ SPI spi;
33

44
// MCP3001 is a Analog-to-Digital converter using SPI
55
// datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/21293C.pdf
6+
// see setup.png in the sketch folder for wiring details
67

78
void setup() {
89
//printArray(SPI.list());

java/libraries/io/examples/SPIAnalogDigitalOOP/SPIAnalogDigitalOOP.pde

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import processing.io.*;
22
MCP3001 adc;
33

4+
// see setup.png in the sketch folder for wiring details
5+
46
void setup() {
57
//printArray(SPI.list());
68
adc = new MCP3001(SPI.list()[0]);

java/libraries/io/examples/SimpleInput/SimpleInput.pde

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import processing.io.*;
22

33
// GPIO numbers refer to different phyiscal pins on various boards
44
// On the Raspberry Pi GPIO 4 is physical pin 7 on the header
5+
// see setup.png in the sketch folder for wiring details
56

67
void setup() {
78
GPIO.pinMode(4, GPIO.INPUT);

java/libraries/io/examples/SimpleOutput/SimpleOutput.pde

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ boolean ledOn = false;
33

44
// GPIO numbers refer to different phyiscal pins on various boards
55
// On the Raspberry Pi GPIO 4 is physical pin 7 on the header
6+
// see setup.png in the sketch folder for wiring details
67

78
void setup() {
89
GPIO.pinMode(4, GPIO.OUTPUT);

0 commit comments

Comments
 (0)