Tedd OKANO / Mbed 2 deprecated I2C_FmPlus_Hello

Dependencies:   I2C_FmPlus mbed

main.cpp

Committer:
okano
Date:
2014-12-02
Revision:
0:09641ab44f00
Child:
1:ba9bd888e526

File content as of revision 0:09641ab44f00:

#include "mbed.h"
#include "I2C_FmPlus.h"

//  I2C     i2c( p28, p27 );
I2C_FmPlus     i2c( p28, p27 );

int main() {
    char    v[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 };
    char    target_address  = 0xC0;
    
    i2c.frequency( 1100 * 1000 );
//    i2c.scl_setting( 25, 25 );
    
    while(1) {
        i2c.write( target_address, v, sizeof( v ) );
    }
}