Update Servo 2040 board examples in README

Add the PWM Servo example to the readme.
Fix typo in rainbow animation.
Add images to boath examples showing working examples.
This commit is contained in:
Paul Daniel Faria 2022-09-20 23:55:22 -04:00 committed by 9names
parent d3b0156269
commit 4f440d286d

View file

@ -55,10 +55,25 @@ $ cargo install elf2uf2-rs
``` ```
then try repeating the `cargo run` command above. then try repeating the `cargo run` command above.
### [pimorono_servo2040_rainbow](./examples/pimorono_servo2040_rainbow.rs) ### [pimoroni_servo2040_rainbow](./examples/pimoroni_servo2040_rainbow.rs)
Animates a rainbow wheel on the Servo2040's six on-board LEDs in sequence. Animates a rainbow wheel on the Servo2040's six on-board LEDs in sequence.
![Servo 2040 Rainbow LED Animation](
https://user-images.githubusercontent.com/1673130/190923083-4cd9794a-6775-4f9e-92c3-64d6d25c61dd.gif)
### [pimoroni_servo2040_pwm_servo](./examples/pimoroni_servo2040_pwm_servo.rs)
Moves a micro servo connected to pin Servo 1 on a Servo2040 board using the PWM
peripheral.
![Servo 2040 Servo Animation](
https://user-images.githubusercontent.com/1673130/190923094-1e7dc85d-2742-4d2f-9b9d-f3337b03cda2.gif)
![Servo 2040 Oscilloscope Waveform Animation](
https://user-images.githubusercontent.com/1673130/190923098-f725bf4a-541b-4e4c-9f79-eb435e8d2d27.gif)
![Servo 2040 Oscilloscope Waveform Image with Frequency](
https://user-images.githubusercontent.com/1673130/190923130-43bab8aa-8773-42f8-90cb-9bc684368027.jpg)
## Contributing ## Contributing
Contributions are what make the open source community such an amazing place to Contributions are what make the open source community such an amazing place to