Keypad buzzer lcd for stm32f407vg

Dependencies:   mbed beep TextLCD keypad

Files at this revision

API Documentation at this revision

Comitter:
omerbguclu
Date:
Sat Dec 08 09:52:36 2018 +0000
Commit message:
Omer Buyukguclu

Changed in this revision

TODO.txt Show annotated file Show diff for this revision Revisions of this file
TextLCD.lib Show annotated file Show diff for this revision Revisions of this file
beep.lib Show annotated file Show diff for this revision Revisions of this file
keypad.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TODO.txt	Sat Dec 08 09:52:36 2018 +0000
@@ -0,0 +1,1 @@
+14. uygulamaya led eklenecek
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Sat Dec 08 09:52:36 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/simon/code/TextLCD/#308d188a2d3a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/beep.lib	Sat Dec 08 09:52:36 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/dreschpe/code/beep/#d8e14429a95f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/keypad.lib	Sat Dec 08 09:52:36 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/jyrodriguezg/code/keypad/#0012aa4908fa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Dec 08 09:52:36 2018 +0000
@@ -0,0 +1,34 @@
+#include "mbed.h"
+#include "keypad.h"
+#include "TextLCD.h"
+#include "beep.h"
+//STM32F4-Discovery
+
+TextLCD lcd(PC_1, PC_0, PC_3, PC_2, PA_1, PA_0);// rs e d4-d7
+Beep buzzer(PA_15);
+// Define your own keypad values
+char Keytable[] = { '1', '2', '3', 'A',
+                    '4', '5', '6', 'B',
+                    '7', '8', '9', 'C',
+                    '*', '0', '#', 'D'
+                  };
+
+uint32_t cbAfterInput(uint32_t index) {
+    //printf("Index:%d => Key:%c\n", key, Keytable[index]);
+    buzzer.beep(1500,0.1);
+    wait_ms(100);
+    buzzer.nobeep(); 
+    lcd.cls();
+    lcd.printf("Key:%c\n", Keytable[index]);
+    return 0;
+}
+
+int main() {
+    Keypad keypad(PB_3, PD_7, PD_5, PD_6, PB_7, PB_6, PB_5, PB_4);//Row1-2-3-4 Col1-2-3-4 
+    keypad.CallAfterInput(&cbAfterInput);
+    keypad.Start();
+
+    while (1) {
+        wait_ms(100);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Dec 08 09:52:36 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc
\ No newline at end of file