this is the library of the code of the second laboration.

Dependencies:   SILABS_RHT mbed MemoryLCD

Committer:
mara1802
Date:
Fri Sep 04 11:39:49 2020 +0000
Revision:
0:33ae04d01fd6
lab2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mara1802 0:33ae04d01fd6 1 /***************************************************************************//**
mara1802 0:33ae04d01fd6 2 * @file Animation.h
mara1802 0:33ae04d01fd6 3 * @brief Header file for spinning dodecaeder animation on MBED
mara1802 0:33ae04d01fd6 4 *******************************************************************************
mara1802 0:33ae04d01fd6 5 * @section License
mara1802 0:33ae04d01fd6 6 * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
mara1802 0:33ae04d01fd6 7 *******************************************************************************
mara1802 0:33ae04d01fd6 8 *
mara1802 0:33ae04d01fd6 9 * Permission is granted to anyone to use this software for any purpose,
mara1802 0:33ae04d01fd6 10 * including commercial applications, and to alter it and redistribute it
mara1802 0:33ae04d01fd6 11 * freely, subject to the following restrictions:
mara1802 0:33ae04d01fd6 12 *
mara1802 0:33ae04d01fd6 13 * 1. The origin of this software must not be misrepresented; you must not
mara1802 0:33ae04d01fd6 14 * claim that you wrote the original software.
mara1802 0:33ae04d01fd6 15 * 2. Altered source versions must be plainly marked as such, and must not be
mara1802 0:33ae04d01fd6 16 * misrepresented as being the original software.
mara1802 0:33ae04d01fd6 17 * 3. This notice may not be removed or altered from any source distribution.
mara1802 0:33ae04d01fd6 18 *
mara1802 0:33ae04d01fd6 19 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no
mara1802 0:33ae04d01fd6 20 * obligation to support this Software. Silicon Labs is providing the
mara1802 0:33ae04d01fd6 21 * Software "AS IS", with no express or implied warranties of any kind,
mara1802 0:33ae04d01fd6 22 * including, but not limited to, any implied warranties of merchantability
mara1802 0:33ae04d01fd6 23 * or fitness for any particular purpose or warranties against infringement
mara1802 0:33ae04d01fd6 24 * of any proprietary rights of a third party.
mara1802 0:33ae04d01fd6 25 *
mara1802 0:33ae04d01fd6 26 * Silicon Labs will not be liable for any consequential, incidental, or
mara1802 0:33ae04d01fd6 27 * special damages, or any other relief, or for any claim by any third party,
mara1802 0:33ae04d01fd6 28 * arising from your use of this Software.
mara1802 0:33ae04d01fd6 29 *
mara1802 0:33ae04d01fd6 30 ******************************************************************************/
mara1802 0:33ae04d01fd6 31 #ifndef SILABS_ANIMATION_H
mara1802 0:33ae04d01fd6 32 #define SILABS_ANIMATION_H
mara1802 0:33ae04d01fd6 33
mara1802 0:33ae04d01fd6 34 #include "GUI.h"
mara1802 0:33ae04d01fd6 35
mara1802 0:33ae04d01fd6 36 typedef const GUI_BITMAP *pBitmap;
mara1802 0:33ae04d01fd6 37 #define GUI_CONST_STORAGE const
mara1802 0:33ae04d01fd6 38 #define NUM_FRAMES 5
mara1802 0:33ae04d01fd6 39
mara1802 0:33ae04d01fd6 40 extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca1;
mara1802 0:33ae04d01fd6 41 extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca2;
mara1802 0:33ae04d01fd6 42 extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca3;
mara1802 0:33ae04d01fd6 43 extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca4;
mara1802 0:33ae04d01fd6 44 extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca5;
mara1802 0:33ae04d01fd6 45 extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca6;
mara1802 0:33ae04d01fd6 46 extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca7;
mara1802 0:33ae04d01fd6 47 extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca8;
mara1802 0:33ae04d01fd6 48 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca9;
mara1802 0:33ae04d01fd6 49 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca10;
mara1802 0:33ae04d01fd6 50 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca11;
mara1802 0:33ae04d01fd6 51 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca12;
mara1802 0:33ae04d01fd6 52 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca13;
mara1802 0:33ae04d01fd6 53 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca14;
mara1802 0:33ae04d01fd6 54 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca15;
mara1802 0:33ae04d01fd6 55 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca16;
mara1802 0:33ae04d01fd6 56 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca17;
mara1802 0:33ae04d01fd6 57 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca18;
mara1802 0:33ae04d01fd6 58 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca19;
mara1802 0:33ae04d01fd6 59 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca20;
mara1802 0:33ae04d01fd6 60 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca21;
mara1802 0:33ae04d01fd6 61 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca22;
mara1802 0:33ae04d01fd6 62 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca23;
mara1802 0:33ae04d01fd6 63 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca24;
mara1802 0:33ae04d01fd6 64 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca25;
mara1802 0:33ae04d01fd6 65 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca26;
mara1802 0:33ae04d01fd6 66 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca27;
mara1802 0:33ae04d01fd6 67 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca28;
mara1802 0:33ae04d01fd6 68 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca29;
mara1802 0:33ae04d01fd6 69 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca30;
mara1802 0:33ae04d01fd6 70 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca31;
mara1802 0:33ae04d01fd6 71 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca32;
mara1802 0:33ae04d01fd6 72 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca33;
mara1802 0:33ae04d01fd6 73 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca34;
mara1802 0:33ae04d01fd6 74 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca35;
mara1802 0:33ae04d01fd6 75 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca36;
mara1802 0:33ae04d01fd6 76 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca37;
mara1802 0:33ae04d01fd6 77 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca38;
mara1802 0:33ae04d01fd6 78 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca39;
mara1802 0:33ae04d01fd6 79 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca40;
mara1802 0:33ae04d01fd6 80 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca41;
mara1802 0:33ae04d01fd6 81 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca42;
mara1802 0:33ae04d01fd6 82 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca43;
mara1802 0:33ae04d01fd6 83 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca44;
mara1802 0:33ae04d01fd6 84 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca45;
mara1802 0:33ae04d01fd6 85 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca46;
mara1802 0:33ae04d01fd6 86 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca47;
mara1802 0:33ae04d01fd6 87 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca48;
mara1802 0:33ae04d01fd6 88 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca49;
mara1802 0:33ae04d01fd6 89 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca50;
mara1802 0:33ae04d01fd6 90 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca51;
mara1802 0:33ae04d01fd6 91 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca52;
mara1802 0:33ae04d01fd6 92 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca53;
mara1802 0:33ae04d01fd6 93 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca54;
mara1802 0:33ae04d01fd6 94 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca55;
mara1802 0:33ae04d01fd6 95 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca56;
mara1802 0:33ae04d01fd6 96 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca57;
mara1802 0:33ae04d01fd6 97 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca58;
mara1802 0:33ae04d01fd6 98 //extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca59;
mara1802 0:33ae04d01fd6 99 extern GUI_CONST_STORAGE GUI_BITMAP bmdodeca60;
mara1802 0:33ae04d01fd6 100
mara1802 0:33ae04d01fd6 101 pBitmap frames[] = {&bmdodeca1,
mara1802 0:33ae04d01fd6 102 &bmdodeca2,
mara1802 0:33ae04d01fd6 103 &bmdodeca3,
mara1802 0:33ae04d01fd6 104 &bmdodeca4,
mara1802 0:33ae04d01fd6 105 &bmdodeca5,
mara1802 0:33ae04d01fd6 106 //&bmdodeca6,
mara1802 0:33ae04d01fd6 107 //&bmdodeca7,
mara1802 0:33ae04d01fd6 108 //&bmdodeca8,
mara1802 0:33ae04d01fd6 109 //&bmdodeca9,
mara1802 0:33ae04d01fd6 110 //&bmdodeca10,
mara1802 0:33ae04d01fd6 111 //&bmdodeca11,
mara1802 0:33ae04d01fd6 112 //&bmdodeca12,
mara1802 0:33ae04d01fd6 113 //&bmdodeca13,
mara1802 0:33ae04d01fd6 114 //&bmdodeca14,
mara1802 0:33ae04d01fd6 115 //&bmdodeca15,
mara1802 0:33ae04d01fd6 116 //&bmdodeca16,
mara1802 0:33ae04d01fd6 117 //&bmdodeca17,
mara1802 0:33ae04d01fd6 118 //&bmdodeca18,
mara1802 0:33ae04d01fd6 119 //&bmdodeca19,
mara1802 0:33ae04d01fd6 120 //&bmdodeca20,
mara1802 0:33ae04d01fd6 121 //&bmdodeca21,
mara1802 0:33ae04d01fd6 122 //&bmdodeca22,
mara1802 0:33ae04d01fd6 123 //&bmdodeca23,
mara1802 0:33ae04d01fd6 124 //&bmdodeca24,
mara1802 0:33ae04d01fd6 125 //&bmdodeca25,
mara1802 0:33ae04d01fd6 126 //&bmdodeca26,
mara1802 0:33ae04d01fd6 127 //&bmdodeca27,
mara1802 0:33ae04d01fd6 128 //&bmdodeca28,
mara1802 0:33ae04d01fd6 129 //&bmdodeca29,
mara1802 0:33ae04d01fd6 130 //&bmdodeca30,
mara1802 0:33ae04d01fd6 131 //&bmdodeca31,
mara1802 0:33ae04d01fd6 132 //&bmdodeca32,
mara1802 0:33ae04d01fd6 133 //&bmdodeca33,
mara1802 0:33ae04d01fd6 134 //&bmdodeca34,
mara1802 0:33ae04d01fd6 135 //&bmdodeca35,
mara1802 0:33ae04d01fd6 136 //&bmdodeca36,
mara1802 0:33ae04d01fd6 137 //&bmdodeca37,
mara1802 0:33ae04d01fd6 138 //&bmdodeca38,
mara1802 0:33ae04d01fd6 139 //&bmdodeca39,
mara1802 0:33ae04d01fd6 140 //&bmdodeca40,
mara1802 0:33ae04d01fd6 141 //&bmdodeca41,
mara1802 0:33ae04d01fd6 142 //&bmdodeca42,
mara1802 0:33ae04d01fd6 143 //&bmdodeca43,
mara1802 0:33ae04d01fd6 144 //&bmdodeca44,
mara1802 0:33ae04d01fd6 145 //&bmdodeca45,
mara1802 0:33ae04d01fd6 146 //&bmdodeca46,
mara1802 0:33ae04d01fd6 147 //&bmdodeca47,
mara1802 0:33ae04d01fd6 148 //&bmdodeca48,
mara1802 0:33ae04d01fd6 149 //&bmdodeca49,
mara1802 0:33ae04d01fd6 150 //&bmdodeca50,
mara1802 0:33ae04d01fd6 151 //&bmdodeca51,
mara1802 0:33ae04d01fd6 152 //&bmdodeca52,
mara1802 0:33ae04d01fd6 153 //&bmdodeca53,
mara1802 0:33ae04d01fd6 154 //&bmdodeca54,
mara1802 0:33ae04d01fd6 155 //&bmdodeca55,
mara1802 0:33ae04d01fd6 156 //&bmdodeca56,
mara1802 0:33ae04d01fd6 157 //&bmdodeca57,
mara1802 0:33ae04d01fd6 158 //&bmdodeca58,
mara1802 0:33ae04d01fd6 159 //&bmdodeca59,
mara1802 0:33ae04d01fd6 160 //&bmdodeca60
mara1802 0:33ae04d01fd6 161 };
mara1802 0:33ae04d01fd6 162 #endif
mara1802 0:33ae04d01fd6 163