-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplay_test.c
More file actions
29 lines (22 loc) · 788 Bytes
/
display_test.c
File metadata and controls
29 lines (22 loc) · 788 Bytes
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
//******************************************************************************
#include "display.h"
#include <stdlib.h>
#include <assert.h>
//******************************************************************************
int main(int ac, const char *av[])
{
int display_select
= ac == 1 ? DISPLAY_SELECT_GX | DISPLAY_SELECT_SP
: av[1][0] == 'g' ? DISPLAY_SELECT_GX
: av[1][0] == 's' ? DISPLAY_SELECT_SP
: 0;
display_create(display_select);
for (int i = 0; i < 36; i++)
display_set_virt(i, i, true);
for (int i = 1; i <= 36; i++)
display_set_virt(DISPLAY_WIDTH - i, DISPLAY_HEIGHT_VIRT - i, true);
display_flush();
display_wait();
display_free();
}
//******************************************************************************