• 1 Votes
    4 Posts
    665 Views
    T
    @rcolistete Thanks for the links. Thats a great start, and already has helped me in the implementation of one of my components. As a noob to Pycom, it really has taken longer than it should have to acquaint myself with where to find information, drivers, tutorials, and examples for Pycom. For instance, the links you provided are very useful, but for a newcomer they are very much in the woodworks, and I still think everything is too scattered. Some consolidation would be greatly appreciated. Even a pinned getting started page with links would be a start. Through comparing a few Pycom libraries that were adapted from Micropython libraries I have gotten the hang of how to convert over libraries. If there was a good centralized place to post Pycom libraries I would be happy to share my adaptations and the libraries I've created for some components that don't have libraries out there at all. A tutorial, for converting libraries would still be great, thanks @Paul-Thornton for your consideration.
  • 0 Votes
    2 Posts
    372 Views
    E
    Hi, i have a quick look at the library and it seem not a big deal to adapt it to micropython (with a litlle exeception). IMHO you have only to change i2c read and write function call (from adafruit_bus_device.i2c_device) to pycom i2c library . If you have a litlle knowledge about i2c bus it will be very easy for you. BUT you have to do some change for function used with time as micropython do no provide time.monotonic, its about calibration timeout of sensor and i think you have to read documentation and change time function with some function like utime.ticks_ms() to compute timeout conditions.