MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / printf

Method printf

src/Display/Lcd/Lcd.cpp:311–328  ·  view source on GitHub ↗

printf to LCD

Source from the content-addressed store, hash-verified

309
310// printf to LCD
311int 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.
331void Lcd::SetLeftMargin(PixelNumber c) noexcept

Callers 15

ProcessLineMethod · 0.45
GetJsonResponseMethod · 0.45
RejectMessageMethod · 0.45
EnableProtocolMethod · 0.45
DisableProtocolMethod · 0.45
ReportProtocolsMethod · 0.45
EnableInterfaceMethod · 0.45
GetNetworkStateMethod · 0.45
Network.cppFile · 0.45
GetNetworkStateMethod · 0.45
GetNetworkStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected