RTC in uPy build for ESP32

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
flowolf
Posts: 2
Joined: Tue Feb 27, 2018 8:32 pm

RTC in uPy build for ESP32

Post by flowolf » Tue Feb 27, 2018 8:48 pm

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.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: RTC in uPy build for ESP32

Post by pythoncoder » Thu Mar 01, 2018 8:17 am

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.

flowolf
Posts: 2
Joined: Tue Feb 27, 2018 8:32 pm

Re: RTC in uPy build for ESP32

Post by flowolf » Sat Mar 03, 2018 9:20 am

Thanks. I'll give that a try!

LisaM
Posts: 19
Joined: Tue Nov 07, 2017 6:11 pm

Re: RTC in uPy build for ESP32

Post by LisaM » Fri Mar 30, 2018 11:42 pm

After mrSurley's RTC PR went through, RTC is supported and working...

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: RTC in uPy build for ESP32

Post by pythoncoder » Sat Mar 31, 2018 9:00 am

Great! Has anyone checked its accuracy? The one on the ESP8266 is poor.
Peter Hinch
Index to my micropython libraries.

Post Reply