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.
Diff: Nico.cpp
- Revision:
- 11:5e955cf303ab
- Parent:
- 8:9dcb41672315
--- a/Nico.cpp Mon Oct 15 10:40:35 2018 +0000 +++ b/Nico.cpp Wed Oct 31 14:21:58 2018 +0000 @@ -1,3 +1,14 @@ -//this nico's file +#include "mbed.h" + +PwmOut led(LED1) -//i did some changes yeay \ No newline at end of file +int main(){ + while(1){ + led = led + 0.01; + wait(0.2); + if(led == 1.0){ + led = 0; + } + } + +}