NeoNextion
Arduino library for the Nextion displays.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator
NextionTimer.h
Go to the documentation of this file.
1 
3 #ifndef __NEONEXTION_NEXTIONTIMER
4 #define __NEONEXTION_NEXTIONTIMER
5 
6 #include "Nextion.h"
7 #include "INextionTouchable.h"
8 
14 {
15 public:
16  NextionTimer(Nextion &nex, uint8_t page, uint8_t component, const char *name);
17 
18  uint32_t getCycle();
19  bool setCycle(uint32_t cycle);
20 
21  bool enable();
22  bool disable();
23 };
24 
25 #endif
Represents a timer.
Definition: NextionTimer.h:13
bool enable()
Enable/start the timer.
Definition: NextionTimer.cpp:52
uint32_t getCycle()
Gets the cycle time of the timer.
Definition: NextionTimer.cpp:19
Interface for widgets that can be touched.
Definition: INextionTouchable.h:15
NextionTimer(Nextion &nex, uint8_t page, uint8_t component, const char *name)
Create a new widget adapter.
Definition: NextionTimer.cpp:8
bool setCycle(uint32_t cycle)
Sets the cycle time of the timer.
Definition: NextionTimer.cpp:37
bool disable()
Disable/stop the timer.
Definition: NextionTimer.cpp:64
Driver for a physical Nextion device.
Definition: Nextion.h:31