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

Function drawCreditCard

src/core/display.cpp:1105–1115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103}
1104
1105void drawCreditCard(int x, int y) {
1106 tft.fillRect(x, y, 70, 50, bruceConfig.bgColor);
1107 tft.fillRoundRect(x + 5, y + 5, 60, 40, 5, bruceConfig.priColor);
1108 tft.fillRect(x + 5, y + 15, 60, 10, getColorVariation(bruceConfig.priColor, 3, -1));
1109 tft.fillRect(x + 10, y + 30, 12, 10, getColorVariation(bruceConfig.priColor, 3, 1));
1110 tft.drawRect(x + 10, y + 30, 12, 10, getColorVariation(bruceConfig.priColor, 5, -1));
1111 tft.drawRect(x + 10 + 4, y + 30, 4, 10, getColorVariation(bruceConfig.priColor, 5, -1));
1112 tft.drawRect(x + 10, y + 33, 5, 4, getColorVariation(bruceConfig.priColor, 5, -1));
1113 tft.drawRect(x + 17, y + 33, 5, 4, getColorVariation(bruceConfig.priColor, 5, -1));
1114 tft.fillRect(x + 30, y + 35, 30, 5, getColorVariation(bruceConfig.priColor, 5, 1));
1115}
1116
1117void drawMfkey32Icon(int x, int y) {
1118 tft.drawRect(x + 2, y + 15, 24, 40, bruceConfig.priColor);

Callers 2

setReaderModeMethod · 0.85
setEmulatorNextSlotMethod · 0.85

Calls 4

getColorVariationFunction · 0.85
fillRectMethod · 0.45
fillRoundRectMethod · 0.45
drawRectMethod · 0.45

Tested by

no test coverage detected