Revision 94
not working, need to fix errors
lab5/lab5.c | ||
---|---|---|
5 | 5 |
#include <stdint.h> |
6 | 6 |
#include <stdio.h> |
7 | 7 |
|
8 |
#include "graphics.h" |
|
9 |
#include "graphics_macros.h" |
|
10 |
|
|
8 | 11 |
// Any header files included below this line should have been created by you |
9 | 12 |
|
10 | 13 |
int main(int argc, char *argv[]) { |
... | ... | |
32 | 35 |
} |
33 | 36 |
|
34 | 37 |
int(video_test_init)(uint16_t mode, uint8_t delay) { |
35 |
/* To be completed */ |
|
36 |
printf("%s(0x%03x, %u): under construction\n", __func__, mode, delay); |
|
37 | 38 |
|
38 |
return 1; |
|
39 |
set_graphics_mode(mode); |
|
40 |
|
|
41 |
tickdelay(micros_to_ticks(delay)); |
|
42 |
|
|
43 |
vg_exit(); |
|
44 |
return 0; |
|
39 | 45 |
} |
40 | 46 |
|
41 | 47 |
int(video_test_rectangle)(uint16_t mode, uint16_t x, uint16_t y, |
Also available in: Unified diff