/* Femtoduino_testing.pde - testing routines for the Femtoduino Arduino compatible board Copyright (C) 2011 Fabio Varesano This program is free software: you can redistribute it and/or modify it under the terms of the version 3 GNU General Public License as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . --- How to use: Connect LEDs with in series resistors (1K) to D2 to D12 (D13 will have its own led pin) and also to all analog pins. */ void setup() { Serial.begin(9600); // initialize the digital pins as an output. for(int i=2; i<=13; i++) { pinMode(i, OUTPUT); } for(int i=A0; i<=A5; i++) { pinMode(i, OUTPUT); } } void loop() { Serial.println("Starting testing"); for(int i=2; i<=13; i++) { testPin(i); } for(int i=A0; i<=A5; i++) { testPin(i); } } void testPin(int i) { digitalWrite(i, HIGH); delay(1000); digitalWrite(i, LOW); delay(1000); }