73 #define FONT font_x6x13
76 #define DISPLAY_WIDTH BOARD_LCD.PPL
77 #define DISPLAY_HEIGHT BOARD_LCD.LPP
94 UNS_16 xgs, ygs = 0, curx, cury = 0, curym, xidx;
96 int oldballx, oldbally, ballx, bally, balldx, balldy;
118 for (idx = 0; idx <= xgs; idx++) {
128 curym = cury + (ygs - 1);
131 for (idx = 0; idx <= xgs; idx++) {
143 curym = cury + (ygs - 1);
148 for (idx = 0; idx <= xgs; idx++) {
171 oldballx = ballx = 0;
172 oldbally = bally = 0;
178 if (ballx >= win1.
xvsize) {
179 balldx *= -1, ballx += balldx;
182 balldx *= -1, ballx += balldx;
186 if (bally >= win1.
yvsize) {
187 balldy *= -1, bally += balldy;
190 balldy *= -1, bally += balldy;
243 NVIC_EnableIRQ(LCD_IRQn);