Skip to content

Instantly share code, notes, and snippets.

/*
* UML shield
* Test code for
* array of LED's connected to digital I/O pins 2, 3, 4, 5, and 6
* test LED connected to digital I/O pin 13
* common cathode RGB LED connected to digital I/O pins 9, 10, and 11
*
* Board configuration: Jumper JP3 closed
*/
/*
Test Code for UMLshield
-- use digitalRead to check that buttons on pins 2 and 6 function
-- use analogRead to check the function of the pots on pins A0 and A2
-- use map function to provide position values for servos connected to pins 3 and 4
No jumpers are required
*/
#include <Servo.h>
void setup() {
Serial.begin(9600);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
digitalWrite(6, LOW);
digitalWrite(7,LOW);
}