This commit is contained in:
Thomas von Dein
2020-02-20 19:32:21 +01:00
parent 5e2e3603e9
commit 07dc739c72
8 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
/* -*-c++-*-
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
#include <SPI.h>
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
Serial.begin(9600);
Serial.print("Press any key: ");
pinMode(PB0, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
if (Serial.available()) {
Serial.println("blinked\n");
}
}