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.

Committer:
Damotclese
Date:
Sat Jun 01 20:43:11 2019 +0000
Revision:
1:316582aec4fb
Child:
2:444eeedb41f0
Added animation of a mushroom sprite that occasionally teleports.;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Damotclese 1:316582aec4fb 1 // ----------------------------------------------------------------------
Damotclese 1:316582aec4fb 2 // SecurityUnlockDemo-Animation.h
Damotclese 1:316582aec4fb 3 //
Damotclese 1:316582aec4fb 4 // Fredric L. Rice, June 2019
Damotclese 1:316582aec4fb 5 //
Damotclese 1:316582aec4fb 6 // ----------------------------------------------------------------------
Damotclese 1:316582aec4fb 7
Damotclese 1:316582aec4fb 8 #ifndef _SECURITYUNLOCKDEMOANIMATION_H_
Damotclese 1:316582aec4fb 9 #define _SECURITYUNLOCKDEMOANIMATION_H_ 1
Damotclese 1:316582aec4fb 10
Damotclese 1:316582aec4fb 11 // ----------------------------------------------------------------------
Damotclese 1:316582aec4fb 12 // Defined constants that the module might use
Damotclese 1:316582aec4fb 13 //
Damotclese 1:316582aec4fb 14 // ----------------------------------------------------------------------
Damotclese 1:316582aec4fb 15
Damotclese 1:316582aec4fb 16 #define SPRITE_HEIGHT_IN_PIXELS 17
Damotclese 1:316582aec4fb 17
Damotclese 1:316582aec4fb 18 // ----------------------------------------------------------------------
Damotclese 1:316582aec4fb 19 // We allow the following sprite movement directions
Damotclese 1:316582aec4fb 20 //
Damotclese 1:316582aec4fb 21 // ----------------------------------------------------------------------
Damotclese 1:316582aec4fb 22 #define SPRITE_DIRECTION_LEFT_UP 1
Damotclese 1:316582aec4fb 23 #define SPRITE_DIRECTION_UP 2
Damotclese 1:316582aec4fb 24 #define SPRITE_DIRECTION_RIGHT_UP 3
Damotclese 1:316582aec4fb 25 #define SPRITE_DIRECTION_LEFT 4
Damotclese 1:316582aec4fb 26 #define SPRITE_DIRECTION_NOT_VALID 5
Damotclese 1:316582aec4fb 27 #define SPRITE_DIRECTION_RIGHT 6
Damotclese 1:316582aec4fb 28 #define SPRITE_DIRECTION_LEFT_DOWN 7
Damotclese 1:316582aec4fb 29 #define SPRITE_DIRECTION_DOWN 8
Damotclese 1:316582aec4fb 30 #define SPRITE_DIRECTION_RIGHT_DOWN 9
Damotclese 1:316582aec4fb 31
Damotclese 1:316582aec4fb 32 // ----------------------------------------------------------------------
Damotclese 1:316582aec4fb 33 // We allow the sprite to move around the screen within certain boundary
Damotclese 1:316582aec4fb 34 // positions which are defined here.
Damotclese 1:316582aec4fb 35 //
Damotclese 1:316582aec4fb 36 // ----------------------------------------------------------------------
Damotclese 1:316582aec4fb 37 #define SPRITE_MINIMUM_X 50
Damotclese 1:316582aec4fb 38 #define SPRITE_MAXIMUM_X LCD_WIDTH - 30
Damotclese 1:316582aec4fb 39 #define SPRITE_MINIMUM_Y 60
Damotclese 1:316582aec4fb 40 #define SPRITE_MAXIMUM_Y LCD_HEIGHT - 30
Damotclese 1:316582aec4fb 41
Damotclese 1:316582aec4fb 42 // ----------------------------------------------------------------------
Damotclese 1:316582aec4fb 43 // Function prototype this module will export
Damotclese 1:316582aec4fb 44 //
Damotclese 1:316582aec4fb 45 // ----------------------------------------------------------------------
Damotclese 1:316582aec4fb 46
Damotclese 1:316582aec4fb 47 extern void AnimationInit(void);
Damotclese 1:316582aec4fb 48 extern void AnimationPerformAnimation(uint32_t u32_randomSeeder);
Damotclese 1:316582aec4fb 49 extern void AnimationStopAnimation(void);
Damotclese 1:316582aec4fb 50
Damotclese 1:316582aec4fb 51 #endif
Damotclese 1:316582aec4fb 52
Damotclese 1:316582aec4fb 53 // End of file
Damotclese 1:316582aec4fb 54