Commit 9b227e40 authored by Markéta Jedličková's avatar Markéta Jedličková

Update LED_TEST.ino

parent 2cd75cfd
......@@ -5,33 +5,32 @@
// 13 D LED
#define D PIN_LED_13
#define TXLED PIN_LED_TXL
#define RXLED PIN_LED_RXL
// TX SHOULD BE D31
#define Serial SerialUSB
#define TXLED PIN_LED_TXL// RX SHOULD BE D25
#define RXLED PIN_LED_RXL
#define Serial SerialUSBvoid
void setup() {
pinMode(D, OUTPUT);
pinMode(TXLED, OUTPUT);
pinMode(RXLED, OUTPUT);
Serial.begin(9600);
while(!Serial);
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);
}
void loop()
{
digitalWrite(D, HIGH);
digitalWrite(TXLED, HIGH);
digitalWrite(RXLED, HIGH);
delay(1000);
digitalWrite(D, LOW);
digitalWrite(TXLED, LOW);
digitalWrite(RXLED, HIGH);
}
\ No newline at end of file
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