add iphone Support.

Dependencies:   NeoStrip mbed

Fork of Led_demo by ece4180final

helper.cpp

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

File content as of revision 3:bf21ec069402:

int getIndex(int r, int c){
    if(c < 8){
        return (r * 8 + c);
    }else if(c > 15){
        return -1;      
    }
    else{
        return (64 + r * 8 + (c-8));
    }
}