this is the library of the code of the second laboration.
Dependencies: SILABS_RHT mbed MemoryLCD
Diff: Animation/Animation.h
- Revision:
- 0:33ae04d01fd6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Animation/Animation.h Fri Sep 04 11:39:49 2020 +0000 @@ -0,0 +1,163 @@ +/***************************************************************************//** + * @file Animation.h + * @brief Header file for spinning dodecaeder animation on MBED + ******************************************************************************* + * @section License + * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b> + ******************************************************************************* + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + * + * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no + * obligation to support this Software. Silicon Labs is providing the + * Software "AS IS", with no express or implied warranties of any kind, + * including, but not limited to, any implied warranties of merchantability + * or fitness for any particular purpose or warranties against infringement + * of any proprietary rights of a third party. + * + * Silicon Labs will not be liable for any consequential, incidental, or + * special damages, or any other relief, or for any claim by any third party, + * arising from your use of this Software. + * + ******************************************************************************/ +#ifndef SILABS_ANIMATION_H +#define SILABS_ANIMATION_H + +#include "GUI.h" + +typedef const GUI_BITMAP *pBitmap; +#define GUI_CONST_STORAGE const +#define NUM_FRAMES 5 + +extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca1; +extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca2; +extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca3; +extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca4; +extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca5; +extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca6; +extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca7; +extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca8; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca9; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca10; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca11; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca12; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca13; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca14; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca15; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca16; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca17; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca18; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca19; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca20; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca21; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca22; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca23; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca24; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca25; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca26; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca27; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca28; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca29; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca30; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca31; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca32; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca33; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca34; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca35; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca36; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca37; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca38; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca39; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca40; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca41; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca42; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca43; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca44; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca45; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca46; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca47; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca48; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca49; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca50; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca51; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca52; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca53; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca54; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca55; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca56; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca57; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca58; +//extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca59; +extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca60; + +pBitmap frames[] = {&bmdodeca1, +&bmdodeca2, +&bmdodeca3, +&bmdodeca4, +&bmdodeca5, +//&bmdodeca6, +//&bmdodeca7, +//&bmdodeca8, +//&bmdodeca9, +//&bmdodeca10, +//&bmdodeca11, +//&bmdodeca12, +//&bmdodeca13, +//&bmdodeca14, +//&bmdodeca15, +//&bmdodeca16, +//&bmdodeca17, +//&bmdodeca18, +//&bmdodeca19, +//&bmdodeca20, +//&bmdodeca21, +//&bmdodeca22, +//&bmdodeca23, +//&bmdodeca24, +//&bmdodeca25, +//&bmdodeca26, +//&bmdodeca27, +//&bmdodeca28, +//&bmdodeca29, +//&bmdodeca30, +//&bmdodeca31, +//&bmdodeca32, +//&bmdodeca33, +//&bmdodeca34, +//&bmdodeca35, +//&bmdodeca36, +//&bmdodeca37, +//&bmdodeca38, +//&bmdodeca39, +//&bmdodeca40, +//&bmdodeca41, +//&bmdodeca42, +//&bmdodeca43, +//&bmdodeca44, +//&bmdodeca45, +//&bmdodeca46, +//&bmdodeca47, +//&bmdodeca48, +//&bmdodeca49, +//&bmdodeca50, +//&bmdodeca51, +//&bmdodeca52, +//&bmdodeca53, +//&bmdodeca54, +//&bmdodeca55, +//&bmdodeca56, +//&bmdodeca57, +//&bmdodeca58, +//&bmdodeca59, +//&bmdodeca60 +}; +#endif +