| 1454 | } |
| 1455 | |
| 1456 | void DisplayManager_::drawProgressBar(int16_t x, int16_t y, int progress, uint32_t pColor, uint32_t pbColor) |
| 1457 | { |
| 1458 | int available_length = 32 - x; |
| 1459 | int leds_for_progress = (progress * available_length) / 100; |
| 1460 | drawLine(x, y, x + available_length - 1, y, pbColor); |
| 1461 | if (leds_for_progress > 0) |
| 1462 | drawLine(x, y, x + leds_for_progress - 1, y, pColor); |
| 1463 | } |
| 1464 | |
| 1465 | void DisplayManager_::drawMenuIndicator(int cur, int total, uint32_t color) |
| 1466 | { |
no outgoing calls
no test coverage detected