예제 #1
0
void placePlayerMark(short x, short y, short player) {
	char xOff = 21 * x + 43, yOff = 21 * y + 10;
	fields[x][y] = player;
	if (player == 1) {
		lcd_drawLine(xOff - 5, yOff - 5, xOff + 5, yOff + 5, 1);
		lcd_drawLine(xOff - 5, yOff + 5, xOff + 5, yOff - 5, 1);
	}
	if (player == 2) {
		lcd_drawCircle(xOff, yOff, 5, 1, 0);
	}
}
예제 #2
0
void lcd_fillCircle(uint8_t center_x, uint8_t center_y, uint8_t radius,
                    uint8_t color) {
  for (uint8_t i = 0; i <= radius; i++) {
    lcd_drawCircle(center_x, center_y, i, color);
  }
}