23 #include <avr/pgmspace.h> 44 gfx_draw_line( x - 3, y - 3, x + 14 + 3, y + 27 + 3, GFX_COLOR_WHITE );
45 gfx_draw_line( x - 2, y - 3, x + 14 + 4, y + 27 + 3, GFX_COLOR_WHITE );
46 gfx_draw_line( x + 14 + 2, y - 3, x - 2, y + 27 + 3, GFX_COLOR_WHITE );
47 gfx_draw_line( x + 14 + 3, y - 3, x - 3, y + 27 + 3, GFX_COLOR_WHITE );
56 gfx_draw_line( x - 3, y - 3, x + 14 + 3, y + 27 + 3, GFX_COLOR_BLACK );
57 gfx_draw_line( x - 2, y - 3, x + 14 + 4, y + 27 + 3, GFX_COLOR_BLACK );
58 gfx_draw_line( x + 14 + 2, y - 3, x - 2, y + 27 + 3, GFX_COLOR_BLACK );
59 gfx_draw_line( x + 14 + 3, y - 3, x - 3, y + 27 + 3, GFX_COLOR_BLACK );
79 gfx_draw_line( x - 3, y - 3, x + 61 + 3, y + 30 + 3, GFX_COLOR_WHITE );
80 gfx_draw_line( x - 2, y - 3, x + 61 + 4, y + 30 + 3, GFX_COLOR_WHITE );
81 gfx_draw_line( x + 61 + 2, y - 3, x - 2, y + 30 + 3, GFX_COLOR_WHITE );
82 gfx_draw_line( x + 61 + 3, y - 3, x - 3, y + 30 + 3, GFX_COLOR_WHITE );
91 gfx_draw_line( x - 3, y - 3, x + 61 + 3, y + 30 + 3, GFX_COLOR_BLACK );
92 gfx_draw_line( x - 2, y - 3, x + 61 + 4, y + 30 + 3, GFX_COLOR_BLACK );
93 gfx_draw_line( x + 61 + 2, y - 3, x - 2, y + 30 + 3, GFX_COLOR_BLACK );
94 gfx_draw_line( x + 61 + 3, y - 3, x - 3, y + 30 + 3, GFX_COLOR_BLACK );
130 uint16_t color_charge1, color_charge2, color_charge3, color_charge4;
133 gfx_draw_line( x - 4, y - 3, x + 61 + 2, y + 30 + 3, GFX_COLOR_WHITE );
134 gfx_draw_line( x - 3, y - 3, x + 61 + 3, y + 30 + 3, GFX_COLOR_WHITE );
135 gfx_draw_line( x - 2, y - 3, x + 61 + 4, y + 30 + 3, GFX_COLOR_WHITE );
136 gfx_draw_line( x + 61 + 4, y - 3, x - 2, y + 30 + 3, GFX_COLOR_WHITE );
137 gfx_draw_line( x + 61 + 2, y - 3, x - 4, y + 30 + 3, GFX_COLOR_WHITE );
138 gfx_draw_line( x + 61 + 3, y - 3, x - 3, y + 30 + 3, GFX_COLOR_WHITE );
146 case GFX_CHARGE_FULL:
147 color_charge1 = GFX_COLOR_GREEN;
148 color_charge2 = GFX_COLOR_GREEN;
149 color_charge3 = GFX_COLOR_GREEN;
150 color_charge4 = GFX_COLOR_GREEN;
153 color_charge1 = GFX_COLOR_GREEN;
154 color_charge2 = GFX_COLOR_GREEN;
155 color_charge3 = GFX_COLOR_GREEN;
156 color_charge4 = GFX_COLOR_LT_GRAY;
159 color_charge1 = GFX_COLOR_GREEN;
160 color_charge2 = GFX_COLOR_GREEN;
161 color_charge3 = GFX_COLOR_LT_GRAY;
162 color_charge4 = GFX_COLOR_LT_GRAY;
165 color_charge1 = GFX_COLOR_GREEN;
166 color_charge2 = GFX_COLOR_LT_GRAY;
167 color_charge3 = GFX_COLOR_LT_GRAY;
168 color_charge4 = GFX_COLOR_LT_GRAY;
170 case GFX_CHARGE_WARN:
171 color_charge1 = GFX_COLOR_YELLOW;
172 color_charge2 = GFX_COLOR_LT_GRAY;
173 color_charge3 = GFX_COLOR_LT_GRAY;
174 color_charge4 = GFX_COLOR_LT_GRAY;
176 case GFX_CHARGE_CRIT:
177 color_charge1 = GFX_COLOR_RED;
178 color_charge2 = GFX_COLOR_LT_GRAY;
179 color_charge3 = GFX_COLOR_LT_GRAY;
180 color_charge4 = GFX_COLOR_LT_GRAY;
182 case GFX_CHARGE_EMPTY:
183 color_charge1 = GFX_COLOR_RED;
184 color_charge2 = GFX_COLOR_RED;
185 color_charge3 = GFX_COLOR_RED;
186 color_charge4 = GFX_COLOR_RED;
199 if ( charge == GFX_CHARGE_EMPTY )
201 gfx_draw_line( x - 4, y - 3, x + 61 + 2, y + 30 + 3, GFX_COLOR_BLACK );
202 gfx_draw_line( x - 3, y - 3, x + 61 + 3, y + 30 + 3, GFX_COLOR_BLACK );
203 gfx_draw_line( x - 2, y - 3, x + 61 + 4, y + 30 + 3, GFX_COLOR_BLACK );
204 gfx_draw_line( x + 61 + 4, y - 3, x - 2, y + 30 + 3, GFX_COLOR_BLACK );
205 gfx_draw_line( x + 61 + 2, y - 3, x - 4, y + 30 + 3, GFX_COLOR_BLACK );
206 gfx_draw_line( x + 61 + 3, y - 3, x - 3, y + 30 + 3, GFX_COLOR_BLACK );
245 gfx_draw_line( x + 18, y + 17, x + 27, y + 20, GFX_COLOR_BLACK );
246 gfx_draw_line( x + 17, y + 17, x + 26, y + 20, GFX_COLOR_BLACK );
247 gfx_draw_line( x + 16, y + 17, x + 25, y + 20, GFX_COLOR_BLACK );
248 gfx_draw_line( x + 15, y + 17, x + 24, y + 20, GFX_COLOR_BLACK );
264 uint8_t radius1 = 12;
302 gfx_draw_line( x + 22, y + 4, x + 4, y + 35, GFX_COLOR_BLACK );
303 gfx_draw_line( x + 4, y + 35, x + 40, y + 35, GFX_COLOR_BLACK );
304 gfx_draw_line( x + 40, y + 35, x + 22, y + 4, GFX_COLOR_BLACK );
306 gfx_draw_line( x + 22, y + 5, x + 5, y + 34, GFX_COLOR_BLACK );
307 gfx_draw_line( x + 5, y + 34, x + 39, y + 34, GFX_COLOR_BLACK );
308 gfx_draw_line( x + 39, y + 34, x + 22, y + 5, GFX_COLOR_BLACK );
310 gfx_draw_line( x + 22, y + 6, x + 6, y + 33, GFX_COLOR_BLACK );
311 gfx_draw_line( x + 38, y + 33, x + 22, y + 6, GFX_COLOR_BLACK );
336 gfx_draw_line( x + 22, y + 4, x + 4, y + 35, GFX_COLOR_BLACK );
337 gfx_draw_line( x + 4, y + 35, x + 40, y + 35, GFX_COLOR_BLACK );
338 gfx_draw_line( x + 40, y + 35, x + 22, y + 4, GFX_COLOR_BLACK );
340 gfx_draw_line( x + 22, y + 5, x + 5, y + 34, GFX_COLOR_BLACK );
341 gfx_draw_line( x + 5, y + 34, x + 39, y + 34, GFX_COLOR_BLACK );
342 gfx_draw_line( x + 39, y + 34, x + 22, y + 5, GFX_COLOR_BLACK );
344 gfx_draw_line( x + 22, y + 6, x + 6, y + 33, GFX_COLOR_BLACK );
345 gfx_draw_line( x + 38, y + 33, x + 22, y + 6, GFX_COLOR_BLACK );
348 gfx_draw_line( x + 21, y + 11, x + 16, y + 25, GFX_COLOR_BLACK );
349 gfx_draw_line( x + 22, y + 11, x + 16, y + 25, GFX_COLOR_BLACK );
350 gfx_draw_line( x + 23, y + 11, x + 17, y + 25, GFX_COLOR_BLACK );
352 gfx_draw_line( x + 16, y + 25, x + 24, y + 17, GFX_COLOR_BLACK );
353 gfx_draw_line( x + 17, y + 25, x + 25, y + 17, GFX_COLOR_BLACK );
354 gfx_draw_line( x + 17, y + 25, x + 26, y + 17, GFX_COLOR_BLACK );
356 gfx_draw_line( x + 24, y + 17, x + 21, y + 28, GFX_COLOR_BLACK );
357 gfx_draw_line( x + 25, y + 17, x + 22, y + 28, GFX_COLOR_BLACK );
358 gfx_draw_line( x + 26, y + 17, x + 22, y + 29, GFX_COLOR_BLACK );
360 gfx_draw_line( x + 19, y + 27, x + 26, y + 28, GFX_COLOR_BLACK );
361 gfx_draw_line( x + 20, y + 28, x + 25, y + 29, GFX_COLOR_BLACK );
362 gfx_draw_line( x + 21, y + 29, x + 24, y + 30, GFX_COLOR_BLACK );
363 gfx_draw_line( x + 22, y + 30, x + 23, y + 31, GFX_COLOR_BLACK );
364 gfx_draw_line( x + 22, y + 31, x + 22, y + 32, GFX_COLOR_BLACK );
void gfx_draw_soh(uint16_t x, uint16_t y)
Zeichnet das SOH-Symbol.
void gfx_draw_time(uint16_t x, uint16_t y)
Zeichnet Uhr als Zeitsymbol - derzeit nicht eingesetzt.
void gfx_draw_voltage(uint16_t x, uint16_t y)
Zeichnet ein gelbes Warndreieck mit einem Blitz.
void gfx_draw_warning(uint16_t x, uint16_t y)
Zeichnet ein Ausrufezeichen als Warnungssymbol.
void gfx_draw_soc(uint16_t x, uint16_t y, uint8_t charge)
Zeichnet das SOC-Symbol, eine horizontale Batterie mit gefüllten Segmenten und verschiedenen Farben...
void gfx_draw_current(uint16_t x, uint16_t y)
Zeichnet ein gelbes Warndreieck mit einem Stecker.
Graphical System Font system.
#define gfx_draw_line(x1, y1, x2, y2, color)
void gfx_draw_hor_battery(uint16_t x, uint16_t y, uint16_t color, uint8_t cross)
Zeichnet eine große horizontale Batterie.
#define gfx_draw_filled_circle(x, y, radius, color, quadrant_mask)
Graphical library API header file.
void gfx_draw_battery(uint16_t x, uint16_t y, uint16_t color, uint8_t cross)
Zeichnet eine kleine vertikale Batterie.
#define gfx_draw_filled_rect(x, y, width, height, color)
void gfx_draw_temperatur(uint16_t x, uint16_t y, uint16_t color)
Zeichnet ein Thermometer, die Quecksilbersäule in unterschiedlichen Farben.
#define gfx_draw_bitmap(bmp, x, y)