NeoNextion
Arduino library for the Nextion displays.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator
NextionWaveform.h
Go to the documentation of this file.
1 
3 #ifndef __NEONEXTION_NEXTIONWAVEFORM
4 #define __NEONEXTION_NEXTIONWAVEFORM
5 
6 #include "Nextion.h"
7 #include "INextionTouchable.h"
8 #include "INextionColourable.h"
9 
15 {
16 public:
17  NextionWaveform(Nextion &nex, uint8_t page, uint8_t component,
18  const char *name);
19 
20  bool addValue(uint8_t channel, uint8_t value);
21 
22  bool setChannelColour(uint8_t channel, uint32_t colour, bool refresh = true);
23  uint32_t getChannelColour(uint8_t channel);
24 
25  bool setGridColour(uint32_t colour, bool refresh = true);
26  uint32_t getGridColour();
27 
28  bool setGridWidth(uint16_t width);
29  uint16_t getGridWidth();
30 
31  bool setGridHeight(uint16_t height);
32  uint16_t getGridHeight();
33 };
34 
35 #endif
bool setGridColour(uint32_t colour, bool refresh=true)
Sets the colour of the grid lines.
Definition: NextionWaveform.cpp:72
bool setGridHeight(uint16_t height)
Sets the height of the grid squares.
Definition: NextionWaveform.cpp:110
bool setGridWidth(uint16_t width)
Sets the width of the grid squares.
Definition: NextionWaveform.cpp:91
bool setChannelColour(uint8_t channel, uint32_t colour, bool refresh=true)
Sets the colour of a channel.
Definition: NextionWaveform.cpp:46
Interface for widgets that can be touched.
Definition: INextionTouchable.h:15
Interface for widgets that can be coloured.
Definition: INextionColourable.h:14
Represents a waveform widget.
Definition: NextionWaveform.h:14
uint32_t getGridColour()
Gets the colour of the grid lines.
Definition: NextionWaveform.cpp:81
bool addValue(uint8_t channel, uint8_t value)
Adds a value to the waveform display.
Definition: NextionWaveform.cpp:23
NextionWaveform(Nextion &nex, uint8_t page, uint8_t component, const char *name)
Create a new widget adapter.
Definition: NextionWaveform.cpp:9
uint16_t getGridWidth()
Gets the width of the grid squares.
Definition: NextionWaveform.cpp:100
uint32_t getChannelColour(uint8_t channel)
Gets the colour of a channel.
Definition: NextionWaveform.cpp:59
Driver for a physical Nextion device.
Definition: Nextion.h:31
uint16_t getGridHeight()
Gets the height of the grid squares.
Definition: NextionWaveform.cpp:119