Created
July 13, 2019 04:23
-
-
Save surinoel/95b3638eab4f57ca3f3d044f87cd4aa6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int recv = 13; | |
int trans = 3; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(115200); | |
pinMode(recv, INPUT); | |
pinMode(trans, OUTPUT); | |
digitalWrite(trans, HIGH); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
if(!digitalRead(recv)) { | |
Serial.println("Read"); | |
delay(100); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment