#include "GameBoy.h"
GameBoy gb;
int x = 5;
int y = 5;
int lenTail = 0; /**/
int xTail[8*8*2]; /**/
int yTail[8*8*2]; /**/
void setup() {
gb.begin(0);
Serial.begin(9600);
}
void loop() {
gb.clearDisplay();
//Serial.println(gb.getKey);
gb. setLed(x,y,true);
if(gb.getKey()==5 and x<7) x++;
if(gb.getKey()==4 and x>0) x--;
if(gb.getKey()==6 and x<15) y++;
if(gb.getKey()==3 and x<0) y--;
delay(80);
}