-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWeightProfile.hpp
More file actions
39 lines (38 loc) · 1.08 KB
/
Copy pathWeightProfile.hpp
File metadata and controls
39 lines (38 loc) · 1.08 KB
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
#ifndef WEIGHTPROFILE_HPP
#define WEIGHTPROFILE_HPP
#include <Common.hpp>
#include <EEPROMex.h>
#include <Printable.h>
class WeightProfile : public Printable
{
public:
WeightProfile();
WeightProfile(int min, int max, char name);
WeightProfile(int min, int max, char name, Colour colour);
WeightProfile(int min, int max, Colour colour);
void calibrate();
void maximal(int max);
void minimum(int min);
void name(char name);
int maximal();
int minimum();
unsigned int deviation(int dev);
char name();
void cVal(Colour colour);
Colour cVal();
bool match(int val);
void save(byte offset);
WeightProfile load(byte offset);
virtual size_t printTo(Print& p) const;
bool operator < (const WeightProfile& that) const;
bool operator <= (const WeightProfile& that) const;
bool operator > (const WeightProfile& that) const;
bool operator >= (const WeightProfile& that) const;
bool operator == (const WeightProfile& that) const;
private:
int weightRangeMin_;
int weightRangeMax_;
char name_;
Colour cVal_;
};
#endif