Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Implemented deepsleep, reset_cause and rtc functions memory, string a… #224

Closed

Conversation

smeenka
Copy link

@smeenka smeenka commented Nov 20, 2017

From sha2017 (https://github.com/SHA2017-badge/micropython-examples-sha2017.git) I merged some stuff back into this repository.

module function status remark
machine reset issue on reboot unhandled exception
machine reset_cause OK
machine deepsleep OK stop processor and wakeup in n milliseconds
machine lightsleep issue on wakeup an exception. See espressif/esp-idf#1024
machine RTC OK fetch RTC module
machine.RTC memory OK read/write one byte to RTC memory
machine.RTC string OK read/write a string to RTC memory
machine.RTC datetime OK read/write the current date tuple

@smeenka
Copy link
Author

smeenka commented Nov 20, 2017

example usage for rtc.datetime():
import ntptime,time
from machine import RTC as rtc
t = ntptime.time()
tm = time.localtime(t)
rtc.datetime(tm)

@MrSurly
Copy link
Contributor

MrSurly commented Nov 20, 2017

@smeenka Much of SHA2017 deep sleep code was originally from this PR: #85, which is still pending.

@nubcore
Copy link
Contributor

nubcore commented Jan 29, 2018

I've just tested the rtc functionality, which is looking good and #85 is now closed, anything in particular still holding this up?

@MrSurly
Copy link
Contributor

MrSurly commented Jan 29, 2018

@nubcore
Copy link
Contributor

nubcore commented Jan 30, 2018

@MrSurly thanks for the info and contribution! Is active developmed for esp32 still micropython-esp32, or did I miss a memo a couple months back and it now is all happening directly in micropython/ports/esp32?

@aykevl
Copy link

aykevl commented Jan 30, 2018

@nubcore The work continues on the main micropython repo, see #233

@nickzoic
Copy link
Collaborator

nickzoic commented Jan 30, 2018 via email

@dpgeorge
Copy link
Member

All of this functionality is now merged in the upstream repo.

@dpgeorge dpgeorge closed this Feb 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants