NerdMiner_v2/src/monitor.h
BitMaker 9139fa7a18 Code refactoring & upgrades
- 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
2023-06-07 10:51:46 +02:00

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