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.
Revision 0:69f37b9d5c07, committed 2018-10-17
- Comitter:
- aldomarez
- Date:
- Wed Oct 17 20:26:44 2018 +0000
- Commit message:
- :D
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Oct 17 20:26:44 2018 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" +Ticker flipper; +DigitalOut encendido(D4); +DigitalOut apagado(D5); +DigitalOut parpadeo(D6); +DigitalOut motor(LED2); +void flip() { +motor = !motor; +encendido = !encendido; +apagado=!apagado; +} +int main() { +apagado=1; +encendido = 0; +motor = 1; +parpadeo=1; + +flipper.attach(&flip, 2.0); + +while(1) { + parpadeo = !parpadeo; + wait(0.2); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Oct 17 20:26:44 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187 \ No newline at end of file