Advertisement
RuiViana

Teste

Jan 25th, 2016
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #define sensorIR A0 // Pino de entrada do sensor
  2. int Leitura; // Variavem de leitura e calculo
  3. //------------------------------------------------
  4. void setup() {
  5. Serial.begin(9600); // Inicialisa a serial
  6. }
  7. //------------------------------------------------
  8. void loop() {
  9. Leitura = analogRead(sensorIR); // Leia o sensor e transforme em Volts
  10. Serial.println(Leitura);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement