Tedd OKANO / Mbed 2 deprecated test_LM75B_Hello

Dependencies:   mbed test_LM75B

main.cpp

Committer:
okano
Date:
2014-11-03
Revision:
7:553960b756ed
Parent:
6:b57b9dcfb515

File content as of revision 7:553960b756ed:

/** Hello code for "test_LM75B" */

#include "mbed.h"
#include "test_LM75B.h"

test_LM75B  temp0( p28, p27 );

I2C         i2c( p28, p27 );
test_LM75B  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 );
    }
}