Writing your own Micropython library #108
Replies: 3 comments
-
So first step: ask ChatGPT 😄. It responds with:
Some corrections that I think need to be made to ChatGPT's (above) code:
It's probably wrong in several other ways, but its a pretty good starting point. I would start from the above code, and sort of compare it against an existing repo as well as the datasheet. Side note: For my classes that take in an |
Beta Was this translation helpful? Give feedback.
-
As for testing the code, probably the quickest way would be to run |
Beta Was this translation helpful? Give feedback.
-
Dude, that's amazing - thanks a ton! I'll give it a shot and report back. ChatGPT is a f*ing gamechanger. :P |
Beta Was this translation helpful? Give feedback.
-
Hi Brian,
I figured you would possibly be the right person to ask about this. I have this optic flow sensor, ADNS-3080, that I can't find a Micropython library for. I know there are Arduino libraries out there, and that it uses SPI, but that's about it. I have no idea how to go about writing a library myself, but I figured you might know how to. ;-) (but now worries if not). I was thinking there might be a way using the
SPI
class frommachine
, but that's where my brain stops. (There's talk of0x42
which I don't really know about).So I was wondering if you have some suggestions on where to start, if it's worth the time, or some suggested materials.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions