Rev 10 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 10 | Rev 11 | ||
|---|---|---|---|
| Line 78... | Line 78... | ||
| 78 | 78 | ||
| 79 | void |
79 | void |
| 80 | drawPixel(int16_t x, int16_t y, bool pixel); |
80 | drawPixel(int16_t x, int16_t y, bool pixel); |
| 81 | 81 | ||
| 82 | void |
82 | void |
| 83 | drawLine(int16_t x1, int16_t y1, int16_t x2, int16_t y2, colour_t color); |
83 | drawLine(int16_t x1, int16_t y1, int16_t x2, int16_t y2, colour_t color = WHITE, int8_t pattern = 1); |
| 84 | 84 | ||
| 85 | void |
85 | void |
| 86 | drawRectangle(int16_t x1, int16_t y1, int16_t x2, int16_t y2, |
86 | drawRectangle(int16_t x1, int16_t y1, int16_t x2, int16_t y2, |
| 87 | colour_t color); |
87 | colour_t color=WHITE); |
| 88 | 88 | ||
| 89 | // position cursor absolute |
89 | // position cursor absolute |
| 90 | void |
90 | void |
| 91 | gotoxy(int x, int y) |
91 | gotoxy(int x, int y) |
| 92 | { |
92 | { |
| Line 135... | Line 135... | ||
| 135 | fontDigits(font_t &font, uint8_t digits, uint8_t dp_pos, int val, |
135 | fontDigits(font_t &font, uint8_t digits, uint8_t dp_pos, int val, |
| 136 | colour_t colour = WHITE); |
136 | colour_t colour = WHITE); |
| 137 | 137 | ||
| 138 | /// \brief Calculate the length of the numeric string, and display it justified or padded |
138 | /// \brief Calculate the length of the numeric string, and display it justified or padded |
| 139 | /// \return The formatted width : returned as signed so calculations which have negative results |
139 | /// \return The formatted width : returned as signed so calculations which have negative results |
| 140 | /// can be performed using width without type casting. |
140 | /// can be performed using width without type casting. |
| 141 | int8_t |
141 | int8_t |
| 142 | fontSigDigits(font_t &font, uint8_t x, uint8_t y, bool right_justify, |
142 | fontSigDigits(font_t &font, uint8_t x, uint8_t y, bool right_justify, |
| 143 | uint8_t dp_pos, int val, colour_t colour = WHITE); |
143 | uint8_t dp_pos, int val, colour_t colour = WHITE); |
| 144 | 144 | ||
| 145 | int cursor_x() |
145 | int cursor_x() |