From 094bd1446e6864af4fedbfc9be6e073e09cf7e21 Mon Sep 17 00:00:00 2001 From: Francesca Sanfilippo <62792938+AileenBanshee@users.noreply.github.com> Date: Fri, 11 Nov 2022 09:17:46 +0100 Subject: [PATCH] Remove parentheses in order to be consistent in the code while (True): became while True: --- .../05.arduino-and-python/arduino-and-python.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/learn/03.programming/05.arduino-and-python/arduino-and-python.md b/content/learn/03.programming/05.arduino-and-python/arduino-and-python.md index 162b96ec63..b70f09035c 100644 --- a/content/learn/03.programming/05.arduino-and-python/arduino-and-python.md +++ b/content/learn/03.programming/05.arduino-and-python/arduino-and-python.md @@ -26,7 +26,7 @@ from machine import Pin led = Pin(6, Pin.OUT) -while (True): +while True: led.on() time.sleep_ms(250) led.off() @@ -207,7 +207,7 @@ import utime p2 = Pin(25, Pin.OUT) -while(True): +while True: p2.value(0) print("off") utime.sleep(1) @@ -226,7 +226,7 @@ import utime p2 = Pin(25, Pin.IN, Pin.PULL_UP) -while(True): +while True: print(p2.value()) utime.sleep(1) ``` @@ -241,7 +241,7 @@ import utime p2 = Pin(25, Pin.IN, Pin.PULL_DOWN) -while(True): +while True: print(p2.value()) utime.sleep(1) ```