Home › Forums › Game Frame › General Discussion › Purchase Just the SD Card? › Reply To: Purchase Just the SD Card?
		December 16, 2014 at 7:35 pm
		
		#1675
		
		
		
	
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;
}
‘
