micropython-samples
micropython-samples copied to clipboard
Assorted code ideas, unofficial MP FAQ, plus index to my other repositories.
I'm not sure whether this work should start from `upip` or here, but I'll raise the issue anyway. At the moment micropip.py (and probably also upip) doesn't give a meaningful...
Hi. Thanks to shearing encoder_timed.py. I want use for measuring velocity rotary encoder but can't. ` >>> import encoder_timed >>> e=encoder_timed.EncoderTimed('A1','A2',0,0) >>> e.position 0 ` when using rotary encoder; `...
Hi Peter; Just tried to run the portable version as I have both esp8266 and pyboards to calibrate, but on the pyboard it fails as the pyboard I2C does not...
Hi, great work, I think I encountered similar problems with my application (a number of ESP8266 with temperature sensors) witch stop working after some time because of open sockets. Interestingly...
Hi @peterhinch Thank you to write a driver for the DS3231. Do you have a driver for another RTC than DS3231? [Here follow:](https://github.com/peterhinch/micropython-samples/blob/master/README.md#24-ds3231-precision-rtc) " This is a low cost precision...
Hello Peter Thank you for your amazing work on microPython, it is a bible for me. I have a question: is it possible to extend the feature `__import__(mymodule)` but with...
Further to some of what I asked for https://github.com/peterhinch/micropython-samples/issues/42 At the beginning of the `sun_moon` file, need to add `atan2, degrees, asin` to the `math` import. ``` # A function...
Hello. Is it possible that you could add a calculation of the current sun height in degrees? Thank you!
When the geographic location is latitude 90, i.e. the North Pole, I usually get an error: ``` line 57, in quad ZeroDivisionError: divide by zero ``` The problem is in...
https://github.com/peterhinch/micropython-samples/blob/d7529baff2c1cf2ce17a50719be14c26f82b8aa7/ntptime/ntptime.py#L21 Uses hours (rather than minutes of seconds). I suspect the math later could cause odd behaviors with timezones that are not whole hours (for example India has a half...