main.cpp
- Committer:
- roselea
- Date:
- 2010-01-24
- Revision:
- 0:df1c8f2961a1
File content as of revision 0:df1c8f2961a1:
// simple test for SHT temp modules
#include "mbed.h"
#include "SHT.h"
SHT th1(p5,p6,SHT_high); // sclock, data
DigitalOut led1(LED1);
int main() {
while(1) {
th1.update(SHT_high);
printf("t:%6.2fC h:%6.2f%%\n",th1.get_temperature(),th1.get_humidity());
led1=!led1;
wait(1);
}
}