aboutsummaryrefslogtreecommitdiff
path: root/docs/library/micropython.rst
diff options
context:
space:
mode:
authorIvan Pejić <ipejic@gmail.com>2015-02-09 01:42:08 +0100
committerDamien George <damien.p.george@gmail.com>2015-03-30 00:43:04 +0100
commite178ef252094b8235295d21a72621a58b92623ab (patch)
treea93186f643933c32481e1ac595bc20e46d38fadb /docs/library/micropython.rst
parent47098efbda6656b543b15f3fe7fa3d75b762423f (diff)
docs: Add additional example/note for Timer's callback usage.
Add example: using named function for the Timer's callback. Add note: improving traceback inside interrupt timers.
Diffstat (limited to 'docs/library/micropython.rst')
-rw-r--r--docs/library/micropython.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/library/micropython.rst b/docs/library/micropython.rst
index c4706c4c6..7564f29ae 100644
--- a/docs/library/micropython.rst
+++ b/docs/library/micropython.rst
@@ -29,7 +29,8 @@ Functions
Allocate ``size`` bytes of RAM for the emergency exception buffer (a good
size is around 100 bytes). The buffer is used to create exceptions in cases
- when normal RAM allocation would fail (eg within an interrupt handler).
+ when normal RAM allocation would fail (eg within an interrupt handler) and
+ therefore give useful traceback information in these situations.
A good way to use this function is to put it at the start of your main script
(eg boot.py or main.py) and then the emergency exception buffer will be active