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-Animation.cpp
- Revision:
- 3:0e554d8d5a19
- Parent:
- 2:444eeedb41f0
- Child:
- 4:5c70a30d6757
diff -r 444eeedb41f0 -r 0e554d8d5a19 SecurityUnlockDemo-Animation.cpp --- a/SecurityUnlockDemo-Animation.cpp Sat Jun 01 21:04:17 2019 +0000 +++ b/SecurityUnlockDemo-Animation.cpp Mon Jun 03 21:56:36 2019 +0000 @@ -12,6 +12,15 @@ // so we attempt to use the analog inputs on PF_3, PF_4, PF_5 to help // drive some randomness. // +// Conceivably more than one sprite could be animated merely by +// making some of the data elements arrays -- and of course using C++ +// to instantiate objects and then animating them is the correct way +// to do such things. This is a concept demonstration projjct, so we +// do not expect to make a proper class and allow any number of them +// to be instantiated and get automated. +// +// That would be neat but that's something for another project. +// // ---------------------------------------------------------------------- #include "mbed.h" // The mbed operating system