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: Led SDFileSystem mbed
Diff: main.cpp
- Revision:
- 0:7373f4ac36fb
- Child:
- 2:f3ceb5d7b70c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Jun 10 14:46:33 2017 +0000
@@ -0,0 +1,38 @@
+#include "mbed.h"
+#include "SDFileSystem.h"
+#include "Led.h"
+
+
+DigitalIn sw2(SW2);
+DigitalIn sw3(SW3);
+
+
+//TODO
+//Funcion para manejar el boton 3 (ciclo de colores)
+//Funcion principal que haga un ciclo para ve el estado del boton y escribe en la SD
+
+bool LED = false;
+
+void Boton2() {
+ if (sw2 == 0) {
+ if (LED) {
+ LEDEstado(false);
+ } else {
+ LEDEstado(true);
+ }
+ wait(0.2f);
+ }
+}
+
+void Boton3() {
+ if (sw3 == 0) {
+
+ }
+}
+
+
+int main() {
+
+
+}
+
\ No newline at end of file