Simple Electronic Angle Meter and Spirit Level.

Dependencies:   MMA8452 mbed

Committer:
chushengyuan
Date:
Mon May 11 13:24:44 2015 +0000
Revision:
2:3459fbb42e67
Parent:
0:2885d4453e88
Final

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chushengyuan 0:2885d4453e88 1 /**
chushengyuan 0:2885d4453e88 2 @file main.h
chushengyuan 0:2885d4453e88 3 @brief Header file containing functions prototypes, defines and global variables.
chushengyuan 0:2885d4453e88 4 @brief Edited and compiled by Dr.Craig A. Evans.
chushengyuan 0:2885d4453e88 5 @brief Revision 1.0.
chushengyuan 0:2885d4453e88 6 @author Shengyuan Chu
chushengyuan 0:2885d4453e88 7 @date May 2015
chushengyuan 0:2885d4453e88 8 */
chushengyuan 0:2885d4453e88 9
chushengyuan 0:2885d4453e88 10 #ifndef N5110_H
chushengyuan 0:2885d4453e88 11 #define N5110_H
chushengyuan 0:2885d4453e88 12
chushengyuan 0:2885d4453e88 13 // Command Bytes - taken from Chris Yan's library
chushengyuan 0:2885d4453e88 14 // More information can be found in the display datasheet
chushengyuan 0:2885d4453e88 15 // H = 0 - Basic instructions
chushengyuan 0:2885d4453e88 16 #define CMD_DC_CLEAR_DISPLAY 0x08
chushengyuan 0:2885d4453e88 17 #define CMD_DC_NORMAL_MODE 0x0C
chushengyuan 0:2885d4453e88 18 #define CMD_DC_FILL_DISPLAY 0x09
chushengyuan 0:2885d4453e88 19 #define CMD_DC_INVERT_VIDEO 0x0D
chushengyuan 0:2885d4453e88 20 #define CMD_FS_HORIZONTAL_MODE 0x00
chushengyuan 0:2885d4453e88 21 #define CMD_FS_VERTICAL_MODE 0x02
chushengyuan 0:2885d4453e88 22 #define CMD_FS_BASIC_MODE 0x00
chushengyuan 0:2885d4453e88 23 #define CMD_FS_EXTENDED_MODE 0x01
chushengyuan 0:2885d4453e88 24 #define CMD_FS_ACTIVE_MODE 0x00
chushengyuan 0:2885d4453e88 25 #define CMD_FS_POWER_DOWN_MODE 0x04
chushengyuan 0:2885d4453e88 26 // H = 1 - Extended instructions
chushengyuan 0:2885d4453e88 27 #define CMD_TC_TEMP_0 0x04
chushengyuan 0:2885d4453e88 28 #define CMD_TC_TEMP_1 0x05
chushengyuan 0:2885d4453e88 29 #define CMD_TC_TEMP_2 0x06
chushengyuan 0:2885d4453e88 30 #define CMD_TC_TEMP_3 0x07
chushengyuan 0:2885d4453e88 31 #define CMD_BI_MUX_24 0x15
chushengyuan 0:2885d4453e88 32 #define CMD_BI_MUX_48 0x13
chushengyuan 0:2885d4453e88 33 #define CMD_BI_MUX_100 0x10
chushengyuan 0:2885d4453e88 34 #define CMD_VOP_6V06 0xB2
chushengyuan 0:2885d4453e88 35 #define CMD_VOP_7V38 0xC8
chushengyuan 0:2885d4453e88 36
chushengyuan 0:2885d4453e88 37 // number of pixels on display
chushengyuan 0:2885d4453e88 38 #define WIDTH 84
chushengyuan 0:2885d4453e88 39 #define HEIGHT 48
chushengyuan 0:2885d4453e88 40 #define BANKS 6
chushengyuan 0:2885d4453e88 41
chushengyuan 0:2885d4453e88 42 #include "mbed.h"
chushengyuan 0:2885d4453e88 43
chushengyuan 0:2885d4453e88 44 /**
chushengyuan 0:2885d4453e88 45 @brief Library for interfacing with Nokia 5110 LCD display (https://www.sparkfun.com/products/10168) using the hardware SPI on the mbed.
chushengyuan 0:2885d4453e88 46 @brief Acknowledgements to Chris Yan's Nokia_5110 Library.
chushengyuan 0:2885d4453e88 47 */
chushengyuan 0:2885d4453e88 48
chushengyuan 0:2885d4453e88 49 class N5110
chushengyuan 0:2885d4453e88 50 {
chushengyuan 0:2885d4453e88 51
chushengyuan 0:2885d4453e88 52 public:
chushengyuan 0:2885d4453e88 53 /** Create a N5110 object connected to the specified pins
chushengyuan 0:2885d4453e88 54 *
chushengyuan 0:2885d4453e88 55 * @param pwr Pin connected to Vcc on the LCD display (pin 1)
chushengyuan 0:2885d4453e88 56 * @param sce Pin connected to chip enable (pin 3)
chushengyuan 0:2885d4453e88 57 * @param rst Pin connected to reset (pin 4)
chushengyuan 0:2885d4453e88 58 * @param dc Pin connected to data/command select (pin 5)
chushengyuan 0:2885d4453e88 59 * @param mosi Pin connected to data input (MOSI) (pin 6)
chushengyuan 0:2885d4453e88 60 * @param sclk Pin connected to serial clock (SCLK) (pin 7)
chushengyuan 0:2885d4453e88 61 * @param led Pin connected to LED backlight (must be PWM) (pin 8)
chushengyuan 0:2885d4453e88 62 *
chushengyuan 0:2885d4453e88 63 */
chushengyuan 0:2885d4453e88 64 N5110(PinName pwrPin, PinName scePin, PinName rstPin, PinName dcPin, PinName mosiPin, PinName sclkPin, PinName ledPin);
chushengyuan 0:2885d4453e88 65
chushengyuan 0:2885d4453e88 66 /** Initialise display
chushengyuan 0:2885d4453e88 67 *
chushengyuan 0:2885d4453e88 68 * Powers up the display and turns on backlight (50% brightness default).
chushengyuan 0:2885d4453e88 69 * Sets the display up in horizontal addressing mode and with normal video mode.
chushengyuan 0:2885d4453e88 70 */
chushengyuan 0:2885d4453e88 71 void init();
chushengyuan 0:2885d4453e88 72
chushengyuan 0:2885d4453e88 73 /** Turn off
chushengyuan 0:2885d4453e88 74 *
chushengyuan 0:2885d4453e88 75 * Powers down the display and turns of the backlight.
chushengyuan 0:2885d4453e88 76 * Needs to be reinitialised before being re-used.
chushengyuan 0:2885d4453e88 77 */
chushengyuan 0:2885d4453e88 78 void turnOff();
chushengyuan 0:2885d4453e88 79
chushengyuan 0:2885d4453e88 80 /** Clears
chushengyuan 0:2885d4453e88 81 *
chushengyuan 0:2885d4453e88 82 * Clears the screen.
chushengyuan 0:2885d4453e88 83 */
chushengyuan 0:2885d4453e88 84 void clear();
chushengyuan 0:2885d4453e88 85
chushengyuan 0:2885d4453e88 86 /** Turn on normal video mode (default)
chushengyuan 0:2885d4453e88 87 * Black on white
chushengyuan 0:2885d4453e88 88 */
chushengyuan 0:2885d4453e88 89 void normalMode();
chushengyuan 0:2885d4453e88 90
chushengyuan 0:2885d4453e88 91 /** Turn on inverse video mode (default)
chushengyuan 0:2885d4453e88 92 * White on black
chushengyuan 0:2885d4453e88 93 */
chushengyuan 0:2885d4453e88 94 void inverseMode();
chushengyuan 0:2885d4453e88 95
chushengyuan 0:2885d4453e88 96 /** Set Brightness
chushengyuan 0:2885d4453e88 97 *
chushengyuan 0:2885d4453e88 98 * Sets brightness of LED backlight.
chushengyuan 0:2885d4453e88 99 * @param brightness - float in range 0.0 to 1.0
chushengyuan 0:2885d4453e88 100 */
chushengyuan 0:2885d4453e88 101 void setBrightness(float brightness);
chushengyuan 0:2885d4453e88 102
chushengyuan 0:2885d4453e88 103 /** Print String
chushengyuan 0:2885d4453e88 104 *
chushengyuan 0:2885d4453e88 105 * Prints a string of characters to the display. String is cut-off after the 83rd pixel.
chushengyuan 0:2885d4453e88 106 * @param x - the column number (0 to 83)
chushengyuan 0:2885d4453e88 107 * @param y - the row number (0 to 5) - the display is split into 6 banks - each bank can be considered a row
chushengyuan 0:2885d4453e88 108 */
chushengyuan 0:2885d4453e88 109 void printString(const char * str,int x,int y);
chushengyuan 0:2885d4453e88 110
chushengyuan 0:2885d4453e88 111 /** Set a Pixel
chushengyuan 0:2885d4453e88 112 *
chushengyuan 0:2885d4453e88 113 * This function sets a pixel in the display. A call to refresh() must be made
chushengyuan 0:2885d4453e88 114 * to update the display to reflect the change in pixels.
chushengyuan 0:2885d4453e88 115 * @param x - the x co-ordinate of the pixel (0 to 83)
chushengyuan 0:2885d4453e88 116 * @param y - the y co-ordinate of the pixel (0 to 47)
chushengyuan 0:2885d4453e88 117 */
chushengyuan 0:2885d4453e88 118 void setPixel(int x, int y);
chushengyuan 0:2885d4453e88 119
chushengyuan 0:2885d4453e88 120 /** Clear a Pixel
chushengyuan 0:2885d4453e88 121 *
chushengyuan 0:2885d4453e88 122 * This function clears pixel in the display. A call to refresh() must be made
chushengyuan 0:2885d4453e88 123 * to update the display to reflect the change in pixels.
chushengyuan 0:2885d4453e88 124 * @param x - the x co-ordinate of the pixel (0 to 83)
chushengyuan 0:2885d4453e88 125 * @param y - the y co-ordinate of the pixel (0 to 47)
chushengyuan 0:2885d4453e88 126 */
chushengyuan 0:2885d4453e88 127 void clearPixel(int x, int y);
chushengyuan 0:2885d4453e88 128
chushengyuan 0:2885d4453e88 129 /** Refresh display
chushengyuan 0:2885d4453e88 130 *
chushengyuan 0:2885d4453e88 131 * This functions refreshes the display to reflect the current data in the buffer.
chushengyuan 0:2885d4453e88 132 */
chushengyuan 0:2885d4453e88 133 void refresh();
chushengyuan 0:2885d4453e88 134
chushengyuan 0:2885d4453e88 135 /** Draw Circle
chushengyuan 0:2885d4453e88 136 *
chushengyuan 0:2885d4453e88 137 * This function draws a circle at the specified origin with specified radius to the display.
chushengyuan 0:2885d4453e88 138 * Uses the midpoint circle algorithm.
chushengyuan 0:2885d4453e88 139 * @see http://en.wikipedia.org/wiki/Midpoint_circle_algorithm
chushengyuan 0:2885d4453e88 140 * @param x0 - x-coordinate of centre
chushengyuan 0:2885d4453e88 141 * @param y0 - y-coordinate of centre
chushengyuan 0:2885d4453e88 142 * @param radius - radius of circle in pixels
chushengyuan 0:2885d4453e88 143 * @param fill - 0 transparent (w/outline), 1 filled black, 2 filled white (wo/outline)
chushengyuan 0:2885d4453e88 144 */
chushengyuan 0:2885d4453e88 145 void drawCircle(int x0,int y0,int radius,int fill);
chushengyuan 0:2885d4453e88 146
chushengyuan 0:2885d4453e88 147 /** Draw Line
chushengyuan 0:2885d4453e88 148 *
chushengyuan 0:2885d4453e88 149 * This function draws a line between the specified points using linear interpolation.
chushengyuan 0:2885d4453e88 150 * @param x0 - x-coordinate of first point
chushengyuan 0:2885d4453e88 151 * @param y0 - y-coordinate of first point
chushengyuan 0:2885d4453e88 152 * @param x1 - x-coordinate of last point
chushengyuan 0:2885d4453e88 153 * @param y1 - y-coordinate of last point
chushengyuan 0:2885d4453e88 154 * @param type - 0 white,1 black,2 dotted
chushengyuan 0:2885d4453e88 155 */
chushengyuan 0:2885d4453e88 156 void drawLine(int x0,int y0,int x1,int y1,int type);
chushengyuan 0:2885d4453e88 157
chushengyuan 0:2885d4453e88 158
chushengyuan 0:2885d4453e88 159
chushengyuan 0:2885d4453e88 160
chushengyuan 0:2885d4453e88 161 private:
chushengyuan 0:2885d4453e88 162
chushengyuan 0:2885d4453e88 163 void setXYAddress(int x, int y);
chushengyuan 0:2885d4453e88 164 void initSPI();
chushengyuan 0:2885d4453e88 165 void turnOn();
chushengyuan 0:2885d4453e88 166 void reset();
chushengyuan 0:2885d4453e88 167 void clearRAM();
chushengyuan 0:2885d4453e88 168 void clearBuffer();
chushengyuan 0:2885d4453e88 169 void sendCommand(unsigned char command);
chushengyuan 0:2885d4453e88 170
chushengyuan 0:2885d4453e88 171
chushengyuan 0:2885d4453e88 172 public:
chushengyuan 0:2885d4453e88 173 unsigned char buffer[84][6]; // screen buffer - the 6 is for the banks - each one is 8 bits;
chushengyuan 0:2885d4453e88 174
chushengyuan 0:2885d4453e88 175 private: // private variables
chushengyuan 0:2885d4453e88 176 SPI* spi;
chushengyuan 0:2885d4453e88 177 PwmOut* led;
chushengyuan 0:2885d4453e88 178 DigitalOut* pwr;
chushengyuan 0:2885d4453e88 179 DigitalOut* sce;
chushengyuan 0:2885d4453e88 180 DigitalOut* rst;
chushengyuan 0:2885d4453e88 181 DigitalOut* dc;
chushengyuan 0:2885d4453e88 182
chushengyuan 0:2885d4453e88 183 };
chushengyuan 0:2885d4453e88 184
chushengyuan 0:2885d4453e88 185 const unsigned char font5x7[480] = {
chushengyuan 0:2885d4453e88 186 0x00, 0x00, 0x00, 0x00, 0x00,// (space)
chushengyuan 0:2885d4453e88 187 0x00, 0x00, 0x5F, 0x00, 0x00,// !
chushengyuan 0:2885d4453e88 188 0x00, 0x07, 0x00, 0x07, 0x00,// "
chushengyuan 0:2885d4453e88 189 0x14, 0x7F, 0x14, 0x7F, 0x14,// #
chushengyuan 0:2885d4453e88 190 0x24, 0x2A, 0x7F, 0x2A, 0x12,// $
chushengyuan 0:2885d4453e88 191 0x23, 0x13, 0x08, 0x64, 0x62,// %
chushengyuan 0:2885d4453e88 192 0x36, 0x49, 0x55, 0x22, 0x50,// &
chushengyuan 0:2885d4453e88 193 0x00, 0x05, 0x03, 0x00, 0x00,// '
chushengyuan 0:2885d4453e88 194 0x00, 0x1C, 0x22, 0x41, 0x00,// (
chushengyuan 0:2885d4453e88 195 0x00, 0x41, 0x22, 0x1C, 0x00,// )
chushengyuan 0:2885d4453e88 196 0x08, 0x2A, 0x1C, 0x2A, 0x08,// *
chushengyuan 0:2885d4453e88 197 0x08, 0x08, 0x3E, 0x08, 0x08,// +
chushengyuan 0:2885d4453e88 198 0x00, 0x50, 0x30, 0x00, 0x00,// ,
chushengyuan 0:2885d4453e88 199 0x08, 0x08, 0x08, 0x08, 0x08,// -
chushengyuan 0:2885d4453e88 200 0x00, 0x60, 0x60, 0x00, 0x00,// .
chushengyuan 0:2885d4453e88 201 0x20, 0x10, 0x08, 0x04, 0x02,// /
chushengyuan 0:2885d4453e88 202 0x3E, 0x51, 0x49, 0x45, 0x3E,// 0
chushengyuan 0:2885d4453e88 203 0x00, 0x42, 0x7F, 0x40, 0x00,// 1
chushengyuan 0:2885d4453e88 204 0x42, 0x61, 0x51, 0x49, 0x46,// 2
chushengyuan 0:2885d4453e88 205 0x21, 0x41, 0x45, 0x4B, 0x31,// 3
chushengyuan 0:2885d4453e88 206 0x18, 0x14, 0x12, 0x7F, 0x10,// 4
chushengyuan 0:2885d4453e88 207 0x27, 0x45, 0x45, 0x45, 0x39,// 5
chushengyuan 0:2885d4453e88 208 0x3C, 0x4A, 0x49, 0x49, 0x30,// 6
chushengyuan 0:2885d4453e88 209 0x01, 0x71, 0x09, 0x05, 0x03,// 7
chushengyuan 0:2885d4453e88 210 0x36, 0x49, 0x49, 0x49, 0x36,// 8
chushengyuan 0:2885d4453e88 211 0x06, 0x49, 0x49, 0x29, 0x1E,// 9
chushengyuan 0:2885d4453e88 212 0x00, 0x36, 0x36, 0x00, 0x00,// :
chushengyuan 0:2885d4453e88 213 0x00, 0x56, 0x36, 0x00, 0x00,// ;
chushengyuan 0:2885d4453e88 214 0x00, 0x08, 0x14, 0x22, 0x41,// <
chushengyuan 0:2885d4453e88 215 0x14, 0x14, 0x14, 0x14, 0x14,// =
chushengyuan 0:2885d4453e88 216 0x41, 0x22, 0x14, 0x08, 0x00,// >
chushengyuan 0:2885d4453e88 217 0x02, 0x01, 0x51, 0x09, 0x06,// ?
chushengyuan 0:2885d4453e88 218 0x32, 0x49, 0x79, 0x41, 0x3E,// @
chushengyuan 0:2885d4453e88 219 0x7E, 0x11, 0x11, 0x11, 0x7E,// A
chushengyuan 0:2885d4453e88 220 0x7F, 0x49, 0x49, 0x49, 0x36,// B
chushengyuan 0:2885d4453e88 221 0x3E, 0x41, 0x41, 0x41, 0x22,// C
chushengyuan 0:2885d4453e88 222 0x7F, 0x41, 0x41, 0x22, 0x1C,// D
chushengyuan 0:2885d4453e88 223 0x7F, 0x49, 0x49, 0x49, 0x41,// E
chushengyuan 0:2885d4453e88 224 0x7F, 0x09, 0x09, 0x01, 0x01,// F
chushengyuan 0:2885d4453e88 225 0x3E, 0x41, 0x41, 0x51, 0x32,// G
chushengyuan 0:2885d4453e88 226 0x7F, 0x08, 0x08, 0x08, 0x7F,// H
chushengyuan 0:2885d4453e88 227 0x00, 0x41, 0x7F, 0x41, 0x00,// I
chushengyuan 0:2885d4453e88 228 0x20, 0x40, 0x41, 0x3F, 0x01,// J
chushengyuan 0:2885d4453e88 229 0x7F, 0x08, 0x14, 0x22, 0x41,// K
chushengyuan 0:2885d4453e88 230 0x7F, 0x40, 0x40, 0x40, 0x40,// L
chushengyuan 0:2885d4453e88 231 0x7F, 0x02, 0x04, 0x02, 0x7F,// M
chushengyuan 0:2885d4453e88 232 0x7F, 0x04, 0x08, 0x10, 0x7F,// N
chushengyuan 0:2885d4453e88 233 0x3E, 0x41, 0x41, 0x41, 0x3E,// O
chushengyuan 0:2885d4453e88 234 0x7F, 0x09, 0x09, 0x09, 0x06,// P
chushengyuan 0:2885d4453e88 235 0x3E, 0x41, 0x51, 0x21, 0x5E,// Q
chushengyuan 0:2885d4453e88 236 0x7F, 0x09, 0x19, 0x29, 0x46,// R
chushengyuan 0:2885d4453e88 237 0x46, 0x49, 0x49, 0x49, 0x31,// S
chushengyuan 0:2885d4453e88 238 0x01, 0x01, 0x7F, 0x01, 0x01,// T
chushengyuan 0:2885d4453e88 239 0x3F, 0x40, 0x40, 0x40, 0x3F,// U
chushengyuan 0:2885d4453e88 240 0x1F, 0x20, 0x40, 0x20, 0x1F,// V
chushengyuan 0:2885d4453e88 241 0x7F, 0x20, 0x18, 0x20, 0x7F,// W
chushengyuan 0:2885d4453e88 242 0x63, 0x14, 0x08, 0x14, 0x63,// X
chushengyuan 0:2885d4453e88 243 0x03, 0x04, 0x78, 0x04, 0x03,// Y
chushengyuan 0:2885d4453e88 244 0x61, 0x51, 0x49, 0x45, 0x43,// Z
chushengyuan 0:2885d4453e88 245 0x00, 0x00, 0x7F, 0x41, 0x41,// [
chushengyuan 0:2885d4453e88 246 0x02, 0x04, 0x08, 0x10, 0x20,// "\"
chushengyuan 0:2885d4453e88 247 0x41, 0x41, 0x7F, 0x00, 0x00,// ]
chushengyuan 0:2885d4453e88 248 0x04, 0x02, 0x01, 0x02, 0x04,// ^
chushengyuan 0:2885d4453e88 249 0x40, 0x40, 0x40, 0x40, 0x40,// _
chushengyuan 0:2885d4453e88 250 0x00, 0x01, 0x02, 0x04, 0x00,// `
chushengyuan 0:2885d4453e88 251 0x20, 0x54, 0x54, 0x54, 0x78,// a
chushengyuan 0:2885d4453e88 252 0x7F, 0x48, 0x44, 0x44, 0x38,// b
chushengyuan 0:2885d4453e88 253 0x38, 0x44, 0x44, 0x44, 0x20,// c
chushengyuan 0:2885d4453e88 254 0x38, 0x44, 0x44, 0x48, 0x7F,// d
chushengyuan 0:2885d4453e88 255 0x38, 0x54, 0x54, 0x54, 0x18,// e
chushengyuan 0:2885d4453e88 256 0x08, 0x7E, 0x09, 0x01, 0x02,// f
chushengyuan 0:2885d4453e88 257 0x08, 0x14, 0x54, 0x54, 0x3C,// g
chushengyuan 0:2885d4453e88 258 0x7F, 0x08, 0x04, 0x04, 0x78,// h
chushengyuan 0:2885d4453e88 259 0x00, 0x44, 0x7D, 0x40, 0x00,// i
chushengyuan 0:2885d4453e88 260 0x20, 0x40, 0x44, 0x3D, 0x00,// j
chushengyuan 0:2885d4453e88 261 0x00, 0x7F, 0x10, 0x28, 0x44,// k
chushengyuan 0:2885d4453e88 262 0x00, 0x41, 0x7F, 0x40, 0x00,// l
chushengyuan 0:2885d4453e88 263 0x7C, 0x04, 0x18, 0x04, 0x78,// m
chushengyuan 0:2885d4453e88 264 0x7C, 0x08, 0x04, 0x04, 0x78,// n
chushengyuan 0:2885d4453e88 265 0x38, 0x44, 0x44, 0x44, 0x38,// o
chushengyuan 0:2885d4453e88 266 0x7C, 0x14, 0x14, 0x14, 0x08,// p
chushengyuan 0:2885d4453e88 267 0x08, 0x14, 0x14, 0x18, 0x7C,// q
chushengyuan 0:2885d4453e88 268 0x7C, 0x08, 0x04, 0x04, 0x08,// r
chushengyuan 0:2885d4453e88 269 0x48, 0x54, 0x54, 0x54, 0x20,// s
chushengyuan 0:2885d4453e88 270 0x04, 0x3F, 0x44, 0x40, 0x20,// t
chushengyuan 0:2885d4453e88 271 0x3C, 0x40, 0x40, 0x20, 0x7C,// u
chushengyuan 0:2885d4453e88 272 0x1C, 0x20, 0x40, 0x20, 0x1C,// v
chushengyuan 0:2885d4453e88 273 0x3C, 0x40, 0x30, 0x40, 0x3C,// w
chushengyuan 0:2885d4453e88 274 0x44, 0x28, 0x10, 0x28, 0x44,// x
chushengyuan 0:2885d4453e88 275 0x0C, 0x50, 0x50, 0x50, 0x3C,// y
chushengyuan 0:2885d4453e88 276 0x44, 0x64, 0x54, 0x4C, 0x44,// z
chushengyuan 0:2885d4453e88 277 0x00, 0x08, 0x36, 0x41, 0x00,// {
chushengyuan 0:2885d4453e88 278 0x00, 0x00, 0x7F, 0x00, 0x00,// |
chushengyuan 0:2885d4453e88 279 0x00, 0x41, 0x36, 0x08, 0x00,// }
chushengyuan 0:2885d4453e88 280 0x08, 0x08, 0x2A, 0x1C, 0x08,// ->
chushengyuan 0:2885d4453e88 281 0x08, 0x1C, 0x2A, 0x08, 0x08 // <-
chushengyuan 0:2885d4453e88 282 };
chushengyuan 0:2885d4453e88 283
chushengyuan 0:2885d4453e88 284 #endif