Data Sheet
2/15/2018 Subsea LED Indicator Light
http://docs.bluerobotics.com/indicator/ 3/4
byte indicatorPin = 9;
void setup() {
// set up pin mode
pinMode(indicatorPin,OUTPUT);
}
void loop() {
// turn light on
digitalWrite(indicatorPin,HIGH);
// wait one second
delay(1000);
// turn light off
digitalWrite(indicatorPin,LOW);
// wait one second
delay(1000);
// turn light on, 50% power
analogWrite(indicatorPin,127); // values from 0-255
// wait one second
delay(1000);
}