Home Forums Game Frame General Discussion Purchase Just the SD Card? Reply To: Purchase Just the SD Card?

#1675
logod11
Participant

Thank you! I think this might work. Multiply and add the even rows and subtract the odd. I will try changing it to this when I get home tonight.

byte getIndex(byte x, byte y)
{
byte index;
if (y == 0)
{
index = x;
}
else if (y % 2 == 0)
{
index = y * 16 + x;
}
else
{
index = (y * 16 + 15) – x;
}
return index;
}