mirror of
https://github.com/BitMaker-hub/NerdMiner_v2.git
synced 2025-03-28 10:41:44 +01:00
- Added new button funcion to access config without losing current configuration - Added code to change screens - Added socket connection checker to reconnect even if socket is connected but no NOTIFY data is gotten on more than 2 minutes
28 lines
650 B
C
28 lines
650 B
C
#ifndef MONITOR_API_H
|
|
#define MONITOR_API_H
|
|
|
|
#include <Arduino.h>
|
|
|
|
// Monitor states
|
|
#define SCREEN_MINING 0
|
|
#define SCREEN_CLOCK 1
|
|
#define SCREEN_BLOCK 2
|
|
|
|
typedef struct{
|
|
uint8_t screen;
|
|
bool rotation;
|
|
|
|
//Data gotten from minerWork
|
|
/* unsigned long templates;
|
|
unsigned long hashes;
|
|
unsigned long Mhashes;
|
|
unsigned long totalKHashes;
|
|
unsigned long halfshares; // increase if blockhash has 16 bits of zeroes
|
|
unsigned int shares; // increase if blockhash has 32 bits of zeroes
|
|
unsigned int valids; // increased if blockhash <= target
|
|
*/
|
|
}monitor_data;
|
|
|
|
void show_MinerScreen(unsigned long mElapsed);
|
|
|
|
#endif //MONITOR_API_H
|