Rune Langoy / Mbed 2 deprecated i2c_detect

Dependencies:   mbed

Fork of PRES11_I2C_Detect by EL-POM1001

Files at this revision

API Documentation at this revision

Comitter:
rlanghbv
Date:
Tue Nov 10 13:29:27 2015 +0000
Parent:
0:9e51d4453b53
Commit message:
first commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Nov 09 13:21:03 2015 +0000
+++ b/main.cpp	Tue Nov 10 13:29:27 2015 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 
 //SDA , SCL
-I2C i2cBus(PB_9, PB_8);
+I2C i2cBus(I2C_SDA, I2C_SCL);
 
 int main()
 {
@@ -27,3 +27,4 @@
         printf("\r\n");
     }
 }
+