Update README.md

This commit is contained in:
Alan Wang
2020-06-14 02:51:21 +08:00
committed by GitHub
parent 0ed82028f0
commit 40993d8241

View File

@@ -76,6 +76,10 @@ gc.enable() # auto memory recycle
gc.collect() # force 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 ## Classic Blinky
```python ```python
@@ -180,7 +184,7 @@ while True:
sleep(50) sleep(50)
``` ```
## LED Blinky Without Using Sleep ## Blinky Without Using Sleep
```python ```python
from microbit import display from microbit import display