Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.45 KB

dcmotor.rst

File metadata and controls

64 lines (42 loc) · 1.45 KB

Motors without rotation sensors

Powered Up motors without rotation sensors. The arrows indicate the default positive direction.Powered Up motors without rotation sensors. The arrows indicate the default positive direction.

pybricks_variables_set_dc_motor

pybricks.pupdevices.DCMotor

pybricks_blockMotorDuty_DCMotor

pybricks.pupdevices.DCMotor.dc

pybricks_blockMotorStop_DCMotor_coast

pybricks.pupdevices.DCMotor.stop

pybricks_blockMotorStop_DCMotor_brake

pybricks.pupdevices.DCMotor.brake

pybricks.pupdevices.DCMotor.settings

Examples

Making a train drive forever

../../../examples/pup/motor_dc/motor_dc_battery_box.py

Making the motor move back and forth

../../../examples/pup/motor_dc/motor_dc_init_basic.py

Changing the positive direction

../../../examples/pup/motor_dc/motor_dc_init_direction.py

Starting and stopping

../../../examples/pup/motor_dc/motor_dc_stop.py