62 #define FONT font_x6x13
65 #define DISPLAY_WIDTH BOARD_LCD.PPL
66 #define DISPLAY_HEIGHT BOARD_LCD.LPP
83 UNS_16 xgs, ygs = 0, curx, cury = 0, curym, xidx;
85 int oldballx, oldbally, ballx, bally, balldx, balldy;
107 for (idx = 0; idx <= xgs; idx++) {
117 curym = cury + (ygs - 1);
120 for (idx = 0; idx <= xgs; idx++) {
132 curym = cury + (ygs - 1);
137 for (idx = 0; idx <= xgs; idx++) {
160 oldballx = ballx = 0;
161 oldbally = bally = 0;
167 if (ballx >= win1.
xvsize) {
168 balldx *= -1, ballx += balldx;
171 balldx *= -1, ballx += balldx;
175 if (bally >= win1.
yvsize) {
176 balldy *= -1, bally += balldy;
179 balldy *= -1, bally += balldy;
233 NVIC_EnableIRQ(LCD_IRQn);