Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp
- Committer:
- gtarronge1
- Date:
- 2021-01-19
- Revision:
- 0:0d63c17e7b7a
File content as of revision 0:0d63c17e7b7a:
#include "mbed.h" PwmOut servo(p21); void servo_joueur(); int main() { servo.period_ms(20); // servo.pulsewidth_us(2325/2); while(1) { servo_joueur(); } } void servo_joueur(void) { servo.pulsewidth_us(1000); wait_ms(750); servo.pulsewidth_us(2200); wait_ms(750); }