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.
main.cpp
- Committer:
- wd5gnr
- Date:
- 2015-10-03
- Revision:
- 0:af8bf6fc6a0f
File content as of revision 0:af8bf6fc6a0f:
#include "mbed.h"
PwmOut myled(dp1);
int main()
{
int i,j;
while(1)
{
for (j=0;j<2;j++)
for (i=0;i<1000;i+=10)
{
float pwm=i/1000.0;
myled=j?1.0-pwm:pwm;
wait(0.01);
}
}
}