pimoroni-pico/examples/pico_motor_shim
Phil Howard b548d67609 C++: Don't assume PICO_DEFAULT_LED_PIN is defined. 2023-01-27 09:54:28 +00:00
..
CMakeLists.txt
README.md Added MP encoder examples 2022-05-12 14:45:20 +01:00
motorshim_dual_motors.cmake
motorshim_dual_motors.cpp
motorshim_motor_song.cmake
motorshim_motor_song.cpp C++: Don't assume PICO_DEFAULT_LED_PIN is defined. 2023-01-27 09:54:28 +00:00
motorshim_movements.cmake
motorshim_movements.cpp
motorshim_single_motor.cmake
motorshim_single_motor.cpp

README.md

Pico Motor Shim C++ Examples

Examples

Single Motor

motorshim_single_motor.cpp

Demonstrates how to create a Motor object and control it.

Dual Motors

motorshim_dual_motors.cpp

Demonstrates how to create two Motor objects and control them together.

Movements

motorshim_movements.cpp

An example of how to perform simple movements of a 2-wheeled driving robot.

Motor Song

motorshim_motor_song.cpp

A fun example of how to change a motor's frequency to have it play a song.