MemLCD-Temperature-Humidity-Demo: This is an example program for the Happy Gecko starter kit, which includes an on-board Sharp memory LCD, and a Silicon Labs si7021 relative humidity and temperature sensor.

Dependencies:   MemoryLCD SILABS_RHT mbed

Demo of memory LCD and RHT library

Demo running on Happy Gecko starter kit

This demo is meant to run on a Silicon Labs EFM32 Happy Gecko Starter Kit, and will demonstrate the use of the Memory LCD and si70xx sensor libraries. It can exclusively be used with the low-power version of mbed.

For documentation on the libraries, please refer to the respective library pages.

Information

All examples in this repo are considered EXPERIMENTAL QUALITY, meaning this code has been created as one-off proof-of-concept and is suitable as a demonstration for experimental purposes only. This code will not be regularly maintained by Silicon Labs and there is no guarantee that these projects will work across all environments, SDK versions and hardware.

Committer:
stevew817
Date:
Fri Apr 17 14:55:18 2015 +0000
Revision:
0:42249df8c223
Initial upload;

Who changed what in which revision?

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