add iphone Support.

Dependencies:   NeoStrip mbed

Fork of Led_demo by ece4180final

helper.h

Committer:
zchen78
Date:
2014-04-25
Revision:
3:bf21ec069402
Parent:
2:0d37843b8283

File content as of revision 3:bf21ec069402:

int maskNone[60] =    { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
                        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
                        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
                        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
                        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
                        
int maskLeft[60] =    { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
                        0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
                        1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 
                        0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
                        0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0};
                        
int maskRight[60] =   { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 
                        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 
                        0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 
                        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 
                        0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0};
                        
 
int maskStop[60] =    { 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 
                        0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 
                        0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 
                        0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 
                        0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0};
                        
                        
//#define Connected 0x00
#define PhoneDemo 0x01
#define MusicDemo 0x02
#define DistanceDemo 0x03
#define AnimationOneDemo 0x04
#define AnimationTwoDemo 0x05
#define AnimationThreeDemo 0x06
#define BikeDemo 0x07
#define LEFT 0x08
#define STOP 0x09
#define RIGHT 0x0a
#define LessPixelDensity 59
#define MorePixelDensity 128



int getIndex(int r, int c);