Interrupt_2

Dependencies:   mbed C12832

Revision:
1:61930fcd568c
Parent:
0:6b510cf92f81
Child:
2:0330a4b650d1
--- a/main.cpp	Sat Jun 20 10:35:02 2020 +0000
+++ b/main.cpp	Sat Jun 20 10:38:47 2020 +0000
@@ -5,12 +5,9 @@
 InterruptIn button(p9);
 DigitalOut led(LED1);
 DigitalOut flash(LED4);
-Timer debounce;
 int x;
 
 void flip() {
- debounce.start();     /* Start debounce timer */
- if (debounce.read_ms()>=3000)
  { led = !led; // toggles the led when the joystick button is pressed.
  x=1;
  }
@@ -23,7 +20,7 @@
  flash = !flash; // turns LED4 on if off, off if on
  if (x ==1) 
      {
-     lcd.printf("Test ");
+     lcd.printf("test ");
      x=0;
      }
  wait(0.25); // the instruction to wait for a quarter-second