File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
lectures/Framebuffer/code Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ static void clear_int_by_int_green(void) {
43
43
int npixels = module .width * module .height ;
44
44
for (int i = 0 ; i < npixels ; i ++ ) {
45
45
* im ++ = 0xff00ff00 ; // green
46
- timer_delay_us (1 );
47
46
}
48
47
}
49
48
@@ -70,7 +69,7 @@ void main(void) {
70
69
71
70
printf ("Screen size %d x %d\n" , hdmi_get_screen_width (), hdmi_get_screen_height ());
72
71
printf ("Framebuffer size %d x %d\n" , module .width , module .height );
73
- // clear_char_by_char();
72
+ clear_char_by_char ();
74
73
while (1 ) {
75
74
if (!confirm ("clear to white, char by char" )) break ;
76
75
clear_char_by_char ();
Original file line number Diff line number Diff line change 4
4
5
5
void main (void ) {
6
6
uart_init ();
7
- gl_init (800 , 600 , GL_DOUBLEBUFFER ); // change to GL_DOUBLEBUFFER instead
7
+ gl_init (800 , 600 , GL_SINGLEBUFFER ); // change to GL_DOUBLEBUFFER instead
8
8
9
9
printf ("Enter any key to exit: " );
10
10
while (!uart_haschar ()) {
You can’t perform that action at this time.
0 commit comments