mirror of
https://github.com/ft-NotArt/ShyEye.git
synced 2025-10-29 12:26:01 +00:00
12 lines
171 B
C++
12 lines
171 B
C++
int x;
|
|
|
|
void setup() {
|
|
Serial.begin(9600);
|
|
Serial.setTimeout(1);
|
|
}
|
|
|
|
void loop() {
|
|
while (!Serial.available());
|
|
x = Serial.readString().toInt();
|
|
Serial.print(x + 1);
|
|
} |