tetris/canvas.h

25 lines
360 B
C
Raw Normal View History

2024-03-08 09:57:47 +01:00
#ifndef _CANVAS_H_
#define _CANVAS_H_
#include <stdint.h>
#define CANVAS_WIDTH 10
#define CANVAS_HEIGHT 6
typedef struct {
uint8_t width;
uint8_t height;
uint8_t size;
uint8_t *canvas;
} canvas_t;
void canvasInit();
canvas_t *canvasGet();
void canvasShow();
2024-03-08 14:07:09 +01:00
void canvasSetPixel(uint8_t column, uint8_t row, uint8_t color);
2024-03-08 09:57:47 +01:00
#endif // _CANVAS_H_