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

This commit is contained in:
Artyom committed 2024-04-22 19:53:03 +03:00
1 parent e320118245
commit 3884b3f997
7 files changed
+94 -5

No files matched your search

+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);
}