MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / displayMessage

Method displayMessage

src/massStorage.cpp:293–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293void MassStorage::displayMessage(String message) {
294 tft->drawRoundRect(5, 5, tftWidth - 10, tftHeight - 10, 5, ALCOLOR);
295 tft->fillRoundRect(6, 6, tftWidth - 12, tftHeight - 12, 5, BGCOLOR);
296 setTftDisplay(7, 7, ALCOLOR, FP, BGCOLOR);
297 tft->drawCentreString("-= USB MSC =-", tftWidth / 2, 0, 8);
298 tft->setCursor(10, 20);
299 tftprint(message, 10, 5);
300}
301
302int32_t usbWriteCallback(uint32_t lba, uint32_t offset, uint8_t *buffer, uint32_t bufsize) {
303 const uint32_t secSize = SDM.sectorSize();

Callers

nothing calls this directly

Calls 6

setTftDisplayFunction · 0.85
tftprintFunction · 0.85
drawRoundRectMethod · 0.45
fillRoundRectMethod · 0.45
drawCentreStringMethod · 0.45
setCursorMethod · 0.45

Tested by

no test coverage detected