Getting Started With ARDUINO UNO With Python Language | All In One Code

preview_player
Показать описание
--------------------- pip install serial --------------------------------

ser = serial.Serial('COM4', 9800, timeout=1)

user_input = 'L'
while user_input != 'q':
user_input = input('H = on, L = off, q = quit' : )
byte_command = encode(user_input)

print('q entered. Exiting the program')
Рекомендации по теме
Комментарии
Автор

ser = serial.Serial('COM4', 9600)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'serial' has no attribute 'Serial'
help pls

rashev
Автор

Nice tutorial 👍
Please make more projects and tutorials with arduino python.

anokhautomation
Автор

I like it i m a noob and youre the first indian and the only i follow you re cool i don't know

criticalgrower
Автор

but how we define the pin number of arduino at which led is connected

sahilgupta
Автор

it doesnt let me install the pip install seria
\

costi
Автор

i think using pyfirmata is more simple than this

vivekpereiraalbert
Автор

oo bahi hindi ma tutorial bana loo! apni oqat mat bhoolo

IslamicStoriesbyRehan