Добавлено чтение с Arduinoюъ.
This commit is contained in:
1 parent
e320118245
commit
3884b3f997
7 files changed
+94
-5
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user