Rev 5 | Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5 | Rev 6 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | height (); |
37 | height (); |
38 | 38 | ||
39 | void |
39 | void |
40 | init (); |
40 | init (); |
41 | 41 | ||
- | 42 | /// \brief Clear display to colour |
|
42 | void |
43 | void |
43 | clearDisplay (); |
44 | clearDisplay (colour_t colour = colour_t::BLACK); |
44 | void |
45 | void |
45 | invertDisplay (uint8_t i); |
46 | invertDisplay (uint8_t i); |
46 | void |
47 | void |
47 | display (); |
48 | display (); |
48 | 49 | ||
Line 65... | Line 66... | ||
65 | drawPixel (int16_t x, int16_t y, colour_t color); |
66 | drawPixel (int16_t x, int16_t y, colour_t color); |
66 | 67 | ||
67 | void |
68 | void |
68 | drawLine (int16_t x1, int16_t y1, int16_t x2, int16_t y2, colour_t color); |
69 | drawLine (int16_t x1, int16_t y1, int16_t x2, int16_t y2, colour_t color); |
69 | 70 | ||
- | 71 | void drawRectangle (int16_t x1, int16_t y1, int16_t x2, int16_t y2, colour_t color); |
|
- | 72 | ||
- | 73 | ||
70 | void |
74 | void |
71 | gotoxy (int x, int y) |
75 | gotoxy (int x, int y) |
72 | { |
76 | { |
73 | m_cursor_x = x; |
77 | m_cursor_x = x; |
74 | m_cursor_y = y; |
78 | m_cursor_y = y; |