document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.  
  2. int tiempo = 0;
  3. int uno = A0;
  4. int dos = A1;
  5. int tres = A2;
  6.  
  7. void setup () {
  8.   pinMode(uno, INPUT);
  9.   pinMode(dos, INPUT);
  10.   pinMode(tres, INPUT);
  11.   Serial.begin(9600);
  12. }
  13.  
  14. void loop() {
  15.  
  16.   /*Valor Del tiempo Obtenido por el puerto serie*/  
  17.   if(Serial.available()>0)
  18.     tiempo=Serial.parseInt();
  19.    
  20.    
  21.   /*Lee los voltajes de los pines A0, A1, y A2.Son guardados en tres variables locales.*/
  22.   int un = analogRead(uno);
  23.   int d = analogRead(dos);
  24.   int t = analogRead(tres);
  25.  
  26.   char nom[83]="text";
  27.   sprintf(nom, "Eje 1: %4d     Eje 2: %4d     K: %4d ", un,d,t);
  28.   Serial.println(nom);
  29.  
  30.   delay(tiempo);
  31.  
  32. }
');