Preview:
void activategreen() {
  digitalWrite(GREEN_LED_PIN, HIGH); // Turn on green LED
  digitalWrite(RED_LED_PIN, LOW); // Turn off red LED
  digitalWrite(BLUE_LED_PIN, LOW); // Turn off blue LED
}

void activatered() {
  digitalWrite(GREEN_LED_PIN, LOW); // Turn off green LED
  digitalWrite(RED_LED_PIN, HIGH); // Turn on red LED
  digitalWrite(BLUE_LED_PIN, LOW); // Turn off blue LED
}

void activateblue() {
  digitalWrite(GREEN_LED_PIN, LOW); // Turn off green LED
  digitalWrite(RED_LED_PIN, LOW); // Turn off red LED
  digitalWrite(BLUE_LED_PIN, HIGH); // Turn on blue LED
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter