Port of Adafruit Arduino code

Dependencies:   mbed

Revision:
0:772bf4786416
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Source/I2C_base.cpp	Sat Mar 21 12:33:05 2015 +0000
@@ -0,0 +1,16 @@
+#include "I2C_base.h"
+
+#ifdef _MBED_
+
+//setup the right i2c class
+I2C_base* i2c = new I2C_MBED(SDA, SCL);
+
+//setup millis function
+Timer p_t;
+int millis()
+{
+    return p_t.read_ms();
+}
+
+
+#endif //_MBED_
\ No newline at end of file