forked from DanNixon/NeoNextion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNextionWaveform.h
35 lines (26 loc) · 846 Bytes
/
NextionWaveform.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
/*! \file */
#ifndef __NEONEXTION_NEXTIONWAVEFORM
#define __NEONEXTION_NEXTIONWAVEFORM
#include "Nextion.h"
#include "INextionTouchable.h"
#include "INextionColourable.h"
/*!
* \class NextionWaveform
* \brief Represents a waveform widget.
*/
class NextionWaveform : public INextionTouchable, public INextionColourable
{
public:
NextionWaveform(Nextion &nex, uint8_t page, uint8_t component,
const char *name);
bool addValue(uint8_t channel, uint8_t value);
bool setChannelColour(uint8_t channel, uint32_t colour, bool refresh = true);
uint32_t getChannelColour(uint8_t channel);
bool setGridColour(uint32_t colour, bool refresh = true);
uint32_t getGridColour();
bool setGridWidth(uint16_t width);
uint16_t getGridWidth();
bool setGridHeight(uint16_t height);
uint16_t getGridHeight();
};
#endif