add iphone Support.

Dependencies:   NeoStrip mbed

Fork of Led_demo by ece4180final

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers helper.cpp Source File

helper.cpp

00001 int getIndex(int r, int c){
00002     if(c < 8){
00003         return (r * 8 + c);
00004     }else if(c > 15){
00005         return -1;      
00006     }
00007     else{
00008         return (64 + r * 8 + (c-8));
00009     }
00010 }