Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI mbed-os BSP_DISCO_F429ZI
SecurityUnlockDemo-Animation.h
00001 00002 // ---------------------------------------------------------------------- 00003 // SecurityUnlockDemo-Animation.h 00004 // 00005 // Fredric L. Rice, June 2019 00006 // 00007 // ---------------------------------------------------------------------- 00008 00009 #ifndef _SECURITYUNLOCKDEMOANIMATION_H_ 00010 #define _SECURITYUNLOCKDEMOANIMATION_H_ 1 00011 00012 // ---------------------------------------------------------------------- 00013 // Defined constants that the module might use 00014 // 00015 // ---------------------------------------------------------------------- 00016 00017 #define SPRITE_HEIGHT_IN_PIXELS 17 00018 00019 // ---------------------------------------------------------------------- 00020 // We allow the following sprite movement directions 00021 // 00022 // ---------------------------------------------------------------------- 00023 #define SPRITE_DIRECTION_LEFT_UP 1 00024 #define SPRITE_DIRECTION_UP 2 00025 #define SPRITE_DIRECTION_RIGHT_UP 3 00026 #define SPRITE_DIRECTION_LEFT 4 00027 #define SPRITE_DIRECTION_NOT_VALID 5 00028 #define SPRITE_DIRECTION_RIGHT 6 00029 #define SPRITE_DIRECTION_LEFT_DOWN 7 00030 #define SPRITE_DIRECTION_DOWN 8 00031 #define SPRITE_DIRECTION_RIGHT_DOWN 9 00032 00033 // ---------------------------------------------------------------------- 00034 // We allow the sprite to move around the screen within certain boundary 00035 // positions which are defined here. 00036 // 00037 // ---------------------------------------------------------------------- 00038 #define SPRITE_MINIMUM_X 50 00039 #define SPRITE_MAXIMUM_X LCD_WIDTH - 30 00040 #define SPRITE_MINIMUM_Y 60 00041 #define SPRITE_MAXIMUM_Y LCD_HEIGHT - 30 00042 00043 // ---------------------------------------------------------------------- 00044 // Function prototype this module will export 00045 // 00046 // ---------------------------------------------------------------------- 00047 00048 extern void AnimationInit(void); 00049 extern void AnimationPerformAnimation(uint32_t u32_randomSeeder); 00050 extern void AnimationStopAnimation(void); 00051 00052 #endif 00053 00054 // End of file 00055
Generated on Fri Jul 15 2022 16:50:53 by
1.7.2