From 34b780d7183dd4b34a547117760f4bd8519ed0c5 Mon Sep 17 00:00:00 2001 From: Alan Wang Date: Sun, 18 Aug 2024 10:34:43 +0800 Subject: [PATCH] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 84b0ab5..2d930c6 100644 --- a/README.md +++ b/README.md @@ -65,8 +65,10 @@ Try to type these in the REPL:
Reference - - `import this` prints out "The Zen of MicroPython", which is a short version of [The Zen of Python](https://peps.python.org/pep-0020/) in CPython. - - `import antigravity` prints out a text version of [this comic about Python 2](https://xkcd.com/353/); in CPython it will directly open the URL of that comic. + +- `import this` prints out "The Zen of MicroPython", which is a short version of [The Zen of Python](https://peps.python.org/pep-0020/) in CPython. +- `import antigravity` prints out a text version of [this comic about Python 2](https://xkcd.com/353/); in CPython it will directly open the URL of that comic. +
## Import * is a Bad Idea @@ -299,7 +301,7 @@ def translate(value, leftMin, leftMax, rightMin, rightMax): while True: lightLevel = display.read_light_level() - print(translate(lightLevel, 0, 255, 0, 1023)) + print(translate(lightLevel, 0, 255, 0, 1023)) # map value range 0-255 to 0-1023 sleep(100) ```