You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I2C1.setup({sda:D12,scl:D22});try{I2C1.readFrom(0x20,1);}catch(e){console.log("catch:",e.message,e.stack);}/* output>catch: jshI2CRead: slave doesn't ACK the transfer at line 6 col 23 I2C1.readFrom(0x20,1); ^*/
When reading on wrong address - operation success, returns random data.
I think it should actually throw an error. Currently it only prints to the console:
This also applies to
writeTo
The text was updated successfully, but these errors were encountered: