that_one_nigga_you_k

uglified

Nov 1st, 2018
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. void setup(){Serial.begin(9600);pinMode(10,INPUT);pinMode(9,OUTPUT);digitalWrite(10,0);digitalWrite(9,0);}void loop(){digitalWrite(9,1);delayMicroseconds(10);digitalWrite(9,0);Serial.print(pulseIn(10,1)*0.0170145);Serial.println(" cm");delay(100);}
Add Comment
Please, Sign In to add comment