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:
- danielgarciag
- Date:
- 2018-09-30
- Revision:
- 0:39849589866c
File content as of revision 0:39849589866c:
#include "mbed.h"
Timer tiempo;
Serial pc (USBTX,USBRX);
DigitalIn BOTON (USER_BUTTON);
int t=0;
int main() {
while (1){
while (BOTON){}
tiempo.start();
while (!BOTON){}
tiempo.stop();
t= tiempo.read_ms();
pc.printf("%d\n",t);
tiempo.reset();
}}