pimoroni-pico/micropython/examples/servo2040
Phil Howard 3cd64202fd MicroPython: Correct is not True usage.
Co-authored-by: ZodiusInfuser <christopher.parrott2@gmail.com>
2022-06-17 15:15:19 +01:00
..
README.md Link fix 2022-03-30 14:29:02 +01:00
calibration.py Added examples readme 2022-03-30 14:29:02 +01:00
current_meter.py MicroPython: Correct is not True usage. 2022-06-17 15:15:19 +01:00
led_rainbow.py MicroPython: Correct is not True usage. 2022-06-17 15:15:19 +01:00
multiple_servos.py MP example tweaks 2022-03-30 14:29:02 +01:00
read_sensors.py MicroPython: Correct is not True usage. 2022-06-17 15:15:19 +01:00
sensor_feedback.py MicroPython: Correct is not True usage. 2022-06-17 15:15:19 +01:00
servo_cluster.py Improved servocluster teardown 2022-03-30 14:29:02 +01:00
servo_wave.py MicroPython: Correct is not True usage. 2022-06-17 15:15:19 +01:00
simple_easing.py MicroPython: Correct is not True usage. 2022-06-17 15:15:19 +01:00
single_servo.py Added examples readme 2022-03-30 14:29:02 +01:00
turn_off_leds.py Renamed LED_DAT to LED_DATA 2022-03-30 14:29:02 +01:00

README.md

Servo 2040 Micropython Examples

Servo Examples

Single Servo

single_servo.py

Demonstrates how to create a Servo object and control it.

Multiple Servos

multiple_servos.py

Demonstrates how to create multiple Servo objects and control them together.

Servo Cluster

servo_cluster.py

Demonstrates how to create a ServoCluster object to control multiple servos at once.

Simple Easing

simple_easing.py

An example of how to move a servo smoothly between random positions.

Servo Wave

servo_wave.py

An example of applying a wave pattern to a group of servos and the LEDs.

Calibration

calibration.py

Shows how to create servos with different common calibrations, modify a servo's existing calibration, and create a servo with a custom calibration.

Function Examples

Read Sensors

read_sensors.py

Shows how to initialise and read the 6 external and 2 internal sensors of Servo 2040.

Sensor Feedback

sensor_feedback.py

Show how to read the 6 external sensors and display their values on the neighbouring LEDs.

Current Meter

current_meter.py

An example of how to use Servo 2040's current measuring ability and display the value on the onboard LED bar.

LED Rainbow

led_rainbow.py

Displays a rotating rainbow pattern on the Servo 2040's onboard LED bar.

Turn Off LEDs

turn_off_leds.py

A simple program that turns off the onboard LED bar.