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: MX12
Fork of Utilisatio_MX12_V3 by
Turbine.cpp
00001 #include "mbed.h" 00002 00003 extern PwmOut turbine; 00004 extern void gerer_turbine(unsigned short pwm_turbine); 00005 00006 extern DigitalOut led2; 00007 00008 void gerer_turbine(unsigned char pwm_turbine) { 00009 00010 turbine.period_ms(20); 00011 00012 00013 if (pwm_turbine==0) 00014 turbine.pulsewidth_us(800); 00015 else if (pwm_turbine==1) { 00016 turbine.pulsewidth_us(1000+(10*pwm_turbine)); 00017 } 00018 00019 }
Generated on Tue Jul 12 2022 15:52:00 by
1.7.2
