Coloration syntaxique du code

This commit is contained in:
Philippe Roy 2023-05-09 20:40:02 +02:00
parent 31a1111d0b
commit 412120275c
3 changed files with 3 additions and 3 deletions

View File

@ -26,13 +26,13 @@ def autoget_port():
'uno' :[9025, 67], 'uno' :[9025, 67],
'mega' :[9025, 66]} 'mega' :[9025, 66]}
for com in comports(): # micro:bit for com in comports(): # micro:bit
if com.vid == carte_dict["microbit"][0] and com.pid == carte_dict["microbit"][1]: if com.vid == carte_dict['microbit'][0] and com.pid == carte_dict['microbit'][1]:
return [com.device,"micro:bit"] return [com.device,"micro:bit"]
for com in comports(): # Arduino Uno for com in comports(): # Arduino Uno
if com.vid == carte_dict["uno"][0] and com.pid == carte_dict["uno"][1]: if com.vid == carte_dict['uno'][0] and com.pid == carte_dict['uno'][1]:
return [com.device,"Arduino Uno"] return [com.device,"Arduino Uno"]
for com in comports(): # Arduino Mega for com in comports(): # Arduino Mega
if com.vid == carte_dict["mega"][0] and com.pid == carte_dict["mega"][1]: if com.vid == carte_dict['mega'][0] and com.pid == carte_dict['mega'][1]:
return [com.device,"Arduino Mega"] return [com.device,"Arduino Mega"]
return [None,""] return [None,""]