Hello,
So i have created a driver file for a particular sensor. Now i want to add this module in micropython in such a way that i can easily import it.
At present i am copying the driver file into PYBFlash drive. Than importing it. But what if i want to import the driver, without copying the module into PYBFlash drive ? Is there any steps available for adding self made driver into Micropython main directory ?
For more clear example there is pyb module in micropython, which have many submodules supportiing I2C, SPI etc. Similarly i want to add my module and import it.
Does anyone have any idea of how to do it ? Does I need to make change in cloned micropython repo ?
How to Add self made driver in micropython ?
-
- Posts: 118
- Joined: Wed Dec 27, 2017 8:52 am
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: How to Add self made driver in micropython ?
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.