mirror of
https://forge.apps.education.fr/blender-edutech/blender-edutech-tutoriels.git
synced 2024-01-27 09:42:33 +01:00
Coloration syntaxique du code
This commit is contained in:
parent
31a1111d0b
commit
412120275c
Binary file not shown.
Binary file not shown.
@ -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,""]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user