2023-06-07 10:51:46 +02:00
|
|
|
#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
|
|
|
|
|
2023-06-07 14:12:45 +02:00
|
|
|
//Time update period
|
|
|
|
#define UPDATE_PERIOD_h 5
|
|
|
|
|
2023-06-07 10:51:46 +02:00
|
|
|
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;
|
|
|
|
|
2023-06-07 14:12:45 +02:00
|
|
|
void setup_monitor(void);
|
2023-06-07 10:51:46 +02:00
|
|
|
void show_MinerScreen(unsigned long mElapsed);
|
|
|
|
|
|
|
|
#endif //MONITOR_API_H
|