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.
Fork of teclado-menu-lcd-reloj by
Diff: main.cpp
- Revision:
- 1:9ab0f526b7a7
- Parent:
- 0:1334d6f26f42
- Child:
- 2:a3cc9101e1c3
--- a/main.cpp Mon Nov 30 15:54:23 2015 +0000
+++ b/main.cpp Mon Nov 30 16:47:32 2015 +0000
@@ -9,7 +9,7 @@
DigitalIn key2(PTE19);
DigitalIn key3(PTE18);
DigitalIn key4(PTE17);
-InterruptIn Enable(PTA2);
+InterruptIn Enable(PTA13);
AnalogIn externo(PTC2);
AnalogIn interno(PTB3);
@@ -26,10 +26,13 @@
void menu();
void selec();
+void ingresat(){
+
+ }
+
void func()
{
- pc.printf("entro a func\n\r");
B1 = key1.read();
B2 = key2.read();
B3 = key3.read();
@@ -138,6 +141,7 @@
break;
case 5:
pc.printf("aca ingresaria la temperatura\r\n");
+ ingresat();
wait(1.5);
break;
case 6:
@@ -170,11 +174,11 @@
int main() {
-
- Enable.rise(&func);
+
pc.baud(115200);
+ Enable.rise(&func);
+
int comp;
-
while(1){
//convierte voltaje a temperatura
@@ -185,7 +189,6 @@
lcd.locate(0,1);
lcd.printf("%.0fC %.0fC %c ho:ra", texterno, tinterno, modo);
-
comp = tinterno;
if(comp == temp)
pc.printf("las temperaturas son iguales\n\r");
