MCPcopy Create free account
hub / github.com/BruceDevices/firmware / drawU2fStatusScreen

Function drawU2fStatusScreen

src/modules/others/u2f.cpp:1663–1677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1661U2fHidDevice g_u2f;
1662
1663void drawU2fStatusScreen() {
1664 tft.fillScreen(bruceConfig.bgColor);
1665 tft.setTextSize(2);
1666 tft.setTextColor(bruceConfig.priColor, bruceConfig.bgColor);
1667 tft.setCursor(6, 8);
1668 tft.print("USB U2F");
1669
1670 tft.setTextSize(1);
1671 tft.setCursor(6, 36);
1672 tft.print("Ready for registration/login");
1673 tft.setCursor(6, 50);
1674 tft.print("Press center when prompted");
1675 tft.setCursor(6, 64);
1676 tft.print("ESC: Back");
1677}
1678
1679void updateU2fRuntimeInfo(const U2fHidDevice &device) {
1680 tft.fillRect(0, 84, tftWidth, tftHeight - 84, bruceConfig.bgColor);

Callers 1

u2f_setupFunction · 0.85

Calls 5

fillScreenMethod · 0.45
setTextSizeMethod · 0.45
setTextColorMethod · 0.45
setCursorMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected