This is a demonstration program which draws a keypad on the LCD and uses the touch screen to allow an operator to key-in an access code. Two possible codes are allowed to grant to different levels of access. Additionally the push button is used to allow an operator to send Moorse Code pulses in to the device which is checked against two characters to determine if there was a match, and if so, access is granted.
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI mbed-os BSP_DISCO_F429ZI
Also draws a mushroom on the screen and animates it.
Diff: SecurityUnlockDemo-Moorse.cpp
- Revision:
- 2:444eeedb41f0
- Parent:
- 1:316582aec4fb
--- a/SecurityUnlockDemo-Moorse.cpp Sat Jun 01 20:43:11 2019 +0000 +++ b/SecurityUnlockDemo-Moorse.cpp Sat Jun 01 21:04:17 2019 +0000 @@ -5,7 +5,14 @@ // Fredric L. Rice, June 2019 // // This module contains the code which performs the Moorse Code -// functionality +// functionality. The push button is used to enter pulses in to the +// unlocking mechanism, and the LEDs are used to indicate when the +// pushbutton is down, and when a "dash" has been entered so that +// the user knows the dash was long enough to register as a dash. +// +// Once the operator stops entering dashes and dots, afterabout 3 +// seconds the software will evaluate the entry to see if it matches +// the expected / desired characters and if they do, access is granted. // // ----------------------------------------------------------------------