game-ctrl merged

This commit is contained in:
2024-03-14 11:10:18 +01:00
parent 349c93b68f
commit 1959a3f578
40 changed files with 0 additions and 0 deletions

27
game-ctrl/canvas.h Normal file
View File

@ -0,0 +1,27 @@
#ifndef _CANVAS_H_
#define _CANVAS_H_
#include <stdint.h>
#define CANVAS_WIDTH 10
#define CANVAS_HEIGHT 11
typedef struct {
const uint8_t width;
const uint8_t height;
const uint8_t size;
uint8_t * const canvas;
} canvas_t;
void canvasInit();
void canvasClear();
void canvasSetAll(uint8_t color);
void canvasShow();
void canvasSetPixel(uint8_t column, uint8_t row, uint8_t color);
void canvasWipeRow(uint8_t row);
uint8_t canvasIsRowFilled(uint8_t row);
extern const canvas_t canvas;
#endif // _CANVAS_H_