Commit 2cd75cfd authored by Markéta Jedličková's avatar Markéta Jedličková

Test for leds. Should work with RX D25 and TX D31.

parent 22170579
// 31 TX LED
// 30
// 26
// 25 RX LED
// 13 D LED
#define D PIN_LED_13
#define TXLED PIN_LED_TXL
#define RXLED PIN_LED_RXL
#define Serial SerialUSB
void setup() {
pinMode(D, OUTPUT);
pinMode(TXLED, OUTPUT);
pinMode(RXLED, OUTPUT);
Serial.begin(9600);
while(!Serial);
Serial.println("LED test.");
}
void loop() {
digitalWrite(D, HIGH);
digitalWrite(TXLED, HIGH);
digitalWrite(RXLED, HIGH);
delay(1000);
digitalWrite(D, LOW);
digitalWrite(TXLED, LOW);
digitalWrite(RXLED, LOW);
delay(1000);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment