FM-test

Dependencies:   MODSERIAL mbed-rtos mbed

Fork of Master by Ohnishi_Gundan

Committer:
9uS7
Date:
Thu Sep 11 10:15:34 2014 +0000
Revision:
0:4f07ba929908
Child:
1:e1cfb5850088
main_program

Who changed what in which revision?

UserRevisionLine numberNew contents of line
9uS7 0:4f07ba929908 1 #ifndef _INC_MY_FMI2C
9uS7 0:4f07ba929908 2 #define _INC_MY_FMI2C
9uS7 0:4f07ba929908 3
9uS7 0:4f07ba929908 4 #include "mbed.h"
9uS7 0:4f07ba929908 5
9uS7 0:4f07ba929908 6 I2C i2c(p9,p10); // SDA,SCI
9uS7 0:4f07ba929908 7
9uS7 0:4f07ba929908 8 char freqH = 0, freqL = 0, c, i;
9uS7 0:4f07ba929908 9 unsigned int frequencyB, freq, freqB;
9uS7 0:4f07ba929908 10 const int addr = 0x11 << 1;
9uS7 0:4f07ba929908 11
9uS7 0:4f07ba929908 12 void i2cSetup(unsigned int); //setup i2c (int frequency) -frequency:760~910
9uS7 0:4f07ba929908 13
9uS7 0:4f07ba929908 14 #endif