hello

Dependencies:   Sht31 mbed

main.cpp

Committer:
GeofferyOmlette
Date:
2016-07-21
Revision:
1:683b53ff0239
Parent:
0:35a52271b5b4

File content as of revision 1:683b53ff0239:

#include "mbed.h"
#include "Sht31/Sht31.h"

Sht31 sht31(D14, D15);

int main()
{        
    printf("Hello\r\n");
    while (true) {
        float t = sht31.readTemperature();
        float h = sht31.readHumidity();
        printf("Temperature [ %3.2f F ]\r\n", t);
        printf("Humidity    [ %3.2f %% ]\r\n\n", h);        
        wait(5);
    }
}