Comm.openTCPIP(1, "192.168.1.1",9750) DIM img AS imageview img=graphics.newimageview(240,10) img.loaDIMage("aBot.jpg") System.showGraphics system.setallowedorientations(8) while(1) a=sensors.accel x = 200 * a(1) +50 y = 200 * a(2) +50 if x > 35 then b = 1 else if x < -35 then b = 3 else b= 2 end if print #1 ,b system.wait(.5) system.clearconsole wend