-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSmartBbq.h
39 lines (34 loc) · 1014 Bytes
/
SmartBbq.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// SmartBbq - SmartBBQ Controller
#ifndef SmartBbq_h
#define SmartBbq_h
#include "application.h"
#include "ThermistorProbe.h"
#include "SmartProbe.h"
#define PROBENUM 4
#define FANNUM2
class SmartBbq
{
public:
SmartBbq(uint8_t probePin1
, uint8_t probePin2
, uint8_t probePin3
, uint8_t ledPin1
, uint8_t ledPin2
, uint8_t ledPin3
, uint8_t fanPin1);
~SmartBbq();
uint8_t getActiveProbe();
void select();
void up();
void down();
float getActiveTemp();
float getActiveAlarm();
float getProbeTemp(int probeIndex);
float getProbeAlarm(int probeIndex);
bool getProbeAlarmE(int probeIndex);
private:
ThermistorProbe * _thermistorProbe; // Define ThermisterProbe
SmartProbe * _smartProbes[PROBENUM]; // array of SmartProbe objects
uint8_t _active; // index of currently selected probe 0-3
};
#endif