working demo, with iPhone support

Dependencies:   NeoPixels NeoStrip mbed

Fork of NeoPixels by Allen Wild

Committer:
zchen311
Date:
Mon Apr 28 02:20:46 2014 +0000
Revision:
2:b322ea7290a5
working demo with iphone support

Who changed what in which revision?

UserRevisionLine numberNew contents of line
zchen311 2:b322ea7290a5 1
zchen311 2:b322ea7290a5 2
zchen311 2:b322ea7290a5 3 //#define Connected 0x00
zchen311 2:b322ea7290a5 4 #define PhoneDemo 0x01
zchen311 2:b322ea7290a5 5 #define MusicDemo 0x02
zchen311 2:b322ea7290a5 6 #define DistanceDemo 0x03
zchen311 2:b322ea7290a5 7 #define AnimationOneDemo 0x04
zchen311 2:b322ea7290a5 8 #define AnimationTwoDemo 0x05
zchen311 2:b322ea7290a5 9 #define AnimationThreeDemo 0x06
zchen311 2:b322ea7290a5 10 #define BikeDemo 0x07
zchen311 2:b322ea7290a5 11 #define LEFT 0x08
zchen311 2:b322ea7290a5 12 #define STOP 0x09
zchen311 2:b322ea7290a5 13 #define RIGHT 0x0a
zchen311 2:b322ea7290a5 14 #define LessPixelDensity 59
zchen311 2:b322ea7290a5 15 #define MorePixelDensity 128
zchen311 2:b322ea7290a5 16
zchen311 2:b322ea7290a5 17
zchen311 2:b322ea7290a5 18
zchen311 2:b322ea7290a5 19 int maskNone128[128] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 20 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 21 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 22 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 23 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 24 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 25 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 26 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
zchen311 2:b322ea7290a5 27
zchen311 2:b322ea7290a5 28 int maskLeft128[128] = {0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 29 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 30 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 31 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 32 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 33 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 34 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 35 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
zchen311 2:b322ea7290a5 36
zchen311 2:b322ea7290a5 37 int maskRight128[128] ={0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0,
zchen311 2:b322ea7290a5 38 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0,
zchen311 2:b322ea7290a5 39 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0,
zchen311 2:b322ea7290a5 40 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1,
zchen311 2:b322ea7290a5 41 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1,
zchen311 2:b322ea7290a5 42 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0,
zchen311 2:b322ea7290a5 43 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0,
zchen311 2:b322ea7290a5 44 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0};
zchen311 2:b322ea7290a5 45
zchen311 2:b322ea7290a5 46
zchen311 2:b322ea7290a5 47
zchen311 2:b322ea7290a5 48 int maskStop128[128] = {0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 49 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 50 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 51 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 52 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 53 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 54 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
zchen311 2:b322ea7290a5 55 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0};
zchen311 2:b322ea7290a5 56