2.0 KiB
Servo 2040 Examples
Servo Examples
Single Servo
Demonstrates how to create a Servo object and control it.
Multiple Servos
Demonstrates how to create multiple Servo objects and control them together.
Servo Cluster
Demonstrates how to create a ServoCluster object to control multiple servos at once.
Simple Easing
An example of how to move a servo smoothly between random positions.
Servo Wave
An example of applying a wave pattern to a group of servos and the LEDs.
Calibration
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
Shows how to initialise and read the 6 external and 2 internal sensors of Servo 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 Servo 2040's current measuring ability and display the value on the onboard LED bar.
LED Rainbow
Displays a rotating rainbow pattern on the Servo 2040's onboard LED bar.
Turn Off LEDs
A simple program that turns off the onboard LED bar.