I flashed a ESP32 devkit V1 with MicroPython 1.9.3 (the official build from the uPy website).
I import `machine`, but there is no RTC module.
>>> from machine import RTC
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name RTC
What am I missing?
The same Micropython version (1.9.3, selfbuilt for ESP8266) has the RTC module.
RTC in uPy build for ESP32
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: RTC in uPy build for ESP32
I hit the same issue. It doesn't appear to have been implemented. The Loboris port supports it.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: RTC in uPy build for ESP32
Thanks. I'll give that a try!
Re: RTC in uPy build for ESP32
After mrSurley's RTC PR went through, RTC is supported and working...
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: RTC in uPy build for ESP32
Great! Has anyone checked its accuracy? The one on the ESP8266 is poor.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.