Skip to content

Commit 284021a

Browse files
author
mean
committed
[STM32] Blink the led in the example
1 parent 3149f95 commit 284021a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

example/stm32/hello.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#include "Arduino.h"
2-
2+
#define LED PC13
33
void setup()
44
{
55
Serial.println("Hi there");
6+
pinMode(LED,OUTPUT);
67

78
}
89
void loop()
910
{
1011
Serial.print("Hey!\n");
12+
digitalWrite(LED,HIGH);
13+
delay(500);
14+
digitalWrite(LED,LOW);
1115
delay(500);
1216
}

0 commit comments

Comments
 (0)