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
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: |