Skip to content

Instantly share code, notes, and snippets.

View codejoust's full-sized avatar

Iain codejoust

View GitHub Profile
anonymous
anonymous / success
Created November 6, 2011 18:11
Working code for LEDs graphing distance with a PING))) sensor
const int pingPin = 10;
int ledPins[] = {
2, 3, 4, 5, 6, 7, 8 }; // an array of pin numbers to which LEDs are attached
int pinCount = 7;
long duration, inches, cm;
void setup() {
// initialize serial communication: