From e178ef252094b8235295d21a72621a58b92623ab Mon Sep 17 00:00:00 2001 From: Ivan Pejić Date: Mon, 9 Feb 2015 01:42:08 +0100 Subject: 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. --- docs/library/micropython.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/library/micropython.rst') 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 -- cgit v1.2.3