Добавлено чтение с Arduinoюъ.

This commit is contained in:
Artyom
2024-04-22 19:53:03 +03:00
parent e320118245
commit 3884b3f997
7 changed files with 94 additions and 5 deletions
+20
View File
@@ -0,0 +1,20 @@
const int digitalPin = 13;
void setup() {
Serial.begin(9600);
}
void loop() {
const int value = digitalRead(digitalPin);
if (value == HIGH)
{
Serial.print(1);
}
else
{
Serial.print(0);
}
delay(500);
}