Tedd OKANO / Mbed 2 deprecated PCT2075_Hello

Dependencies:   PCT2075 mbed

main.cpp

Committer:
okano
Date:
2015-02-27
Revision:
1:5398b0799e20
Parent:
0:3c3d4c5ac8e9
Child:
2:edd678dcf504

File content as of revision 1:5398b0799e20:

/** Hello code for "test_LM75B" */

#include "mbed.h"
#include "PCT2075.h"

PCT2075  temp0( p28, p27 );

I2C         i2c( p28, p27 );
PCT2075  temp1( i2c );


int main()
{
    float   t0;
    float   t1;

    i2c.frequency( 400 * 1000 );

    while(1) {
        t0   = temp0;
        t1   = temp1;
        printf( "temp = %7.3f, %7.3f\r\n", t0, t1 );
        wait( 1 );
    }
}