Hello code for "Switch Science mbed LPC824"

Dependencies:   mbed

Fork of SwitchSciencembedLPC824_test by Mako SHIMURA

main.cpp

Committer:
okano
Date:
2014-11-03
Revision:
3:863cf79582a4
Parent:
2:482581f76a1d
Child:
6:b57b9dcfb515

File content as of revision 3:863cf79582a4:

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

I2C         i2c( p28, p27 );
test_LM75B  temp( i2c );

int main()
{
    float   t;

    i2c.frequency( 400 * 1000 );

    while(1) {
        t   = temp;
        printf( "temp = %7.3f\r\n", t );
        wait( 1 );
    }
}