From 40993d824123f57f7f07b74ee3a3d72e2e06b64e Mon Sep 17 00:00:00 2001 From: Alan Wang <44191076+alankrantas@users.noreply.github.com> Date: Sun, 14 Jun 2020 02:51:21 +0800 Subject: [PATCH] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1773cca..d65dc44 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,10 @@ gc.enable() # auto memory recycle gc.collect() # force memory recycle ``` +## Recursion is Not Welcomed + +Since micro:bit has very limited memory, the recursion depth is severely limited. Only [8 nested function calls or so](https://mail.python.org/pipermail/microbit/2016-February/000896.html) can be used without triggering RuntimeError. + ## Classic Blinky ```python @@ -180,7 +184,7 @@ while True: sleep(50) ``` -## LED Blinky Without Using Sleep +## Blinky Without Using Sleep ```python from microbit import display