| 291 | } |
| 292 | |
| 293 | void 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 | |
| 302 | int32_t usbWriteCallback(uint32_t lba, uint32_t offset, uint8_t *buffer, uint32_t bufsize) { |
| 303 | const uint32_t secSize = SDM.sectorSize(); |
nothing calls this directly
no test coverage detected