Rev 497 | Rev 519 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 497 | Rev 507 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | write_char_xy(27, top_line, 0xCC); // small meters m height |
33 | write_char_xy(27, top_line, 0xCC); // small meters m height |
34 | write_char_xy(7, bottom_line, 0x9E); // small v |
34 | write_char_xy(7, bottom_line, 0x9E); // small v |
35 | if (COSD_FLAGS2 & COSD_FLAG_STROMREC) { |
35 | if (COSD_FLAGS2 & COSD_FLAG_STROMREC) { |
36 | write_char_xy(7, bottom_line - 1, 0x9F); // small A |
36 | write_char_xy(7, bottom_line - 1, 0x9F); // small A |
37 | write_char_xy(14, bottom_line - 1, 0xB5); // mah |
37 | write_char_xy(14, bottom_line - 1, 0xB5); // mah |
- | 38 | if (COSD_FLAGS & COSD_FLAG_STROMVOLT) { |
|
- | 39 | write_char_xy(21, bottom_line - 1, 0x9E); // small V |
|
- | 40 | } |
|
38 | } |
41 | } |
39 | COSD_FLAGS2 |= COSD_ICONS_WRITTEN; |
42 | COSD_FLAGS2 |= COSD_ICONS_WRITTEN; |
40 | } |
43 | } |
Line 41... | Line 44... | ||
41 | 44 | ||
Line 64... | Line 67... | ||
64 | // pre-bottom line |
67 | // pre-bottom line |
65 | if (COSD_FLAGS2 & COSD_FLAG_STROMREC) { |
68 | if (COSD_FLAGS2 & COSD_FLAG_STROMREC) { |
66 | //write_ndigit_number_s(3, bottom_line - 1, ampere, 1000, 0); |
69 | //write_ndigit_number_s(3, bottom_line - 1, ampere, 1000, 0); |
67 | write_ndigit_number_u_10th(3, bottom_line - 1, ampere / 10, 100, 0); |
70 | write_ndigit_number_u_10th(3, bottom_line - 1, ampere / 10, 100, 0); |
68 | write_ndigit_number_s(10, bottom_line - 1, ampere_wasted / 10, 1000, 0); |
71 | write_ndigit_number_s(10, bottom_line - 1, ampere_wasted / 10, 1000, 0); |
- | 72 | if (COSD_FLAGS & COSD_FLAG_STROMVOLT) { |
|
- | 73 | write_ndigit_number_u_10th(17, bottom_line - 1, s_volt, 100, 0); |
|
- | 74 | } |
|
69 | } |
75 | } |
Line 70... | Line 76... | ||
70 | 76 | ||
71 | draw_battery(2, bottom_line, min_voltage, debugData.Analog[9], max_voltage); |
77 | draw_battery(2, bottom_line, min_voltage, debugData.Analog[9], max_voltage); |
72 | write_ndigit_number_u_10th(3, bottom_line, debugData.Analog[9], 100, 0); |
78 | write_ndigit_number_u_10th(3, bottom_line, debugData.Analog[9], 100, 0); |