Nicolai-Electronics / rp2040-i2c-interface

MIT License
219 stars 28 forks source link

Correct inverted 'stop bit' logic #4

Closed rhulme closed 1 year ago

rhulme commented 1 year ago

When a command sequence ends, the CMD_I2C_END flag is set, which is used to send a stop bit and release the bus but the Pico SDK functions have a 'nostop' parameter with the opposite logic, so this should be 'false' when CMD_I2C_END is set, and vice versa.

Fixes #3

renzenicolai commented 1 year ago

Thank you for looking into this, it's been a while since I had the time to look at this project. I've tested your change with a logic analyzer and it works great! Thank you.