ae191697f2 | ||
---|---|---|
.. | ||
README.md | ||
current_meter.py | ||
led_rainbow.py | ||
motor_cluster.py | ||
motor_encoders.py | ||
motor_encoders_capture.py | ||
motor_profiler.py | ||
motor_wave.py | ||
multiple_motors.py | ||
read_sensors.py | ||
sensor_feedback.py | ||
simple_easing.py | ||
single_motor.py | ||
turn_off_led.py | ||
turn_off_motors.py |
README.md
Motor 2040 Micropython Examples
Motor Examples
Single Motor
Demonstrates how to create a Motor object and control it.
Multiple Motors
Demonstrates how to create multiple Motor objects and control them together.
Motor Cluster
Demonstrates how to create a MotorCluster object to control multiple motors at once.
Simple Easing
An example of how to move a motor smoothly between random positions.
Motor Wave
An example of applying a wave pattern to a group of motors and the LEDs.
Calibration
Shows how to create motors with different common calibrations, modify a motor's existing calibration, and create a motor with a custom calibration.
Function Examples
Read Sensors
Shows how to initialise and read the 6 external and 2 internal sensors of Motor 2040.
Sensor Feedback
Show how to read the 6 external sensors and display their values on the neighbouring LEDs.
Current Meter
An example of how to use Motor 2040's current measuring ability and display the value on the onboard LED bar.
LED Rainbow
Displays a rotating rainbow pattern on the Motor 2040's onboard LED.
Turn Off LED
A simple program that turns off the onboard LED.