Don't change "i2c_master_getDD" it's read the scl line. and "i2c_master_getDC" read the sda line.
Try the Attachment and see if it compiles ok.
@Frida started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Don't change "i2c_master_getDD" it's read the scl line.
and "i2c_master_getDC" read the sda line.
Try the Attachment and see if it compiles ok.