This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Timer test | |
// Kevin Karplus | |
// 12 July 2011 | |
// One of the simplest data acquisition tasks is | |
// to time the interval between two events. | |
// This program waits for pin 4 to go high, | |
// starts a timer, lights the on-board LED, | |
// then waits for pin 5 to go low, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Accelerometer (ADXL335) test | |
// Kevin Karplus | |
// 29 June 2011 | |
void setup() | |
{ | |
analogReference(EXTERNAL); // essential if you are going to connect to AREF | |
Serial.begin(115200); | |
Serial.println("setup"); | |
} |