Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. temp[1] = map ( sensorValue , 0 , 1023 , -125 , 1333 ) / 100.0 ;
  2. delay(100);
  3. Serial.println(temp[1]);
  4. temp[2] = map ( sensorValue , 0 , 1023 , -125 , 1333 ) / 100.0 ;
  5. delay(100);
  6. Serial.println(temp[2]);
  7. temp[3] = map ( sensorValue , 0 , 1023 , -125 , 1333 ) / 100.0 ;
  8. delay(100);
  9. Serial.println(temp[3]);
  10. temp[4] = map ( sensorValue , 0 , 1023 , -125 , 1333 ) / 100.0 ;
  11. delay(100);
  12. Serial.println(temp[4]);
  13. temp[5] = map ( sensorValue , 0 , 1023 , -125 , 1333 ) / 100.0 ;
  14. delay(100);
  15. Serial.println(temp[5]);
  16. temp[6] = map ( sensorValue , 0 , 1023 , -125 , 1333 ) / 100.0 ;
  17. delay(100);
  18. Serial.println(temp[6]);
  19. temp[7] = map ( sensorValue , 0 , 1023 , -125 , 1333 ) / 100.0 ;
  20. delay(100);
  21. Serial.println(temp[7]);
  22. temp[8] = map ( sensorValue , 0 , 1023 , -125 , 1333 ) / 100.0 ;
  23. delay(100);
  24. Serial.println(temp[8]);
  25. temp[9] = map ( sensorValue , 0 , 1023 , -125 , 1333 ) / 100.0 ;
  26. delay(100);
  27. Serial.println(temp[9]);
  28. temp[10] = map ( sensorValue , 0 , 1023 , -125 , 1333 ) / 100.0 ;
  29. delay(100);
  30. Serial.println(temp[10]);
  31.  
  32. Druck = (temp[1] + temp[2] + temp[3] + temp[4] + temp[5]+ temp[6]+ temp[7]+ temp[8]+ temp[9]+ temp[10])/10 ;
  33.  
  34.  
  35. Serial.println("Ausgabe");
  36. Serial.println(Druck);
  37. Serial.println("");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement