SHARE
TWEET

Untitled

a guest Jul 17th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int Laser = 6;
  2. int Detector = 7;
  3.  
  4. void setup()
  5. {
  6.   Serial.begin (9600);
  7.   pinMode(Laser, OUTPUT);
  8.   pinMode(Detector, INPUT);
  9. }
  10.  
  11. void loop()
  12. {
  13.   digitalWrite(Laser, HIGH);
  14.   boolean val = digitalRead(Detector);
  15.   Serial.println(val);
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top