v.2
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# 1 "C:\\Users\\dimae\\OneDrive\\Рабочий стол\\lab_html\\project\\project.ino"
|
||||
|
||||
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
pinMode(2, 0x0);
|
||||
pinMode(13, 0x1);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
int sensorVal = digitalRead(2);
|
||||
Serial.print(sensorVal); // Выводим значение в мониторе порта
|
||||
delay(500);
|
||||
}
|
||||
Reference in New Issue
Block a user