IOsetting / FwLib_STC8

A lite firmware library for STC8G/STC8H series MCU
Apache License 2.0
118 stars 30 forks source link

demo code for I2C slave? #5

Open sumitmamoria opened 1 year ago

sumitmamoria commented 1 year ago

Do you have demo code or a snippet for using I2C slave mode ?

IOsetting commented 1 year ago

I wrote one according to the i2c example in stc8h user manual, but I hadn't test it yet. Let me know if there are anything wrong.

sumitmamoria commented 1 year ago

@IOsetting Thanks for the quick response. Will try it on the hardware and let you know.