Nahrát soubory do „05“

This commit is contained in:
2020-01-07 14:39:37 +01:00
parent 3c7fab317c
commit 678f28b320
2 changed files with 22 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#include <Servo.h>
Servo servo;
int tlacitko = D6;
void setup() {
pinMode(tlacitko, INPUT_PULLUP);
servo.attach(2); //D4
servo.write(0);
delay(2000);
}
void loop() {
int energie = digitalRead(tlacitko);
if(energie == false)
{
delay(1000);
servo.write(90);
delay(10000);
servo.write(0);
}
}
BIN
View File
Binary file not shown.