mirror of
https://github.com/itead/ITEADLIB_Arduino_Nextion.git
synced 2026-03-11 20:46:49 +01:00
Add Nextion.h for all examples.
Signed-off-by: shennongmin <wupangfee@gmail.com>
This commit is contained in:
26
Nextion.h
26
Nextion.h
@@ -19,19 +19,19 @@
|
||||
#define __NEXTION_H__
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "NexSerialConfig"
|
||||
#include "NexTouch"
|
||||
#include "NexHardware"
|
||||
#include "NexSerialConfig.h"
|
||||
#include "NexTouch.h"
|
||||
#include "NexHardware.h"
|
||||
|
||||
#include "NexButton"
|
||||
#include "NexCrop"
|
||||
#include "NexGauge"
|
||||
#include "NexHotspot"
|
||||
#include "NexPage"
|
||||
#include "NexPicture"
|
||||
#include "NexProgressBar"
|
||||
#include "NexSlider"
|
||||
#include "NexText"
|
||||
#include "NexWaveform"
|
||||
#include "NexButton.h"
|
||||
#include "NexCrop.h"
|
||||
#include "NexGauge.h"
|
||||
#include "NexHotspot.h"
|
||||
#include "NexPage.h"
|
||||
#include "NexPicture.h"
|
||||
#include "NexProgressBar.h"
|
||||
#include "NexSlider.h"
|
||||
#include "NexText.h"
|
||||
#include "NexWaveform.h"
|
||||
|
||||
#endif /* #ifndef __NEXTION_H__ */
|
||||
|
||||
@@ -13,9 +13,10 @@
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexButton.h"
|
||||
#include "Nextion.h"
|
||||
|
||||
NexButton b0 = NexButton(0, 1, "b0");
|
||||
|
||||
char buffer[100] = {0};
|
||||
|
||||
NexTouch *nex_listen_list[] =
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexCrop.h"
|
||||
#include "Nextion.h"
|
||||
|
||||
NexCrop q0 = NexCrop(0, 1, "q0");
|
||||
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexGauge.h"
|
||||
#include "NexButton.h"
|
||||
#include "Nextion.h"
|
||||
|
||||
NexGauge pointer = NexGauge(0, 1, "pointer");
|
||||
NexButton btn_up = NexButton(0, 2, "btn_up");
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexHotspot.h"
|
||||
#include "Nextion.h"
|
||||
|
||||
NexHotspot hot0 = NexHotspot(0, 1, "hot0");
|
||||
NexHotspot hot1 = NexHotspot(0, 2, "hot1");
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexPage.h"
|
||||
#include "Nextion.h"
|
||||
|
||||
NexPage page0 = NexPage(0, 0, "page0");
|
||||
NexPage page1 = NexPage(1, 0, "page1");
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexPicture.h"
|
||||
#include "Nextion.h"
|
||||
|
||||
NexPicture p0 = NexPicture(0, 1, "p0");
|
||||
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexProgressBar.h"
|
||||
#include "NexButton.h"
|
||||
#include "Nextion.h"
|
||||
|
||||
NexProgressBar j0 = NexProgressBar(0, 3, "j0");
|
||||
NexButton btn_up = NexButton(0, 1, "btn_up");
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexText.h"
|
||||
#include "NexSlider.h"
|
||||
#include "Nextion.h"
|
||||
|
||||
|
||||
NexText t0 = NexText(0, 2, "t0");
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexButton.h"
|
||||
#include "NexText.h"
|
||||
#include "Nextion.h"
|
||||
|
||||
void t0PopCallback(void *ptr);
|
||||
void b0PopCallback(void *ptr);
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexText.h"
|
||||
#include "NexWaveform.h"
|
||||
#include "Nextion.h"
|
||||
|
||||
#define LEVEL_HIGH (30)
|
||||
#define LEVEL_LOW (0)
|
||||
|
||||
Reference in New Issue
Block a user