Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1.  
  2. /* Use File->Load Prog to
  3. load a different Program
  4. */
  5.  
  6.  
  7. float y = -1;
  8. int x;
  9. int time,time2;
  10. void setup()
  11. {
  12. Serial.begin(9600);
  13.  
  14. }
  15.  
  16. void loop()
  17. {
  18. time = micros();
  19. Serial.println(analogRead(A3)*5.0/1023);
  20. time2 = micros();
  21. Serial.println(time2-time);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement