working demo, with iPhone support

Dependencies:   NeoPixels NeoStrip mbed

Fork of NeoPixels by Allen Wild

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers helper.h Source File

helper.h

00001 
00002                         
00003 //#define Connected 0x00
00004 #define PhoneDemo 0x01
00005 #define MusicDemo 0x02
00006 #define DistanceDemo 0x03
00007 #define AnimationOneDemo 0x04
00008 #define AnimationTwoDemo 0x05
00009 #define AnimationThreeDemo 0x06
00010 #define BikeDemo 0x07
00011 #define LEFT 0x08
00012 #define STOP 0x09
00013 #define RIGHT 0x0a
00014 #define LessPixelDensity 59
00015 #define MorePixelDensity 128
00016 
00017 
00018 
00019 int maskNone128[128] = {0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0,
00020                         0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0,
00021                         0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0,
00022                         0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0,
00023                         0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0,
00024                         0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0,
00025                         0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0,
00026                         0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0};
00027                         
00028 int maskLeft128[128] = {0, 0, 0, 1, 1, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0,
00029                         0, 0, 1, 1, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0,
00030                         0, 1, 1, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0,
00031                         1, 1, 1, 1, 1, 1, 1, 1,   0, 0, 0, 0, 0, 0, 0, 0,
00032                         1, 1, 1, 1, 1, 1, 1, 1,   0, 0, 0, 0, 0, 0, 0, 0,
00033                         0, 1, 1, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0,
00034                         0, 0, 1, 1, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0,
00035                         0, 0, 0, 1, 1, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0};
00036                         
00037 int maskRight128[128] ={0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 1, 1, 0, 0, 0,
00038                         0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 1, 1, 0, 0,
00039                         0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 1, 1, 0,
00040                         0, 0, 0, 0, 0, 0, 0, 0,   1, 1, 1, 1, 1, 1, 1, 1,
00041                         0, 0, 0, 0, 0, 0, 0, 0,   1, 1, 1, 1, 1, 1, 1, 1,
00042                         0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 1, 1, 0,
00043                         0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 1, 1, 0, 0,
00044                         0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 1, 1, 0, 0, 0};
00045                         
00046                         
00047                         
00048 int maskStop128[128] = {0, 0, 0, 0, 0, 0, 0, 1,   1, 0, 0, 0, 0, 0, 0, 0,
00049                         0, 0, 0, 0, 0, 0, 1, 1,   1, 1, 0, 0, 0, 0, 0, 0,
00050                         0, 0, 0, 0, 0, 1, 1, 1,   1, 1, 1, 0, 0, 0, 0, 0,
00051                         0, 0, 0, 0, 1, 1, 1, 1,   1, 1, 1, 1, 0, 0, 0, 0,
00052                         0, 0, 0, 0, 1, 1, 1, 1,   1, 1, 1, 1, 0, 0, 0, 0,
00053                         0, 0, 0, 0, 0, 1, 1, 1,   1, 1, 1, 0, 0, 0, 0, 0,
00054                         0, 0, 0, 0, 0, 0, 1, 1,   1, 1, 0, 0, 0, 0, 0, 0,
00055                         0, 0, 0, 0, 0, 0, 0, 1,   1, 0, 0, 0, 0, 0, 0, 0};
00056