4424

Dependencies:   TSI mbed nRF24L01P

main.cpp

Committer:
prtkmynk
Date:
2017-03-31
Revision:
0:753c28769057

File content as of revision 0:753c28769057:

#include "mbed.h"
#include "TSISensor.h"
Serial pc(USBTX,USBRX);
TSISensor TSI;

float sensor;

main()
{
    while(1)
    {
      sensor=(100*TSI.readPercentage());
      pc.printf("%0.2f\n\r",sensor);
      wait(0.2);
    }
}