Merge pull request #421 from alexandresanlim/master

fix: miner screen size for ttgo 1.14
This commit is contained in:
BitMaker 2024-06-10 21:17:16 +02:00 committed by GitHub
commit 559861bda3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -67,14 +67,12 @@ void tDisplay_MinerScreen(unsigned long mElapsed)
render.rdrawString(data.currentHashRate.c_str(), 96, 90, TFT_BLACK); render.rdrawString(data.currentHashRate.c_str(), 96, 90, TFT_BLACK);
// Total hashes // Total hashes
render.setFontSize(13); render.setFontSize(13);
render.rdrawString(data.totalMHashes.c_str(), 200, 112, TFT_BLACK); render.rdrawString(data.totalMHashes.c_str(), 200, 106, TFT_BLACK);
// Block templates // Block templates
render.setFontSize(13);
render.drawString(data.templates.c_str(), 140, 15, 0xDEDB); render.drawString(data.templates.c_str(), 140, 15, 0xDEDB);
// Best diff // Best diff
render.drawString(data.bestDiff.c_str(), 140, 38, 0xDEDB); render.drawString(data.bestDiff.c_str(), 140, 38, 0xDEDB);
// 32Bit shares // 32Bit shares
render.setFontSize(13);
render.drawString(data.completedShares.c_str(), 140, 60, 0xDEDB); render.drawString(data.completedShares.c_str(), 140, 60, 0xDEDB);
// Hores // Hores
render.setFontSize(9); render.setFontSize(9);

View File

@ -142,7 +142,7 @@ const unsigned short setupModeScreen[0xFD20] PROGMEM = {
// Icon width and height // Icon width and height
const uint16_t MinerWidth = 240; const uint16_t MinerWidth = 240;
const uint16_t MinerHeight = 128; const uint16_t MinerHeight = 135;
const unsigned short MinerScreen[0x7800] PROGMEM = { const unsigned short MinerScreen[0x7800] PROGMEM = {