-
Notifications
You must be signed in to change notification settings - Fork 0
/
display.h
32 lines (23 loc) · 972 Bytes
/
display.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//******************************************************************************
#pragma once
#include <stdbool.h>
#define DISPLAY_TILE_SIZE 8
#define DISPLAY_TILES_HORIZ 56
#define DISPLAY_TILES_VERT 20
#define DISPLAY_SEPARATOR_WIDTH 4
#define DISPLAY_WIDTH (DISPLAY_TILES_HORIZ * DISPLAY_TILE_SIZE) // 448
#define DISPLAY_HEIGHT (DISPLAY_TILES_VERT * DISPLAY_TILE_SIZE) // 160
#define DISPLAY_HEIGHT_VIRT (DISPLAY_HEIGHT \
+ (DISPLAY_TILES_VERT - 1) * DISPLAY_SEPARATOR_WIDTH) // 236
#define DISPLAY_SELECT_GX 1
#define DISPLAY_SELECT_SP 2
//******************************************************************************
void display_create(int select);
void display_free(void);
void display_set(int x, int y, bool value);
void display_set_virt(int x, int y, bool value);
void display_clear(void);
void display_flush(void);
int display_button(void);
int display_wait(void);
//******************************************************************************