pimoroni-pico/examples/servo2040
ZodiusInfuser 1efa75a590 Renamed C++ Servo functions to match MP 2022-03-30 14:29:02 +01:00
..
CMakeLists.txt Added final C++ example 2022-03-30 14:29:02 +01:00
README.md Link fix 2022-03-30 14:29:02 +01:00
servo2040_calibration.cmake Ported the majority of Servo2040 MP examples to C++ 2022-03-30 14:29:02 +01:00
servo2040_calibration.cpp Made calibration C++ better match MP 2022-03-30 14:29:02 +01:00
servo2040_current_meter.cmake Added sensor and current examples 2022-03-30 14:29:02 +01:00
servo2040_current_meter.cpp Added sensor and current examples 2022-03-30 14:29:02 +01:00
servo2040_led_rainbow.cmake Disable uart on all examples to avoid confusing servos 2022-03-30 14:29:02 +01:00
servo2040_led_rainbow.cpp Ported the majority of Servo2040 MP examples to C++ 2022-03-30 14:29:02 +01:00
servo2040_multiple_servos.cmake Disable uart on all examples to avoid confusing servos 2022-03-30 14:29:02 +01:00
servo2040_multiple_servos.cpp Renamed C++ Servo functions to match MP 2022-03-30 14:29:02 +01:00
servo2040_read_sensors.cmake Added sensor and current examples 2022-03-30 14:29:02 +01:00
servo2040_read_sensors.cpp Added sensor and current examples 2022-03-30 14:29:02 +01:00
servo2040_sensor_feedback.cmake Added final C++ example 2022-03-30 14:29:02 +01:00
servo2040_sensor_feedback.cpp Added final C++ example 2022-03-30 14:29:02 +01:00
servo2040_servo_cluster.cmake Disable uart on all examples to avoid confusing servos 2022-03-30 14:29:02 +01:00
servo2040_servo_cluster.cpp Renamed C++ Servo functions to match MP 2022-03-30 14:29:02 +01:00
servo2040_servo_wave.cmake Disable uart on all examples to avoid confusing servos 2022-03-30 14:29:02 +01:00
servo2040_servo_wave.cpp Renamed C++ Servo functions to match MP 2022-03-30 14:29:02 +01:00
servo2040_simple_easing.cmake Disable uart on all examples to avoid confusing servos 2022-03-30 14:29:02 +01:00
servo2040_simple_easing.cpp Renamed C++ Servo functions to match MP 2022-03-30 14:29:02 +01:00
servo2040_single_servo.cmake Disable uart on all examples to avoid confusing servos 2022-03-30 14:29:02 +01:00
servo2040_single_servo.cpp Renamed C++ Servo functions to match MP 2022-03-30 14:29:02 +01:00

README.md

Servo 2040 C++ Examples

Servo Examples

Single Servo

servo2040_single_servo.cpp

Demonstrates how to create a Servo object and control it.

Multiple Servos

servo2040_multiple_servos.cpp

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

Servo Cluster

servo2040_servo_cluster.cpp

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

Simple Easing

servo2040_simple_easing.cpp

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

Servo Wave

servo2040_servo_wave.cpp

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

Calibration

servo2040_calibration.cpp

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

servo2040_read_sensors.cpp

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

Sensor Feedback

servo2040_sensor_feedback.cpp

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

Current Meter

servo2040_current_meter.cpp

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

LED Rainbow

servo2040_led_rainbow.cpp

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