<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/esp8266/modmachine.c, branch v1.8.3</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.3</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.3'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-08-07T13:20:01+00:00</updated>
<entry>
<title>esp8266/modmachine: Implement dummy sleep() function.</title>
<updated>2016-08-07T13:20:01+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-08-07T13:20:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=31ad1bb6065f3d950e634cd2f589d81886286045'/>
<id>urn:sha1:31ad1bb6065f3d950e634cd2f589d81886286045</id>
<content type='text'>
</content>
</entry>
<entry>
<title>esp8266/modmachine: Implement idle() function.</title>
<updated>2016-08-07T12:51:04+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-08-07T12:51:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c2070d771a70df6ebe19d6ca97b363b2b38d69fa'/>
<id>urn:sha1:c2070d771a70df6ebe19d6ca97b363b2b38d69fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>esp8266: Let RTC work correctly after deepsleep.</title>
<updated>2016-06-06T09:51:12+00:00</updated>
<author>
<name>puuu</name>
<email>puuu@users.noreply.github.com</email>
</author>
<published>2016-06-03T15:21:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ee12581a3545c6e950b4a2b5322167eb73326928'/>
<id>urn:sha1:ee12581a3545c6e950b4a2b5322167eb73326928</id>
<content type='text'>
By design, at wake up from deepsleep, the RTC timer will be reset, but
the data stored in RTC memory will not [1]. Therefore, we have to adjust
delta in RTC memory before going into deepsleep to get almost correct
time after waking up.

[1] http://bbs.espressif.com/viewtopic.php?t=1184#p4082
</content>
</entry>
<entry>
<title>esp8266: Provide a dedicated variable to disable ets_loop_iter.</title>
<updated>2016-06-01T16:26:49+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-06-01T16:26:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=927388e80ecac345147597c1d7a53b0c1848f609'/>
<id>urn:sha1:927388e80ecac345147597c1d7a53b0c1848f609</id>
<content type='text'>
So ets_loop_iter is now only disabled when using machine.disable_irq.
</content>
</entry>
<entry>
<title>esp8266/modmachine: Add machine.time_pulse_us function.</title>
<updated>2016-05-31T13:06:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-05-31T13:06:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cff2b7a6e3acf5fe81d9ada1c344a047332df32e'/>
<id>urn:sha1:cff2b7a6e3acf5fe81d9ada1c344a047332df32e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>esp8266/modmachine: Add disable_irq and enable_irq functions.</title>
<updated>2016-05-26T14:47:47+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-05-20T12:30:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9a368ae831143e1dd47eb302e85f39862de3a758'/>
<id>urn:sha1:9a368ae831143e1dd47eb302e85f39862de3a758</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Move call_function_*_protected() functions to py/ for reuse.</title>
<updated>2016-04-25T16:31:17+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-04-25T16:28:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6d103b65482d8dc1d688fcfd59b3400ebfbe0f0f'/>
<id>urn:sha1:6d103b65482d8dc1d688fcfd59b3400ebfbe0f0f</id>
<content type='text'>
They almost certainly needed by any C code which calls Python callbacks.
</content>
</entry>
<entry>
<title>esp8266: Implement basic deep-sleep capabilities.</title>
<updated>2016-04-21T10:43:37+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-04-21T10:43:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=32d7cf6e441660caed00620309d1faa4b7df5dd4'/>
<id>urn:sha1:32d7cf6e441660caed00620309d1faa4b7df5dd4</id>
<content type='text'>
Use the machine.deepsleep() function to enter the sleep mode.  Use the
RTC to configure the alarm to wake the device.

Basic use is the following:

    import machine

    # configure RTC's ALARM0 to wake device from deep sleep
    rtc = machine.RTC()
    rtc.irq(trigger=rtc.ALARM0, wake=machine.DEEPSLEEP)

    # do other things
    # ...

    # set ALARM0's alarm to wake after 10 seconds
    rtc.alarm(rtc.ALARM0, 10000)

    # enter deep-sleep state (system is reset upon waking)
    machine.deepsleep()

To detect if the system woke from a deep sleep use:

    if machine.reset_cause() == machine.DEEPSLEEP_RESET:
        print('woke from deep sleep')
</content>
</entry>
<entry>
<title>esp8266/modmachine: Add reset_cause() function.</title>
<updated>2016-04-15T19:08:04+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-04-15T19:07:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=050e645ef2380d14a2833edb509d4f7498f6d035'/>
<id>urn:sha1:050e645ef2380d14a2833edb509d4f7498f6d035</id>
<content type='text'>
</content>
</entry>
<entry>
<title>esp8266: Switch from using custom I2C driver to generic extmod one.</title>
<updated>2016-04-12T13:06:54+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-04-12T12:55:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a525493e40eb4d89e805737bfa36b39d35221efb'/>
<id>urn:sha1:a525493e40eb4d89e805737bfa36b39d35221efb</id>
<content type='text'>
</content>
</entry>
</feed>
