Is it possible to port i2cdevlib?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Turbinenreiter
Posts: 288
Joined: Sun May 04, 2014 8:54 am

Is it possible to port i2cdevlib?

Post by Turbinenreiter » Mon Jul 14, 2014 9:42 am

Coming form Arduinos, I always happily used i2cdevlib. Now I miss it.
http://i2cdevlib.com/

Do you think this can be ported?
From my, naive, perspective - it should be possible. There als some to be porting to MSP430 going on.
What's needed are python wrappers. And, it seems, those can even be autogenerated.
It is using the wire library tough, while micropython has it's own i2c module.

Having micropython support in i2cdevlib would be hughe. Interfacing with sensors is a pretty common task for microcontrollers.

Would be nice to hear you opinions before I waste a lot of time. Also, I guess this is a little beyond ma capabilities. But, hey, that's how you learn.

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: Is it possible to port i2cdevlib?

Post by pfalcon » Sun Jul 20, 2014 7:19 pm

Yes, it can be ported. And yes, it should be autogenerated. No, that's not exactly easy, but worth it. I wanted to port i2cdevlib to my super-framework https://github.com/pfalcon/PeripheralTemplateLibrary for a long time. 2 years later, it's still in my queue. So yes, porting it would be nice.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

Post Reply