Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. const int analogInPin = A0; // acá entra la salia del potenciometro
  2.  
  3. int sensorValue = 0; //
  4.  
  5.  
  6.  
  7. unsigned long time;
  8.  
  9. void setup() {
  10.  
  11. Serial.begin(9600);
  12.  
  13. }
  14.  
  15. void loop() {
  16.  
  17. sensorValue = analogRead(analogInPin);
  18.  
  19. time = micros();
  20.  
  21. Serial.print(time);
  22.  
  23. Serial.print("");
  24.  
  25. Serial.println(sensorValue)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement