|
@@ -32,7 +32,7 @@ int luat_i2c_exist(int id) {
|
|
|
return id == 0;
|
|
return id == 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-int luat_i2c_setup(int id, int speed, int slaveaddr) {
|
|
|
|
|
|
|
+int luat_i2c_setup(int id, int speed) {
|
|
|
if (speed == 0) {
|
|
if (speed == 0) {
|
|
|
speed = 100 * 1000; // SLOW
|
|
speed = 100 * 1000; // SLOW
|
|
|
}
|
|
}
|