Update main screen
- Changed main miner screen to add temp + hour on top right screen. - Added functions to print temp + hour on screen - TODO: NPT + temperature reading
This commit is contained in:
parent
206a01bb72
commit
8b97101e23
@ -42,6 +42,7 @@ If you want you can compile the entire project using Arduino, PlatformIO or Expr
|
||||
1. Online ESPtool works with chrome, chromium, brave
|
||||
1. ESPtool recommendations: use 115200bps
|
||||
1. Build errors > If during firmware download upload stops, it's recommended to enter the board in boot mode. Unplug cable, hold right bottom button and then plug cable. Try programming
|
||||
1. In extreme case you can "Erase all flash" on ESPtool to clean all current configuration before uploading firmware. There has been cases that experimented Wifi failures until this was made.
|
||||
|
||||
### NerdMiner configuration
|
||||
After programming, you will only need to setup your Wifi and BTC address.
|
||||
|
2542
src/media/images.h
2542
src/media/images.h
File diff suppressed because it is too large
Load Diff
@ -607,13 +607,13 @@ void runMonitor(void *name){
|
||||
render.rdrawString(String(Mhashes).c_str(), 268, 138, TFT_BLACK);
|
||||
//Block templates
|
||||
render.setFontSize(36);
|
||||
render.drawString(String(templates).c_str(), 186, 17, 0xDEDB);
|
||||
render.drawString(String(templates).c_str(), 186, 20, 0xDEDB);
|
||||
//16Bit shares
|
||||
render.setFontSize(36);
|
||||
render.drawString(String(halfshares).c_str(), 186, 45, 0xDEDB);
|
||||
render.drawString(String(halfshares).c_str(), 186, 48, 0xDEDB);
|
||||
//32Bit shares
|
||||
render.setFontSize(36);
|
||||
render.drawString(String(shares).c_str(), 186, 73, 0xDEDB);
|
||||
render.drawString(String(shares).c_str(), 186, 76, 0xDEDB);
|
||||
//Hores
|
||||
unsigned long secElapsed=millis()/1000;
|
||||
int hr = secElapsed/3600; //Number of seconds in an hour
|
||||
@ -629,7 +629,13 @@ void runMonitor(void *name){
|
||||
render.rdrawString(String(sec).c_str(), 298, 99, 0xDEDB);
|
||||
//Valid Blocks
|
||||
render.setFontSize(48);
|
||||
render.drawString(String(valids).c_str(), 281, 55, 0xDEDB);
|
||||
render.drawString(String(valids).c_str(), 285, 56, 0xDEDB);
|
||||
//Print Temp
|
||||
background.setTextColor(TFT_BLACK);
|
||||
//background.setFreeFont(FF0);
|
||||
background.drawString("30", 230, 4);
|
||||
//Print Hour
|
||||
background.drawString("22:10", 250, 4);
|
||||
|
||||
//Push prepared background to screen
|
||||
background.pushSprite(0,0);
|
||||
|
Loading…
Reference in New Issue
Block a user