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
Diff: main.cpp
- Revision:
- 1:c92ac0a9d3d7
- Parent:
- 0:1d39bf0af16b
--- a/main.cpp Tue Oct 16 14:03:14 2018 +0000
+++ b/main.cpp Tue Oct 16 14:42:37 2018 +0000
@@ -26,7 +26,7 @@
{
if(!BP1)
{
- pwm=pwm.read()+0.1 // ici pwm= **** equivaut à pwm.write( **** )
+ pwm=pwm.read()+0.1; // ici pwm= **** equivaut à pwm.write( **** )
// pwm.read() renvoie la valeur actuelle du rapport cyclique sous forme d'un entier compri entre 0 et 1
if(pwm>=1) // pwm ici et dans un calcule est équivalent à pwm.read()