Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
107 | mikeljo | 1 | |
2 | #ifndef graphics_h |
||
3 | #define graphics_h |
||
4 | |||
5 | void lcd_init (void); |
||
6 | void lcd_plot (uint8_t x, uint8_t y, uint8_t mode); |
||
7 | void lcd_rect (uint8_t x1, uint8_t y1, uint8_t widthx, uint8_t widthy,uint8_t mode); |
||
8 | void lcd_frect (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t mode); |
||
9 | void draw_circle(int16_t x0, int16_t y0, int16_t radius, uint8_t mode); |
||
10 | void draw_fcircle(int16_t x0, int16_t y0, int16_t radius); |
||
11 | void put_char (uint8_t x, uint8_t y, uint8_t c, uint8_t mode); |
||
12 | void lcd_line(unsigned char x1, unsigned char y1, unsigned char x2, unsigned char y2, uint8_t mode); |
||
13 | void send_byte (uint8_t data); |
||
14 | void lcd_print(uint8_t *text, uint8_t mode); |
||
15 | void lcd_print_at (uint8_t x, uint8_t y, uint8_t *text, uint8_t mode); |
||
16 | void lcd_printp (const char *text, uint8_t mode); |
||
17 | void lcd_print_atp (uint8_t x, uint8_t y, const char *text, uint8_t mode); |
||
18 | void lcd_cls (void); |
||
19 | |||
20 | volatile uint8_t display_buffer[1024]; // Display-Puffer, weil nicht zurückgelesen werden kann |
||
21 | volatile uint16_t display_buffer_pointer; // Pointer auf das aktuell übertragene Byte |
||
22 | volatile uint8_t display_buffer_counter; // Hilfszähler zur Selektierung der Page |
||
23 | volatile uint8_t display_page_counter; // aktuelle Page-Nummer |
||
24 | volatile uint8_t display_mode; // Modus für State-Machine |
||
25 | volatile uint8_t LCD_ORIENTATION; |
||
26 | |||
27 | #endif |