-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplay_graphix_test.c
More file actions
37 lines (28 loc) · 908 Bytes
/
display_graphix_test.c
File metadata and controls
37 lines (28 loc) · 908 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
30
31
32
33
34
35
36
37
//******************************************************************************
#include "display_graphix.h"
#include "graphix.h"
#include "sp.h"
#include <stdlib.h>
#include <stdbool.h>
//******************************************************************************
int main(void)
{
graphix gx = display_graphix_create();
for (int i = 0; i < 8; i++)
display_graphix_set(gx, i, i, true);
for (int i = 1; i <= 8; i++)
display_graphix_set(gx, SP_WIDTH - i, SP_HEIGHT - i, true);
graphix_flush(gx);
graphix_wait(gx);
for (sp_size y = 0; y < SP_HEIGHT; y++)
for (sp_size x = 0; x < SP_WIDTH; x++)
display_graphix_set(gx, x, y, true);
graphix_flush(gx);
graphix_wait(gx);
display_graphix_clear(gx);
graphix_flush(gx);
graphix_wait(gx);
graphix_free(gx);
return EXIT_SUCCESS;
}
//******************************************************************************