Port of Adafruit Arduino code

Dependencies:   mbed

Fork of Adafruit9-DOf by Bruno Manganelli

Committer:
ivo_david_michelle
Date:
Thu Mar 24 22:02:43 2016 +0000
Revision:
1:37a7df50e330
Parent:
0:772bf4786416
copied main code, but values not changing

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bmanga95 0:772bf4786416 1 #include "I2C_base.h"
bmanga95 0:772bf4786416 2
bmanga95 0:772bf4786416 3 #ifdef _MBED_
bmanga95 0:772bf4786416 4
bmanga95 0:772bf4786416 5 //setup the right i2c class
bmanga95 0:772bf4786416 6 I2C_base* i2c = new I2C_MBED(SDA, SCL);
bmanga95 0:772bf4786416 7
bmanga95 0:772bf4786416 8 //setup millis function
bmanga95 0:772bf4786416 9 Timer p_t;
bmanga95 0:772bf4786416 10 int millis()
bmanga95 0:772bf4786416 11 {
bmanga95 0:772bf4786416 12 return p_t.read_ms();
bmanga95 0:772bf4786416 13 }
bmanga95 0:772bf4786416 14
bmanga95 0:772bf4786416 15
bmanga95 0:772bf4786416 16 #endif //_MBED_