Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SHT_v1 by
main.cpp
- Committer:
- roselea
- Date:
- 2010-01-24
- Revision:
- 0:df1c8f2961a1
- Child:
- 1:0dbbb4802508
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);
}
}
