-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay.h
51 lines (41 loc) · 1.2 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* File: display.h
* Author: Bruno
*
* Created on 10 février 2015, 12:45
*/
#ifndef DISPLAY_H
#define DISPLAY_H
#include "bool.h"
#include "font.h"
#define CURSOR_HALF_PERIOD 30
#define COLOR_BLACK 0x00
#define COLOR_WHITE 0xFF
#define COLUMNS 80
#define ROWS 30
#define FRAME_SIZE 9600
extern char __attribute__((far,noload)) frame[FRAME_SIZE];
extern volatile char* frame_ptr;
extern volatile char vsync_flag;
extern unsigned char cursor_x, cursor_y;
void display_set_background_color(unsigned char c);
void display_set_foreground_color(unsigned char c);
void display_invert_cursor();
void display_vsync_cursor_blinking();
void display_reset();
void display_clear_line();
void display_clear_screen();
void display_clear_cursor();
void display_put_map(unsigned char c);
void display_put_char(unsigned char c);
void display_move_cursor_right();
void display_move_cursor_left();
void display_move_cursor_up();
void display_move_cursor_down();
void display_set_scroll_area(unsigned char top, unsigned char bottom);
void display_set_cursor(unsigned char x, unsigned char y);
void display_scroll_up();
void display_scroll_down();
void display_show_cursor();
void display_hide_cursor();
#endif /* DISPLAY_H */