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
Revision 1:c79ac0240e88, committed 2014-06-26
- Comitter:
- lina94
- Date:
- Thu Jun 26 02:12:57 2014 +0000
- Parent:
- 0:1644c3e66842
- Commit message:
- prueba 2
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1644c3e66842 -r c79ac0240e88 main.cpp
--- a/main.cpp Thu Jun 26 02:00:32 2014 +0000
+++ b/main.cpp Thu Jun 26 02:12:57 2014 +0000
@@ -40,19 +40,16 @@
void conteo ()
{
unidades++;
- decenas++;
+
if (unidades > 32)
{
unidades = 0;
}
- if (decenas > 32) {
- decenas = 0;
- }
- }
+
void prueba_led()
{
- Testigo2 = !Testigo2;
+ Testigo2 = 0;
}
int main(void)
@@ -62,13 +59,12 @@
visualiza.attach(&cambio,0.008333); // tiempo de visualizacion
cuenta.attach(&conteo,1); // tiempo de incremento de la variable
Led_Test.attach(&prueba_led,1.7);
-Testigo1 = 1;
-Testigo2 = 1;
+Testigo1 = 0;
+Testigo2 = 0;
while(1)
{
- Testigo1 = !Testigo1;
- wait(0.5);
+ Testigo1 = 0;
}
}
\ No newline at end of file