Skip to main content

Simple library to control 'Lego™ EV3' controller

Project description

Библиотека для управления блоком 'LEGO™ EV3' посредтством Bluetooth соединения.

Использование:

from ev3 import Ev3

# Указываем последовательный порт в конструкторе 'COM...'
bot = Ev3("COM...")
# Для linux '/dev/ttyS...'

# Задаём скорость для мотора N[-100..100]
bot.set_speed(Ev3.Motors.A, N)

# Запуск мотора
bot.start(Ev3.Motors.A)

# Остановка мотора  
bot.stop(Ev3.Motors.A, Ev3.Stop.FLOAT)
# Второй аргумент `type` - тип остановки: BREAK - с фиксацией мотора, FLOAT - без

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ev3-python, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size ev3_python-0.0.1-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size ev3-python-0.0.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page