Blinkinlabs / ch554_sdcc

CH554 software development kit for SDCC
295 stars 70 forks source link

Software i2c #4

Closed DurandA closed 6 years ago

DurandA commented 6 years ago

Is there any plan to add software i2c support?

To the best of my knowledge, the CH554 doesn't have hardware i2c support and the official SDK doesn't provide a software implementation.

cibomahto commented 6 years ago

Looks like there is an implementation in this example: https://github.com/Blinkinlabs/ch554_sdcc/blob/master/examples/usb_device_cdc_i2c/firmware/i2c.h https://github.com/Blinkinlabs/ch554_sdcc/blob/master/examples/usb_device_cdc_i2c/firmware/i2c.c

Would be good to make a standalone example for the I2C part!

DurandA commented 6 years ago

Thank you for pointing it!