Si5351Arduino icon indicating copy to clipboard operation
Si5351Arduino copied to clipboard

Abstraction of I2C interface for discussion - STM32

Open brucemack opened this issue 5 years ago • 1 comments

Hi Jason: Thanks for an excellent Si5351 library. I use it all the time on Arduino/Teensy. I've started doing some projects using the STM32 family and I'd love to be able to keep using your library. I think this should be straight-forward if the I2C interface can be abstracted a bit. This pull request is a request for comment on the general idea.

The IC2Interface class provides the generic interface to the I2C bus. There would be implementations of this interface for different platforms. The default would be Arduino to make sure existing code doesn't break.

I have tested this on an STM32F446 board and it works fine.

Let me know if you'd be open to accepting this general type of change.

73s, Bruce KC1FSZ

brucemack avatar Oct 10 '20 18:10 brucemack

Ive been exploring git submodules as a way to make use of Bruce's abstraction without having to burden NT7S's repository with code specific to platforms he might not have access to or care to support. Im offering this up solely for thought or discussion: https://github.com/coburnw/Si5351Linux Best Regards, Coburn

coburnw avatar Oct 04 '21 21:10 coburnw