printf to LCD
| 309 | |
| 310 | // printf to LCD |
| 311 | int Lcd::printf(const char *_ecv_array fmt, ...) noexcept |
| 312 | { |
| 313 | va_list vargs; |
| 314 | va_start(vargs, fmt); |
| 315 | int ret = vuprintf([this](char c) -> bool |
| 316 | { |
| 317 | if (c != 0) |
| 318 | { |
| 319 | write(c); |
| 320 | } |
| 321 | return true; |
| 322 | }, |
| 323 | fmt, |
| 324 | vargs |
| 325 | ); |
| 326 | va_end(vargs); |
| 327 | return ret; |
| 328 | } |
| 329 | |
| 330 | // Set the left margin. This is where the cursor goes to when we print newline. |
| 331 | void Lcd::SetLeftMargin(PixelNumber c) noexcept |
no outgoing calls
no test coverage detected