calib sensor

Dependencies:   mbed

main.cpp

Committer:
vidica94
Date:
2017-02-18
Revision:
0:cb4f2b95e2a7

File content as of revision 0:cb4f2b95e2a7:

#include "mbed.h"

/*
   This basic program could be usefull to calibrate the IR_Sensor 
   Run the program , bet a dark target with the sensor and roatate the trimmer until the second led on the PCB with the sensor shutdown. 
   
*/

AnalogIn ir(A2);


DigitalOut led(LED1);

int main()
{
    float lettura=0;
    while(1) {
       lettura=ir.read()*3.00; 
        printf("lettura = %f\n",lettura );
        
    }
}