File tree Expand file tree Collapse file tree
java/libraries/io/examples Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
78void setup () {
89 // printArray(I2C.list());
Original file line number Diff line number Diff 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
78void setup () {
89 GPIO . pinMode(4 , GPIO. INPUT );
Original file line number Diff line number Diff line change 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
78void setup () {
89 // printArray(SPI.list());
Original file line number Diff line number Diff line change 11import processing.io.* ;
22MCP3001 adc;
33
4+ // see setup.png in the sketch folder for wiring details
5+
46void setup () {
57 // printArray(SPI.list());
68 adc = new MCP3001 (SPI . list()[0 ]);
Original file line number Diff line number Diff 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
67void setup () {
78 GPIO . pinMode(4 , GPIO. INPUT );
Original file line number Diff line number Diff 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
78void setup () {
89 GPIO . pinMode(4 , GPIO. OUTPUT );
You can’t perform that action at this time.
0 commit comments