Add Nextion.h for all examples.

Signed-off-by: shennongmin <wupangfee@gmail.com>
This commit is contained in:
shennongmin
2015-08-12 16:59:44 +08:00
parent 0d2088fe97
commit 42c9f102d0
11 changed files with 24 additions and 28 deletions

View File

@@ -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__ */

View File

@@ -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[] =

View File

@@ -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");

View File

@@ -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");

View File

@@ -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");

View File

@@ -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");

View File

@@ -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");

View File

@@ -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");

View File

@@ -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");

View File

@@ -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);

View File

@@ -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)