Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0d89375

Browse files
Merge pull request #648 from arduino/AileenBanshee-patch-1
Remove parentheses in order to be consistent in the code
2 parents 7130316 + 094bd14 commit 0d89375

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎content/learn/03.programming/05.arduino-and-python/arduino-and-python.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ from machine import Pin
2626

2727
led = Pin(6, Pin.OUT)
2828

29-
while (True):
29+
while True:
3030
led.on()
3131
time.sleep_ms(250)
3232
led.off()
@@ -207,7 +207,7 @@ import utime
207207

208208
p2 = Pin(25, Pin.OUT)
209209

210-
while(True):
210+
whileTrue:
211211
p2.value(0)
212212
print("off")
213213
utime.sleep(1)
@@ -226,7 +226,7 @@ import utime
226226

227227
p2 = Pin(25, Pin.IN, Pin.PULL_UP)
228228

229-
while(True):
229+
whileTrue:
230230
print(p2.value())
231231
utime.sleep(1)
232232
```
@@ -241,7 +241,7 @@ import utime
241241

242242
p2 = Pin(25, Pin.IN, Pin.PULL_DOWN)
243243

244-
while(True):
244+
whileTrue:
245245
print(p2.value())
246246
utime.sleep(1)
247247
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /