diff --git a/doc/API-html/_comp_button_8ino-example.html b/doc/API-html/_comp_button_8ino-example.html index b78c220..16139e6 100644 --- a/doc/API-html/_comp_button_8ino-example.html +++ b/doc/API-html/_comp_button_8ino-example.html @@ -81,8 +81,7 @@ This program is free software; you can redistribute it and/or modify it under th
}
void setup(void)
-
{
-
dbSerialBegin(9600);
+
{
nexInit();
b0.attachPop(b0PopCallback, &b0);
dbSerialPrintln("setup done");
@@ -95,7 +94,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_comp_button_8ino_source.html b/doc/API-html/_comp_button_8ino_source.html index ad7c25d..d1fb977 100644 --- a/doc/API-html/_comp_button_8ino_source.html +++ b/doc/API-html/_comp_button_8ino_source.html @@ -86,29 +86,28 @@
45 }
46 
47 void setup(void)
-
48 {
-
49  dbSerialBegin(9600);
-
50  nexInit();
-
51  b0.attachPop(b0PopCallback, &b0);
-
52  dbSerialPrintln("setup done");
-
53 }
-
54 
-
55 void loop(void)
-
56 {
-
57  nexLoop(nex_listen_list);
-
58 }
+
48 {
+
49  nexInit();
+
50  b0.attachPop(b0PopCallback, &b0);
+
51  dbSerialPrintln("setup done");
+
52 }
+
53 
+
54 void loop(void)
+
55 {
+
56  nexLoop(nex_listen_list);
+
57 }
NexButton::getText
uint16_t getText(char *buffer, uint16_t len)
Get text value from button component.
Definition: NexButton.cpp:35
-
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:404
+
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:398
NexButton.h
API of NexButton.
NexButton::attachPop
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Register button pop callback function.
Definition: NexButton.cpp:70
NexButton
NexButton,subclass of NexTouch,provides simple methods to control button component.
Definition: NexButton.h:25
-
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:420
+
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:415
NexButton::setText
bool setText(const char *buffer)
Set text value of button component.
Definition: NexButton.cpp:53
NexTouch
Root Class of Nextion Components.
Definition: NexTouch.h:57
diff --git a/doc/API-html/_comp_crop_8ino-example.html b/doc/API-html/_comp_crop_8ino-example.html index ee17a65..12802fc 100644 --- a/doc/API-html/_comp_crop_8ino-example.html +++ b/doc/API-html/_comp_crop_8ino-example.html @@ -75,7 +75,6 @@ This program is free software; you can redistribute it and/or modify it under th
void setup(void)
{
-
dbSerialBegin(9600);
nexInit();
q0.attachPop(q0PopCallback);
dbSerialPrintln("setup done");
@@ -89,7 +88,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_comp_crop_8ino_source.html b/doc/API-html/_comp_crop_8ino_source.html index d4a9313..cc6c860 100644 --- a/doc/API-html/_comp_crop_8ino_source.html +++ b/doc/API-html/_comp_crop_8ino_source.html @@ -80,19 +80,18 @@
39 
40 void setup(void)
41 {
-
42  dbSerialBegin(9600);
-
43  nexInit();
-
44  q0.attachPop(q0PopCallback);
-
45  dbSerialPrintln("setup done");
-
46 }
-
47 
-
48 void loop(void)
-
49 {
-
50  nexLoop(nex_listen_list);
-
51 }
-
52 
-
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:404
-
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:420
+
42  nexInit();
+
43  q0.attachPop(q0PopCallback);
+
44  dbSerialPrintln("setup done");
+
45 }
+
46 
+
47 void loop(void)
+
48 {
+
49  nexLoop(nex_listen_list);
+
50 }
+
51 
+
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:398
+
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:415
NexCrop.h
API of NexCrop.
NexCrop::attachPop
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Register crop pop callback function.
Definition: NexCrop.cpp:72
NexCrop
NexCrop,subclass of NexTouch,provides simple methods to control crop component.
Definition: NexCrop.h:25
@@ -100,7 +99,7 @@ diff --git a/doc/API-html/_comp_hotspot_8ino-example.html b/doc/API-html/_comp_hotspot_8ino-example.html index de69785..e1ff5f0 100644 --- a/doc/API-html/_comp_hotspot_8ino-example.html +++ b/doc/API-html/_comp_hotspot_8ino-example.html @@ -91,7 +91,6 @@ This program is free software; you can redistribute it and/or modify it under th
void setup(void)
{
-
dbSerialBegin(9600);
nexInit();
hot0.attachPush(hot0PushCallback, &hot0);
hot0.attachPop(hot0PopCallback, &hot0);
@@ -107,7 +106,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_comp_hotspot_8ino_source.html b/doc/API-html/_comp_hotspot_8ino_source.html index 71ed99f..facba9d 100644 --- a/doc/API-html/_comp_hotspot_8ino_source.html +++ b/doc/API-html/_comp_hotspot_8ino_source.html @@ -96,21 +96,20 @@
55 
56 void setup(void)
57 {
-
58  dbSerialBegin(9600);
-
59  nexInit();
-
60  hot0.attachPush(hot0PushCallback, &hot0);
-
61  hot0.attachPop(hot0PopCallback, &hot0);
-
62  hot1.attachPush(hot1PushCallback, &hot1);
-
63  hot1.attachPop(hot1PopCallback, &hot1);
-
64  dbSerialPrintln("setup done");
-
65 }
-
66 
-
67 void loop(void)
-
68 {
-
69  nexLoop(nex_listen_list);
-
70 }
-
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:404
-
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:420
+
58  nexInit();
+
59  hot0.attachPush(hot0PushCallback, &hot0);
+
60  hot0.attachPop(hot0PopCallback, &hot0);
+
61  hot1.attachPush(hot1PushCallback, &hot1);
+
62  hot1.attachPop(hot1PopCallback, &hot1);
+
63  dbSerialPrintln("setup done");
+
64 }
+
65 
+
66 void loop(void)
+
67 {
+
68  nexLoop(nex_listen_list);
+
69 }
+
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:398
+
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:415
NexHotspot.h
API of NexHotspot.
NexHotspot
NexHotspot,subclass of NexTouch,provides simple methods to control hotspot component.
Definition: NexHotspot.h:25
NexHotspot::attachPop
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Register hotspot pop callback function.
Definition: NexHotspot.cpp:55
@@ -119,7 +118,7 @@ diff --git a/doc/API-html/_comp_page_8ino-example.html b/doc/API-html/_comp_page_8ino-example.html index 173d36d..d659733 100644 --- a/doc/API-html/_comp_page_8ino-example.html +++ b/doc/API-html/_comp_page_8ino-example.html @@ -91,7 +91,6 @@ This program is free software; you can redistribute it and/or modify it under th
void setup(void)
{
-
dbSerialBegin(9600);
nexInit();
dbSerialPrintln("setup begin");
@@ -110,7 +109,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_comp_page_8ino_source.html b/doc/API-html/_comp_page_8ino_source.html index b6c018d..83911dc 100644 --- a/doc/API-html/_comp_page_8ino_source.html +++ b/doc/API-html/_comp_page_8ino_source.html @@ -96,33 +96,32 @@
55 
56 void setup(void)
57 {
-
58  dbSerialBegin(9600);
-
59  nexInit();
-
60  dbSerialPrintln("setup begin");
-
61 
-
62  page0.attachPop(page0PopCallback);
-
63  page1.attachPop(page1PopCallback);
-
64  page2.attachPop(page2PopCallback);
-
65  page3.attachPop(page3PopCallback);
-
66 
-
67  dbSerialPrintln("setup end");
-
68 }
-
69 
-
70 void loop(void)
-
71 {
-
72  nexLoop(nex_listen_list);
-
73 }
+
58  nexInit();
+
59  dbSerialPrintln("setup begin");
+
60 
+
61  page0.attachPop(page0PopCallback);
+
62  page1.attachPop(page1PopCallback);
+
63  page2.attachPop(page2PopCallback);
+
64  page3.attachPop(page3PopCallback);
+
65 
+
66  dbSerialPrintln("setup end");
+
67 }
+
68 
+
69 void loop(void)
+
70 {
+
71  nexLoop(nex_listen_list);
+
72 }
NexPage::show
bool show(void)
Change page.
Definition: NexPage.cpp:33
-
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:404
+
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:398
NexPage.h
API of NexPage.
-
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:420
+
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:415
NexPage
NexPage,subclass of NexTouch,provides simple methods to control page component.
Definition: NexPage.h:25
NexPage::attachPop
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Register page pop callback function.
Definition: NexPage.cpp:55
NexTouch
Root Class of Nextion Components.
Definition: NexTouch.h:57
diff --git a/doc/API-html/_comp_picture_8ino-example.html b/doc/API-html/_comp_picture_8ino-example.html index 906fe33..ba72466 100644 --- a/doc/API-html/_comp_picture_8ino-example.html +++ b/doc/API-html/_comp_picture_8ino-example.html @@ -81,7 +81,6 @@ This program is free software; you can redistribute it and/or modify it under th
void setup(void)
{
-
dbSerialBegin(9600);
nexInit();
p0.attachPop(p0PopCallback);
dbSerialPrintln("setup done");
@@ -95,7 +94,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_comp_picture_8ino_source.html b/doc/API-html/_comp_picture_8ino_source.html index d1e8b54..e250158 100644 --- a/doc/API-html/_comp_picture_8ino_source.html +++ b/doc/API-html/_comp_picture_8ino_source.html @@ -86,20 +86,19 @@
45 
46 void setup(void)
47 {
-
48  dbSerialBegin(9600);
-
49  nexInit();
-
50  p0.attachPop(p0PopCallback);
-
51  dbSerialPrintln("setup done");
-
52 }
-
53 
-
54 void loop(void)
-
55 {
-
56  nexLoop(nex_listen_list);
-
57 }
-
58 
-
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:404
+
48  nexInit();
+
49  p0.attachPop(p0PopCallback);
+
50  dbSerialPrintln("setup done");
+
51 }
+
52 
+
53 void loop(void)
+
54 {
+
55  nexLoop(nex_listen_list);
+
56 }
+
57 
+
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:398
NexPicture::setPic
bool setPic(uint32_t number)
Set picture's number.
Definition: NexPicture.cpp:52
-
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:420
+
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:415
NexPicture
NexPicture,subclass of NexTouch,provides simple methods to control picture component.
Definition: NexPicture.h:25
NexPicture::attachPop
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Register picture pop callback function.
Definition: NexPicture.cpp:72
NexPicture::getPic
bool getPic(uint32_t *number)
Get picture's number.
Definition: NexPicture.cpp:35
@@ -108,7 +107,7 @@ diff --git a/doc/API-html/_comp_pointer_8ino-example.html b/doc/API-html/_comp_pointer_8ino-example.html index 4a5b2b6..c4e0cf2 100644 --- a/doc/API-html/_comp_pointer_8ino-example.html +++ b/doc/API-html/_comp_pointer_8ino-example.html @@ -97,7 +97,6 @@ This program is free software; you can redistribute it and/or modify it under th
void setup(void)
{
-
dbSerialBegin(9600);
nexInit();
btn_up.attachPop(buttonUpPopCallback);
btn_down.attachPop(buttonDownPopCallback);
@@ -112,7 +111,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_comp_pointer_8ino_source.html b/doc/API-html/_comp_pointer_8ino_source.html index 9da3c58..2f3e3a2 100644 --- a/doc/API-html/_comp_pointer_8ino_source.html +++ b/doc/API-html/_comp_pointer_8ino_source.html @@ -102,31 +102,30 @@
61 
62 void setup(void)
63 {
-
64  dbSerialBegin(9600);
-
65  nexInit();
-
66  btn_up.attachPop(buttonUpPopCallback);
-
67  btn_down.attachPop(buttonDownPopCallback);
-
68  dbSerialPrintln("setup done");
-
69 }
-
70 
-
71 void loop(void)
-
72 {
-
73  nexLoop(nex_listen_list);
-
74 }
-
75 
-
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:404
+
64  nexInit();
+
65  btn_up.attachPop(buttonUpPopCallback);
+
66  btn_down.attachPop(buttonDownPopCallback);
+
67  dbSerialPrintln("setup done");
+
68 }
+
69 
+
70 void loop(void)
+
71 {
+
72  nexLoop(nex_listen_list);
+
73 }
+
74 
+
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:398
NexButton.h
API of NexButton.
NexButton::attachPop
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Register button pop callback function.
Definition: NexButton.cpp:70
NexPointer::getValue
bool getValue(uint32_t *number)
Get the value of pointer.
Definition: NexPointer.cpp:20
NexPointer
NexPointer,subclass of NexTouch,provides simple methods to control pointer component.
Definition: NexPointer.h:10
NexButton
NexButton,subclass of NexTouch,provides simple methods to control button component.
Definition: NexButton.h:25
-
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:420
+
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:415
NexPointer::setValue
bool setValue(uint32_t number)
Set the value of pointer.
Definition: NexPointer.cpp:37
NexTouch
Root Class of Nextion Components.
Definition: NexTouch.h:57
diff --git a/doc/API-html/_comp_progress_bar_8ino-example.html b/doc/API-html/_comp_progress_bar_8ino-example.html index ae83e4a..10f3a84 100644 --- a/doc/API-html/_comp_progress_bar_8ino-example.html +++ b/doc/API-html/_comp_progress_bar_8ino-example.html @@ -97,9 +97,6 @@ This program is free software; you can redistribute it and/or modify it under th
void setup(void)
{
-
uint32_t brightness = 0;
-
-
dbSerialBegin(9600);
nexInit();
btn_up.attachPop(buttonUpPopCallback);
btn_down.attachPop(buttonDownPopCallback);
@@ -114,7 +111,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_comp_progress_bar_8ino_source.html b/doc/API-html/_comp_progress_bar_8ino_source.html index bfc68a7..a044b0b 100644 --- a/doc/API-html/_comp_progress_bar_8ino_source.html +++ b/doc/API-html/_comp_progress_bar_8ino_source.html @@ -102,26 +102,23 @@
61 
62 void setup(void)
63 {
-
64  uint32_t brightness = 0;
-
65 
-
66  dbSerialBegin(9600);
-
67  nexInit();
-
68  btn_up.attachPop(buttonUpPopCallback);
-
69  btn_down.attachPop(buttonDownPopCallback);
-
70  dbSerialPrintln("setup done");
-
71 }
-
72 
-
73 void loop(void)
-
74 {
-
75  nexLoop(nex_listen_list);
-
76 }
-
77 
+
64  nexInit();
+
65  btn_up.attachPop(buttonUpPopCallback);
+
66  btn_down.attachPop(buttonDownPopCallback);
+
67  dbSerialPrintln("setup done");
+
68 }
+
69 
+
70 void loop(void)
+
71 {
+
72  nexLoop(nex_listen_list);
+
73 }
+
74 
NexProgressBar::setValue
bool setValue(uint32_t number)
Set the value of progress bar.
Definition: NexProgressBar.cpp:52
-
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:404
+
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:398
NexButton.h
API of NexButton.
NexButton::attachPop
void attachPop(NexTouchEventCb pop, void *ptr=NULL)
Register button pop callback function.
Definition: NexButton.cpp:70
NexButton
NexButton,subclass of NexTouch,provides simple methods to control button component.
Definition: NexButton.h:25
-
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:420
+
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:415
NexProgressBar::getValue
bool getValue(uint32_t *number)
Get the value of progress bar.
Definition: NexProgressBar.cpp:35
NexProgressBar.h
API of NexProgressBar.
NexTouch
Root Class of Nextion Components.
Definition: NexTouch.h:57
@@ -129,7 +126,7 @@ diff --git a/doc/API-html/_comp_text_8ino-example.html b/doc/API-html/_comp_text_8ino-example.html index f8226c4..ede86e3 100644 --- a/doc/API-html/_comp_text_8ino-example.html +++ b/doc/API-html/_comp_text_8ino-example.html @@ -116,7 +116,6 @@ This program is free software; you can redistribute it and/or modify it under th
void setup(void)
{
-
dbSerialBegin(9600);
nexInit();
dbSerialPrintln("setup done");
}
@@ -129,7 +128,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_comp_text_8ino_source.html b/doc/API-html/_comp_text_8ino_source.html index 12a61ea..7a36c29 100644 --- a/doc/API-html/_comp_text_8ino_source.html +++ b/doc/API-html/_comp_text_8ino_source.html @@ -121,29 +121,28 @@
80 
81 void setup(void)
82 {
-
83  dbSerialBegin(9600);
-
84  nexInit();
-
85  dbSerialPrintln("setup done");
-
86 }
-
87 
-
88 void loop(void)
-
89 {
-
90  nexLoop(nex_listen_list);
-
91 }
-
92 
+
83  nexInit();
+
84  dbSerialPrintln("setup done");
+
85 }
+
86 
+
87 void loop(void)
+
88 {
+
89  nexLoop(nex_listen_list);
+
90 }
+
91 
NexText::setText
bool setText(const char *buffer)
Set the value of text.
Definition: NexText.cpp:53
-
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:404
+
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:398
NexText.h
API of NexText.
NexButton.h
API of NexButton.
NexButton
NexButton,subclass of NexTouch,provides simple methods to control button component.
Definition: NexButton.h:25
-
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:420
+
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:415
NexText::getText
uint16_t getText(char *buffer, uint16_t len)
Get the value of text.
Definition: NexText.cpp:35
NexTouch
Root Class of Nextion Components.
Definition: NexTouch.h:57
NexText
NexText,subclass of NexTouch,provides simple methods to control text component.
Definition: NexText.h:25
diff --git a/doc/API-html/_nex_button_8cpp.html b/doc/API-html/_nex_button_8cpp.html index fccdc26..d99d6b4 100644 --- a/doc/API-html/_nex_button_8cpp.html +++ b/doc/API-html/_nex_button_8cpp.html @@ -66,7 +66,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_button_8cpp_source.html b/doc/API-html/_nex_button_8cpp_source.html index 077248d..d77c77d 100644 --- a/doc/API-html/_nex_button_8cpp_source.html +++ b/doc/API-html/_nex_button_8cpp_source.html @@ -103,7 +103,7 @@ diff --git a/doc/API-html/_nex_button_8h.html b/doc/API-html/_nex_button_8h.html index 4773527..a8ace4e 100644 --- a/doc/API-html/_nex_button_8h.html +++ b/doc/API-html/_nex_button_8h.html @@ -75,7 +75,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_button_8h_source.html b/doc/API-html/_nex_button_8h_source.html index 8c9c0a4..a25920b 100644 --- a/doc/API-html/_nex_button_8h_source.html +++ b/doc/API-html/_nex_button_8h_source.html @@ -80,7 +80,7 @@ diff --git a/doc/API-html/_nex_crop_8cpp.html b/doc/API-html/_nex_crop_8cpp.html index 212496d..7c260a8 100644 --- a/doc/API-html/_nex_crop_8cpp.html +++ b/doc/API-html/_nex_crop_8cpp.html @@ -66,7 +66,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_crop_8cpp_source.html b/doc/API-html/_nex_crop_8cpp_source.html index 8badcce..082c134 100644 --- a/doc/API-html/_nex_crop_8cpp_source.html +++ b/doc/API-html/_nex_crop_8cpp_source.html @@ -118,7 +118,7 @@ diff --git a/doc/API-html/_nex_crop_8h.html b/doc/API-html/_nex_crop_8h.html index 3a32842..a804fc4 100644 --- a/doc/API-html/_nex_crop_8h.html +++ b/doc/API-html/_nex_crop_8h.html @@ -75,7 +75,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_crop_8h_source.html b/doc/API-html/_nex_crop_8h_source.html index 7a688c1..01e1d4f 100644 --- a/doc/API-html/_nex_crop_8h_source.html +++ b/doc/API-html/_nex_crop_8h_source.html @@ -78,7 +78,7 @@ diff --git a/doc/API-html/_nex_hotspot_8cpp.html b/doc/API-html/_nex_hotspot_8cpp.html index ba9814f..6a7edce 100644 --- a/doc/API-html/_nex_hotspot_8cpp.html +++ b/doc/API-html/_nex_hotspot_8cpp.html @@ -66,7 +66,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_hotspot_8cpp_source.html b/doc/API-html/_nex_hotspot_8cpp_source.html index b26fc35..319843a 100644 --- a/doc/API-html/_nex_hotspot_8cpp_source.html +++ b/doc/API-html/_nex_hotspot_8cpp_source.html @@ -88,7 +88,7 @@ diff --git a/doc/API-html/_nex_hotspot_8h.html b/doc/API-html/_nex_hotspot_8h.html index cbee386..cee7872 100644 --- a/doc/API-html/_nex_hotspot_8h.html +++ b/doc/API-html/_nex_hotspot_8h.html @@ -75,7 +75,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_hotspot_8h_source.html b/doc/API-html/_nex_hotspot_8h_source.html index 3d5b26e..f4dc31e 100644 --- a/doc/API-html/_nex_hotspot_8h_source.html +++ b/doc/API-html/_nex_hotspot_8h_source.html @@ -82,7 +82,7 @@ diff --git a/doc/API-html/_nex_page_8cpp.html b/doc/API-html/_nex_page_8cpp.html index 1d5ae86..5b2fccd 100644 --- a/doc/API-html/_nex_page_8cpp.html +++ b/doc/API-html/_nex_page_8cpp.html @@ -66,7 +66,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_page_8cpp_source.html b/doc/API-html/_nex_page_8cpp_source.html index 4a2eb35..5a52df2 100644 --- a/doc/API-html/_nex_page_8cpp_source.html +++ b/doc/API-html/_nex_page_8cpp_source.html @@ -94,7 +94,7 @@ diff --git a/doc/API-html/_nex_page_8h.html b/doc/API-html/_nex_page_8h.html index a74c546..ca59e1c 100644 --- a/doc/API-html/_nex_page_8h.html +++ b/doc/API-html/_nex_page_8h.html @@ -75,7 +75,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_page_8h_source.html b/doc/API-html/_nex_page_8h_source.html index b29de49..d61787a 100644 --- a/doc/API-html/_nex_page_8h_source.html +++ b/doc/API-html/_nex_page_8h_source.html @@ -78,7 +78,7 @@ diff --git a/doc/API-html/_nex_picture_8cpp.html b/doc/API-html/_nex_picture_8cpp.html index fdd86f6..30545fb 100644 --- a/doc/API-html/_nex_picture_8cpp.html +++ b/doc/API-html/_nex_picture_8cpp.html @@ -66,7 +66,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_picture_8cpp_source.html b/doc/API-html/_nex_picture_8cpp_source.html index b0ff0ae..add4222 100644 --- a/doc/API-html/_nex_picture_8cpp_source.html +++ b/doc/API-html/_nex_picture_8cpp_source.html @@ -104,7 +104,7 @@ diff --git a/doc/API-html/_nex_picture_8h.html b/doc/API-html/_nex_picture_8h.html index a68417e..0061ad4 100644 --- a/doc/API-html/_nex_picture_8h.html +++ b/doc/API-html/_nex_picture_8h.html @@ -75,7 +75,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_picture_8h_source.html b/doc/API-html/_nex_picture_8h_source.html index 225560d..291df10 100644 --- a/doc/API-html/_nex_picture_8h_source.html +++ b/doc/API-html/_nex_picture_8h_source.html @@ -80,7 +80,7 @@ diff --git a/doc/API-html/_nex_pointer_8cpp_source.html b/doc/API-html/_nex_pointer_8cpp_source.html index ebb08f1..33e4e3f 100644 --- a/doc/API-html/_nex_pointer_8cpp_source.html +++ b/doc/API-html/_nex_pointer_8cpp_source.html @@ -90,7 +90,7 @@ diff --git a/doc/API-html/_nex_pointer_8h_source.html b/doc/API-html/_nex_pointer_8h_source.html index fc06cd6..0bac0b9 100644 --- a/doc/API-html/_nex_pointer_8h_source.html +++ b/doc/API-html/_nex_pointer_8h_source.html @@ -74,7 +74,7 @@ diff --git a/doc/API-html/_nex_progress_bar_8cpp.html b/doc/API-html/_nex_progress_bar_8cpp.html index 29cec9f..abe21f3 100644 --- a/doc/API-html/_nex_progress_bar_8cpp.html +++ b/doc/API-html/_nex_progress_bar_8cpp.html @@ -66,7 +66,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_progress_bar_8cpp_source.html b/doc/API-html/_nex_progress_bar_8cpp_source.html index 3873b6d..3169798 100644 --- a/doc/API-html/_nex_progress_bar_8cpp_source.html +++ b/doc/API-html/_nex_progress_bar_8cpp_source.html @@ -92,7 +92,7 @@ diff --git a/doc/API-html/_nex_progress_bar_8h.html b/doc/API-html/_nex_progress_bar_8h.html index 35ea2e8..bd5d955 100644 --- a/doc/API-html/_nex_progress_bar_8h.html +++ b/doc/API-html/_nex_progress_bar_8h.html @@ -75,7 +75,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_progress_bar_8h_source.html b/doc/API-html/_nex_progress_bar_8h_source.html index dfef302..6204002 100644 --- a/doc/API-html/_nex_progress_bar_8h_source.html +++ b/doc/API-html/_nex_progress_bar_8h_source.html @@ -75,7 +75,7 @@ diff --git a/doc/API-html/_nex_serial_config_8h.html b/doc/API-html/_nex_serial_config_8h.html index 90d0950..d9cb29f 100644 --- a/doc/API-html/_nex_serial_config_8h.html +++ b/doc/API-html/_nex_serial_config_8h.html @@ -65,7 +65,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_serial_config_8h_source.html b/doc/API-html/_nex_serial_config_8h_source.html index e2a89d0..987523c 100644 --- a/doc/API-html/_nex_serial_config_8h_source.html +++ b/doc/API-html/_nex_serial_config_8h_source.html @@ -59,24 +59,24 @@
22 /* define serial for debug */
23 #define dbSerial Serial
24 
-
25 #ifdef DEBUG_SERIAL_ENABLE
-
26 #define dbSerialPrint(a) dbSerial.print(a)
-
27 #define dbSerialPrintln(a) dbSerial.println(a)
-
28 #define dbSerialBegin(a) dbSerial.begin(a)
-
29 #else
-
30 #define dbSerialPrint(a)
-
31 #define dbSerialPrintln(a)
-
32 #define dbSerialBegin(a)
-
33 #endif
-
34 
-
35 /* define serial for communicate with Nextion screen */
-
36 #define nexSerial Serial2
+
25 /* define serial for communicate with Nextion screen */
+
26 #define nexSerial Serial2
+
27 
+
28 #ifdef DEBUG_SERIAL_ENABLE
+
29 #define dbSerialPrint(a) dbSerial.print(a)
+
30 #define dbSerialPrintln(a) dbSerial.println(a)
+
31 #define dbSerialBegin(a) dbSerial.begin(a)
+
32 #else
+
33 #define dbSerialPrint(a)
+
34 #define dbSerialPrintln(a)
+
35 #define dbSerialBegin(a)
+
36 #endif
37 
38 #endif
diff --git a/doc/API-html/_nex_text_8cpp.html b/doc/API-html/_nex_text_8cpp.html index 125bce0..388f931 100644 --- a/doc/API-html/_nex_text_8cpp.html +++ b/doc/API-html/_nex_text_8cpp.html @@ -66,7 +66,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_text_8cpp_source.html b/doc/API-html/_nex_text_8cpp_source.html index 9f23e5f..d80ea13 100644 --- a/doc/API-html/_nex_text_8cpp_source.html +++ b/doc/API-html/_nex_text_8cpp_source.html @@ -102,7 +102,7 @@ diff --git a/doc/API-html/_nex_text_8h.html b/doc/API-html/_nex_text_8h.html index d69e474..43aad28 100644 --- a/doc/API-html/_nex_text_8h.html +++ b/doc/API-html/_nex_text_8h.html @@ -75,7 +75,7 @@ This program is free software; you can redistribute it and/or modify it under th diff --git a/doc/API-html/_nex_text_8h_source.html b/doc/API-html/_nex_text_8h_source.html index 414cada..a4b9dbc 100644 --- a/doc/API-html/_nex_text_8h_source.html +++ b/doc/API-html/_nex_text_8h_source.html @@ -80,7 +80,7 @@ diff --git a/doc/API-html/_nex_touch_8cpp.html b/doc/API-html/_nex_touch_8cpp.html index 65edf92..fb2b4fb 100644 --- a/doc/API-html/_nex_touch_8cpp.html +++ b/doc/API-html/_nex_touch_8cpp.html @@ -66,36 +66,6 @@ Functions bool nexLoop (NexTouch **nex_listen_list)  Call mainEventLoop,watting for Nextion's touch event. More...
  -bool sendCurrentPageId (uint8_t *pageId) - Return current page id. More...
-  -bool touchCalibration (void) - Touch screen calibration. More...
-  -bool disableTouchFocus (void) - Disable all touch hot. More...
-  -bool pauseSerialCommand (void) - Pause serial instruction execution. More...
-  -bool recoverySerialCommand (void) - Recovery serial instruction execution. More...
-  -bool setCurrentBrightness (uint8_t dimValue) - Set current backlight brightness value. More...
-  -bool setDefaultBrightness (uint8_t dimDefaultValue) - Set default backlight brightness value. More...
-  -bool sleepMode (uint8_t mode) - Set device in sleep mode. More...
-  -bool setCurrentBaudrate (uint32_t baudrate) - Set current baudrate. More...
-  -bool setDefaultBaudrate (uint32_t defaultBaudrate) - Set default baudrate. More...

Detailed Description

API of Nextion.

@@ -106,33 +76,6 @@ This program is free software; you can redistribute it and/or modify it under th

Definition in file NexTouch.cpp.

Function Documentation

- -
-
- - - - - - - - -
bool disableTouchFocus (void )
-
- -

Disable all touch hot.

-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 508 of file NexTouch.cpp.

- -
-
@@ -157,7 +100,7 @@ This program is free software; you can redistribute it and/or modify it under th
Examples:
CompButton.ino, CompCrop.ino, CompHotspot.ino, CompPage.ino, CompPicture.ino, CompPointer.ino, CompProgressBar.ino, and CompText.ino.
-

Definition at line 404 of file NexTouch.cpp.

+

Definition at line 398 of file NexTouch.cpp.

@@ -190,293 +133,14 @@ This program is free software; you can redistribute it and/or modify it under th
Examples:
CompButton.ino, CompCrop.ino, CompHotspot.ino, CompPage.ino, CompPicture.ino, CompPointer.ino, CompProgressBar.ino, and CompText.ino.
-

Definition at line 420 of file NexTouch.cpp.

- - - - -
-
- - - - - - - - -
bool pauseSerialCommand (void )
-
- -

Pause serial instruction execution.

-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 532 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool recoverySerialCommand (void )
-
- -

Recovery serial instruction execution.

-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 557 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool sendCurrentPageId (uint8_t * pageId)
-
- -

Return current page id.

-
Parameters
- - -
pageId- output parameter,to save page id.
-
-
-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 434 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool setCurrentBaudrate (uint32_t baudrate)
-
- -

Set current baudrate.

-
Parameters
- - -
baudrate- current baudrate,it supports 2400,4800,9600,19200,38400,57600,115200.
-
-
-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 689 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool setCurrentBrightness (uint8_t dimValue)
-
- -

Set current backlight brightness value.

-
Parameters
- - -
dimValue- current backlight brightness value.
-
-
-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 583 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool setDefaultBaudrate (uint32_t defaultBaudrate)
-
- -

Set default baudrate.

-
Parameters
- - -
defaultBaudrate- default baudrate,it supports 2400,4800,9600,19200,38400,57600,115200.
-
-
-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 721 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool setDefaultBrightness (uint8_t dimDefaultValue)
-
- -

Set default backlight brightness value.

-
Parameters
- - -
dimDefaultValue- default backlight brightness value.
-
-
-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 618 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool sleepMode (uint8_t mode)
-
- -

Set device in sleep mode.

-
Parameters
- - -
mode- 1:into sleep mode,0:exit sleep mode.
-
-
-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 652 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool touchCalibration (void )
-
- -

Touch screen calibration.

-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 484 of file NexTouch.cpp.

+

Definition at line 415 of file NexTouch.cpp.

diff --git a/doc/API-html/_nex_touch_8cpp_source.html b/doc/API-html/_nex_touch_8cpp_source.html index 96f8bda..21e5699 100644 --- a/doc/API-html/_nex_touch_8cpp_source.html +++ b/doc/API-html/_nex_touch_8cpp_source.html @@ -354,322 +354,290 @@
389  return ret;
390 }
391 
-
392 bool NexTouch::getBrightness(uint32_t *brightness)
-
393 {
-
394  sendCommand("get dim");
-
395  return recvRetNumber(brightness);
-
396 }
-
397 
-
404 bool nexInit(void)
-
405 {
-
406  nexSerial.begin(9600);
-
407  NexTouch::sendCommand("");
-
408  NexTouch::sendCommand("page 0");
-
409  delay(100);
-
410  return true;
-
411 }
-
412 
-
420 bool nexLoop(NexTouch **nex_listen_list)
-
421 {
-
422  NexTouch::mainEventLoop(nex_listen_list);
-
423  return false;
-
424 }
-
425 
-
434 bool sendCurrentPageId(uint8_t* pageId)
-
435 {
-
436 
-
437  bool ret = false;
-
438  uint8_t temp[5] = {0};
-
439 
-
440  if (!pageId)
-
441  {
-
442  goto __return;
-
443  }
-
444  NexTouch::sendCommand("sendme");
-
445  delay(50);
-
446  nexSerial.setTimeout(500);
-
447  if (sizeof(temp) != nexSerial.readBytes((char *)temp, sizeof(temp)))
-
448  {
-
449  goto __return;
-
450  }
-
451 
-
452  if (temp[0] == NEX_RET_CURRENT_PAGE_ID_HEAD
-
453  && temp[2] == 0xFF
-
454  && temp[3] == 0xFF
-
455  && temp[4] == 0xFF
-
456  )
-
457  {
-
458  *pageId = temp[1];
-
459  ret = true;
-
460  }
-
461 
-
462  __return:
-
463 
-
464  if (ret)
-
465  {
-
466  dbSerialPrint("recvPageId :");
-
467  dbSerialPrintln(*pageId);
+
398 bool nexInit(void)
+
399 {
+
400  dbSerialBegin(9600);
+
401  nexSerial.begin(9600);
+
402  NexTouch::sendCommand("");
+
403  NexTouch::sendCommand("page 0");
+
404  delay(100);
+
405  return true;
+
406 }
+
407 
+
415 bool nexLoop(NexTouch **nex_listen_list)
+
416 {
+
417  NexTouch::mainEventLoop(nex_listen_list);
+
418  return false;
+
419 }
+
420 
+
421 #if 0
+
422 
+
430 bool sendCurrentPageId(uint8_t* pageId)
+
431 {
+
432 
+
433  bool ret = false;
+
434  uint8_t temp[5] = {0};
+
435 
+
436  if (!pageId)
+
437  {
+
438  goto __return;
+
439  }
+
440  NexTouch::sendCommand("sendme");
+
441  delay(50);
+
442  nexSerial.setTimeout(500);
+
443  if (sizeof(temp) != nexSerial.readBytes((char *)temp, sizeof(temp)))
+
444  {
+
445  goto __return;
+
446  }
+
447 
+
448  if (temp[0] == NEX_RET_CURRENT_PAGE_ID_HEAD
+
449  && temp[2] == 0xFF
+
450  && temp[3] == 0xFF
+
451  && temp[4] == 0xFF
+
452  )
+
453  {
+
454  *pageId = temp[1];
+
455  ret = true;
+
456  }
+
457 
+
458  __return:
+
459 
+
460  if (ret)
+
461  {
+
462  dbSerialPrint("recvPageId :");
+
463  dbSerialPrintln(*pageId);
+
464  }
+
465  else
+
466  {
+
467  dbSerialPrintln("recvPageId err");
468  }
-
469  else
-
470  {
-
471  dbSerialPrintln("recvPageId err");
-
472  }
+
469 
+
470  return ret;
+
471 
+
472 }
473 
-
474  return ret;
-
475 
-
476 }
-
477 
-
484 bool touchCalibration(void)
-
485 {
-
486  bool ret = false;
-
487  NexTouch::sendCommand("touch_j");
-
488  delay(10);
-
489  if(NexTouch::recvRetCommandFinished())
-
490  {
-
491  dbSerialPrintln("TouchCalibration ok ");
-
492  ret = true;
+
480 bool touchCalibration(void)
+
481 {
+
482  bool ret = false;
+
483  NexTouch::sendCommand("touch_j");
+
484  delay(10);
+
485  if(NexTouch::recvRetCommandFinished())
+
486  {
+
487  dbSerialPrintln("TouchCalibration ok ");
+
488  ret = true;
+
489  }
+
490  else
+
491  {
+
492  dbSerialPrintln("TouchCalibration err ");
493  }
-
494  else
-
495  {
-
496  dbSerialPrintln("TouchCalibration err ");
-
497  }
-
498 
-
499  return ret;
-
500 }
-
501 
-
508 bool disableTouchFocus(void)
-
509 {
-
510  bool ret = false;
-
511  NexTouch::sendCommand("cle_c");
-
512  delay(10);
-
513  if(NexTouch::recvRetCommandFinished())
-
514  {
-
515  dbSerialPrintln("disableTouchFocus ok ");
-
516  ret = true;
+
494 
+
495  return ret;
+
496 }
+
497 
+
504 bool disableTouchFocus(void)
+
505 {
+
506  bool ret = false;
+
507  NexTouch::sendCommand("cle_c");
+
508  delay(10);
+
509  if(NexTouch::recvRetCommandFinished())
+
510  {
+
511  dbSerialPrintln("disableTouchFocus ok ");
+
512  ret = true;
+
513  }
+
514  else
+
515  {
+
516  dbSerialPrintln("disableTouchFocus err ");
517  }
-
518  else
-
519  {
-
520  dbSerialPrintln("disableTouchFocus err ");
-
521  }
-
522 
-
523  return ret;
-
524 }
-
525 
-
532 bool pauseSerialCommand(void)
-
533 {
-
534 
-
535  bool ret = false;
-
536  NexTouch::sendCommand("com_stop");
-
537  delay(10);
-
538  if(NexTouch::recvRetCommandFinished())
-
539  {
-
540  dbSerialPrintln("pauseSerialCommand ok ");
-
541  ret = true;
+
518 
+
519  return ret;
+
520 }
+
521 
+
528 bool pauseSerialCommand(void)
+
529 {
+
530 
+
531  bool ret = false;
+
532  NexTouch::sendCommand("com_stop");
+
533  delay(10);
+
534  if(NexTouch::recvRetCommandFinished())
+
535  {
+
536  dbSerialPrintln("pauseSerialCommand ok ");
+
537  ret = true;
+
538  }
+
539  else
+
540  {
+
541  dbSerialPrintln("pauseSerialCommand err ");
542  }
-
543  else
-
544  {
-
545  dbSerialPrintln("pauseSerialCommand err ");
-
546  }
-
547 
-
548  return ret;
-
549 }
-
550 
-
557 bool recoverySerialCommand(void)
-
558 {
-
559  bool ret = false;
-
560  NexTouch::sendCommand("com_star");
-
561  delay(10);
-
562  if(NexTouch::recvRetCommandFinished())
-
563  {
-
564  dbSerialPrintln("recoverySerialCommand ok ");
-
565  ret = true;
+
543 
+
544  return ret;
+
545 }
+
546 
+
553 bool recoverySerialCommand(void)
+
554 {
+
555  bool ret = false;
+
556  NexTouch::sendCommand("com_star");
+
557  delay(10);
+
558  if(NexTouch::recvRetCommandFinished())
+
559  {
+
560  dbSerialPrintln("recoverySerialCommand ok ");
+
561  ret = true;
+
562  }
+
563  else
+
564  {
+
565  dbSerialPrintln("recoverySerialCommand err ");
566  }
-
567  else
-
568  {
-
569  dbSerialPrintln("recoverySerialCommand err ");
-
570  }
-
571 
-
572  return ret;
-
573 }
-
574 
-
583 bool setCurrentBrightness(uint8_t dimValue)
-
584 {
-
585  bool ret = false;
-
586  char buf[10] = {0};
-
587  String cmd;
-
588  utoa(dimValue, buf, 10);
-
589  cmd += "dim=";
-
590  cmd += buf;
-
591  NexTouch::sendCommand(cmd.c_str());
-
592  delay(10);
-
593 
-
594  if(NexTouch::recvRetCommandFinished())
-
595  {
-
596  dbSerialPrint("setCurrentBrightness[ ");
-
597  dbSerialPrint(dimValue);
-
598  dbSerialPrintln("]ok ");
-
599 
-
600  ret = true;
+
567 
+
568  return ret;
+
569 }
+
570 
+
579 bool setCurrentBrightness(uint8_t dimValue)
+
580 {
+
581  bool ret = false;
+
582  char buf[10] = {0};
+
583  String cmd;
+
584  utoa(dimValue, buf, 10);
+
585  cmd += "dim=";
+
586  cmd += buf;
+
587  NexTouch::sendCommand(cmd.c_str());
+
588  delay(10);
+
589 
+
590  if(NexTouch::recvRetCommandFinished())
+
591  {
+
592  dbSerialPrint("setCurrentBrightness[ ");
+
593  dbSerialPrint(dimValue);
+
594  dbSerialPrintln("]ok ");
+
595 
+
596  ret = true;
+
597  }
+
598  else
+
599  {
+
600  dbSerialPrintln("setCurrentBrightness err ");
601  }
-
602  else
-
603  {
-
604  dbSerialPrintln("setCurrentBrightness err ");
-
605  }
-
606 
-
607  return ret;
-
608 }
-
609 
-
618 bool setDefaultBrightness(uint8_t dimDefaultValue)
-
619 {
-
620  bool ret = false;
-
621  char buf[10] = {0};
-
622  String cmd;
-
623  utoa(dimDefaultValue, buf, 10);
-
624  cmd += "dims=";
-
625  cmd += buf;
-
626  NexTouch::sendCommand(cmd.c_str());
-
627  delay(10);
-
628 
-
629  if(NexTouch::recvRetCommandFinished())
-
630  {
-
631  dbSerialPrint("setDefaultBrightness[");
-
632  dbSerialPrint(dimDefaultValue);
-
633  dbSerialPrintln("]ok");
-
634  ret = true;
+
602 
+
603  return ret;
+
604 }
+
605 
+
614 bool setDefaultBrightness(uint8_t dimDefaultValue)
+
615 {
+
616  bool ret = false;
+
617  char buf[10] = {0};
+
618  String cmd;
+
619  utoa(dimDefaultValue, buf, 10);
+
620  cmd += "dims=";
+
621  cmd += buf;
+
622  NexTouch::sendCommand(cmd.c_str());
+
623  delay(10);
+
624 
+
625  if(NexTouch::recvRetCommandFinished())
+
626  {
+
627  dbSerialPrint("setDefaultBrightness[");
+
628  dbSerialPrint(dimDefaultValue);
+
629  dbSerialPrintln("]ok");
+
630  ret = true;
+
631  }
+
632  else
+
633  {
+
634  dbSerialPrintln("setDefaultBrightness err ");
635  }
-
636  else
-
637  {
-
638  dbSerialPrintln("setDefaultBrightness err ");
-
639  }
-
640 
-
641  return ret;
-
642 }
-
643 
-
652 bool sleepMode(uint8_t mode)
-
653 {
-
654  bool ret = false;
-
655  char buf[10] = {0};
-
656  String cmd;
-
657  if(mode != 0 && mode != 1)
-
658  {
-
659  dbSerialPrintln("mode input ok ");
-
660  return ret;
-
661  }
-
662  utoa(mode, buf, 10);
-
663  cmd += "sleep=";
-
664  cmd += buf;
-
665  NexTouch::sendCommand(cmd.c_str());
-
666  delay(10);
-
667 
-
668  if(NexTouch::recvRetCommandFinished())
-
669  {
-
670  dbSerialPrintln("sleepMode ok ");
-
671  ret = true;
+
636 
+
637  return ret;
+
638 }
+
639 
+
648 bool sleepMode(uint8_t mode)
+
649 {
+
650  bool ret = false;
+
651  char buf[10] = {0};
+
652  String cmd;
+
653  if(mode != 0 && mode != 1)
+
654  {
+
655  dbSerialPrintln("mode input ok ");
+
656  return ret;
+
657  }
+
658  utoa(mode, buf, 10);
+
659  cmd += "sleep=";
+
660  cmd += buf;
+
661  NexTouch::sendCommand(cmd.c_str());
+
662  delay(10);
+
663 
+
664  if(NexTouch::recvRetCommandFinished())
+
665  {
+
666  dbSerialPrintln("sleepMode ok ");
+
667  ret = true;
+
668  }
+
669  else
+
670  {
+
671  dbSerialPrintln("sleepMode err ");
672  }
-
673  else
-
674  {
-
675  dbSerialPrintln("sleepMode err ");
-
676  }
-
677 
-
678  return ret;
-
679 }
-
680 
-
689 bool setCurrentBaudrate(uint32_t baudrate)
-
690 {
-
691  bool ret = false;
-
692  char buf[10] = {0};
-
693  String cmd;
-
694  utoa(baudrate, buf, 10);
-
695  cmd += "baud=";
-
696  cmd += buf;
-
697  NexTouch::sendCommand(cmd.c_str());
-
698  delay(10);
-
699 
-
700  if(NexTouch::recvRetCommandFinished())
-
701  {
-
702  dbSerialPrintln("setCurrentBaudrate ok ");
-
703  ret = true;
+
673 
+
674  return ret;
+
675 }
+
676 
+
685 bool setCurrentBaudrate(uint32_t baudrate)
+
686 {
+
687  bool ret = false;
+
688  char buf[10] = {0};
+
689  String cmd;
+
690  utoa(baudrate, buf, 10);
+
691  cmd += "baud=";
+
692  cmd += buf;
+
693  NexTouch::sendCommand(cmd.c_str());
+
694  delay(10);
+
695 
+
696  if(NexTouch::recvRetCommandFinished())
+
697  {
+
698  dbSerialPrintln("setCurrentBaudrate ok ");
+
699  ret = true;
+
700  }
+
701  else
+
702  {
+
703  dbSerialPrintln("setCurrentBaudrate err ");
704  }
-
705  else
-
706  {
-
707  dbSerialPrintln("setCurrentBaudrate err ");
-
708  }
-
709 
-
710  return ret;
-
711 }
-
712 
-
721 bool setDefaultBaudrate(uint32_t defaultBaudrate)
-
722 {
-
723  bool ret = false;
-
724  char buf[10] = {0};
-
725  String cmd;
-
726  utoa(defaultBaudrate, buf, 10);
-
727  cmd += "bauds=";
-
728  cmd += buf;
-
729  NexTouch::sendCommand(cmd.c_str());
-
730  delay(10);
-
731 
-
732  if(NexTouch::recvRetCommandFinished())
-
733  {
-
734  dbSerialPrintln("setDefaultBaudrate ok ");
-
735  ret = true;
+
705 
+
706  return ret;
+
707 }
+
708 
+
717 bool setDefaultBaudrate(uint32_t defaultBaudrate)
+
718 {
+
719  bool ret = false;
+
720  char buf[10] = {0};
+
721  String cmd;
+
722  utoa(defaultBaudrate, buf, 10);
+
723  cmd += "bauds=";
+
724  cmd += buf;
+
725  NexTouch::sendCommand(cmd.c_str());
+
726  delay(10);
+
727 
+
728  if(NexTouch::recvRetCommandFinished())
+
729  {
+
730  dbSerialPrintln("setDefaultBaudrate ok ");
+
731  ret = true;
+
732  }
+
733  else
+
734  {
+
735  dbSerialPrintln("setDefaultBaudrate err ");
736  }
-
737  else
-
738  {
-
739  dbSerialPrintln("setDefaultBaudrate err ");
-
740  }
-
741 
-
742  return ret;
-
743 }
-
744 
-
745 
-
746 
-
747 
-
748 
-
749 
-
750 
-
751 
-
752 
-
753 
-
754 
-
755 
-
756 
-
757 
-
758 
-
759 
-
760 
-
761 
-
762 
-
763 
-
764 
+
737 
+
738  return ret;
+
739 }
+
740 
+
741 #endif
NexTouch::getPid
NexPid getPid(void)
Get page id.
Definition: NexTouch.cpp:87
-
setDefaultBaudrate
bool setDefaultBaudrate(uint32_t defaultBaudrate)
Set default baudrate.
Definition: NexTouch.cpp:721
NexTouch::NexTouch
NexTouch(NexPid pid, NexCid cid, char *name, NexTouchEventCb pop=NULL, void *pop_ptr=NULL, NexTouchEventCb push=NULL, void *push_ptr=NULL)
Constructor of Nextouch.
Definition: NexTouch.cpp:69
-
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:404
+
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:398
NexTouch::sendCommand
static void sendCommand(const char *cmd)
Send command to Nextion.
Definition: NexTouch.cpp:256
NexTouch::getObjName
const char * getObjName(void)
Get component name.
Definition: NexTouch.cpp:107
-
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:420
+
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:415
NexTouch::print
void print(void)
Print current object address,page id,component id, component name,pop event function address...
Definition: NexTouch.cpp:117
NexTouch::mainEventLoop
static uint8_t mainEventLoop(NexTouch **list)
Watting for Nextion's touch event.
Definition: NexTouch.cpp:26
-
disableTouchFocus
bool disableTouchFocus(void)
Disable all touch hot.
Definition: NexTouch.cpp:508
NexTouch::getCid
NexCid getCid(void)
Get component id.
Definition: NexTouch.cpp:97
-
setDefaultBrightness
bool setDefaultBrightness(uint8_t dimDefaultValue)
Set default backlight brightness value.
Definition: NexTouch.cpp:618
-
sendCurrentPageId
bool sendCurrentPageId(uint8_t *pageId)
Return current page id.
Definition: NexTouch.cpp:434
NexTouch.h
API of Nextion.
-
recoverySerialCommand
bool recoverySerialCommand(void)
Recovery serial instruction execution.
Definition: NexTouch.cpp:557
-
sleepMode
bool sleepMode(uint8_t mode)
Set device in sleep mode.
Definition: NexTouch.cpp:652
-
setCurrentBaudrate
bool setCurrentBaudrate(uint32_t baudrate)
Set current baudrate.
Definition: NexTouch.cpp:689
-
pauseSerialCommand
bool pauseSerialCommand(void)
Pause serial instruction execution.
Definition: NexTouch.cpp:532
NexTouch::recvRetNumber
static bool recvRetNumber(uint32_t *number, uint32_t timeout=500)
Receive uint32_t data.
Definition: NexTouch.cpp:351
NexTouch::recvRetString
static uint16_t recvRetString(char *buffer, uint16_t len, uint32_t timeout=500)
Receive string data.
Definition: NexTouch.cpp:279
-
setCurrentBrightness
bool setCurrentBrightness(uint8_t dimValue)
Set current backlight brightness value.
Definition: NexTouch.cpp:583
NexTouch::recvRetCommandFinished
static bool recvRetCommandFinished(uint32_t timeout=100)
Command is executed successfully.
Definition: NexTouch.cpp:219
NexTouch
Root Class of Nextion Components.
Definition: NexTouch.h:57
-
touchCalibration
bool touchCalibration(void)
Touch screen calibration.
Definition: NexTouch.cpp:484
diff --git a/doc/API-html/_nex_touch_8h.html b/doc/API-html/_nex_touch_8h.html index 42d6cb6..d0a78b8 100644 --- a/doc/API-html/_nex_touch_8h.html +++ b/doc/API-html/_nex_touch_8h.html @@ -74,36 +74,6 @@ Functions bool nexLoop (NexTouch **nex_listen_list)  Call mainEventLoop,watting for Nextion's touch event. More...
  -bool sendCurrentPageId (uint8_t *pageId) - Return current page id. More...
-  -bool touchCalibration (void) - Touch screen calibration. More...
-  -bool disableTouchFocus (void) - Disable all touch hot. More...
-  -bool pauseSerialCommand (void) - Pause serial instruction execution. More...
-  -bool recoverySerialCommand (void) - Recovery serial instruction execution. More...
-  -bool setCurrentBrightness (uint8_t dimValue) - Set current backlight brightness value. More...
-  -bool setDefaultBrightness (uint8_t dimDefaultValue) - Set default backlight brightness value. More...
-  -bool sleepMode (uint8_t mode) - Set device in sleep mode. More...
-  -bool setCurrentBaudrate (uint32_t baudrate) - Set current baudrate. More...
-  -bool setDefaultBaudrate (uint32_t baudrate) - Set default baudrate. More...

Detailed Description

API of Nextion.

@@ -114,33 +84,6 @@ This program is free software; you can redistribute it and/or modify it under th

Definition in file NexTouch.h.

Function Documentation

- -
-
- - - - - - - - -
bool disableTouchFocus (void )
-
- -

Disable all touch hot.

-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 508 of file NexTouch.cpp.

- -
-
@@ -164,7 +107,7 @@ This program is free software; you can redistribute it and/or modify it under th -

Definition at line 404 of file NexTouch.cpp.

+

Definition at line 398 of file NexTouch.cpp.

@@ -196,293 +139,14 @@ This program is free software; you can redistribute it and/or modify it under th -

Definition at line 420 of file NexTouch.cpp.

- - - - -
-
- - - - - - - - -
bool pauseSerialCommand (void )
-
- -

Pause serial instruction execution.

-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 532 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool recoverySerialCommand (void )
-
- -

Recovery serial instruction execution.

-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 557 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool sendCurrentPageId (uint8_t * pageId)
-
- -

Return current page id.

-
Parameters
- - -
pageId- output parameter,to save page id.
-
-
-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 434 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool setCurrentBaudrate (uint32_t baudrate)
-
- -

Set current baudrate.

-
Parameters
- - -
baudrate- current baudrate,it supports 2400,4800,9600,19200,38400,57600,115200.
-
-
-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 689 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool setCurrentBrightness (uint8_t dimValue)
-
- -

Set current backlight brightness value.

-
Parameters
- - -
dimValue- current backlight brightness value.
-
-
-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 583 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool setDefaultBaudrate (uint32_t defaultBaudrate)
-
- -

Set default baudrate.

-
Parameters
- - -
defaultBaudrate- default baudrate,it supports 2400,4800,9600,19200,38400,57600,115200.
-
-
-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 721 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool setDefaultBrightness (uint8_t dimDefaultValue)
-
- -

Set default backlight brightness value.

-
Parameters
- - -
dimDefaultValue- default backlight brightness value.
-
-
-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 618 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool sleepMode (uint8_t mode)
-
- -

Set device in sleep mode.

-
Parameters
- - -
mode- 1:into sleep mode,0:exit sleep mode.
-
-
-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 652 of file NexTouch.cpp.

- -
-
- -
-
- - - - - - - - -
bool touchCalibration (void )
-
- -

Touch screen calibration.

-
Return values
- - - -
true- success.
false- failed.
-
-
- -

Definition at line 484 of file NexTouch.cpp.

+

Definition at line 415 of file NexTouch.cpp.

diff --git a/doc/API-html/_nex_touch_8h_source.html b/doc/API-html/_nex_touch_8h_source.html index 82607bd..e7bf2b3 100644 --- a/doc/API-html/_nex_touch_8h_source.html +++ b/doc/API-html/_nex_touch_8h_source.html @@ -107,79 +107,70 @@
74  void print(void);
75 
76 protected: /* static methods */
-
77  static bool setBrightness(uint32_t brightness);
-
78  static bool getBrightness(uint32_t *brightness);
-
79 
-
80 protected: /* methods */
-
81  void attachPush(NexTouchEventCb push, void *ptr = NULL);
-
82  void detachPush(void);
-
83  void attachPop(NexTouchEventCb pop, void *ptr = NULL);
-
84  void detachPop(void);
-
85 
-
86 private: /* static methods */
-
87  static void iterate(NexTouch **list, NexPid pid, NexCid cid, NexEventType event);
-
88 
-
89 private: /* methods */
-
90  void push(void);
-
91  void pop(void);
-
92 
-
93 private: /* static data */
-
94  static uint8_t __buffer[256];
-
95 
-
96 private: /* data */
-
97  NexPid pid; /* Page ID */
-
98  NexCid cid; /* Component ID */
-
99  char *name; /* An unique name */
-
100  NexTouchEventCb cbPush;
-
101  void *__cbpush_ptr;
-
102  NexTouchEventCb cbPop;
-
103  void *__cbpop_ptr;
-
104 };
-
105 
-
106 bool nexInit(void);
-
107 bool nexLoop(NexTouch **nex_listen_list);
-
108 bool sendCurrentPageId(uint8_t* pageId);
-
109 bool touchCalibration(void);
-
110 bool disableTouchFocus(void);
-
111 bool pauseSerialCommand(void);
-
112 bool recoverySerialCommand(void);
+
77 
+
78 protected: /* methods */
+
79  void attachPush(NexTouchEventCb push, void *ptr = NULL);
+
80  void detachPush(void);
+
81  void attachPop(NexTouchEventCb pop, void *ptr = NULL);
+
82  void detachPop(void);
+
83 
+
84 private: /* static methods */
+
85  static void iterate(NexTouch **list, NexPid pid, NexCid cid, NexEventType event);
+
86 
+
87 private: /* methods */
+
88  void push(void);
+
89  void pop(void);
+
90 
+
91 private: /* static data */
+
92  static uint8_t __buffer[256];
+
93 
+
94 private: /* data */
+
95  NexPid pid; /* Page ID */
+
96  NexCid cid; /* Component ID */
+
97  char *name; /* An unique name */
+
98  NexTouchEventCb cbPush;
+
99  void *__cbpush_ptr;
+
100  NexTouchEventCb cbPop;
+
101  void *__cbpop_ptr;
+
102 };
+
103 
+
104 bool nexInit(void);
+
105 bool nexLoop(NexTouch **nex_listen_list);
+
106 
+
107 #if 0
+
108 bool sendCurrentPageId(uint8_t* pageId);
+
109 bool touchCalibration(void);
+
110 bool disableTouchFocus(void);
+
111 bool pauseSerialCommand(void);
+
112 bool recoverySerialCommand(void);
113 bool clearSerialSurplusCommand(void);
-
114 bool setCurrentBrightness(uint8_t dimValue);
-
115 bool setDefaultBrightness(uint8_t dimDefaultValue);
-
116 bool sleepMode(uint8_t mode);
-
117 bool setCurrentBaudrate(uint32_t baudrate);
-
118 bool setDefaultBaudrate(uint32_t baudrate);
-
119 
-
120 #endif /* #ifdef __cplusplus */
-
121 #endif /* #ifndef __NEXTOUCH_H__ */
-
setDefaultBaudrate
bool setDefaultBaudrate(uint32_t baudrate)
Set default baudrate.
Definition: NexTouch.cpp:721
+
114 bool setCurrentBrightness(uint8_t dimValue);
+
115 bool setDefaultBrightness(uint8_t dimDefaultValue);
+
116 bool sleepMode(uint8_t mode);
+
117 bool setCurrentBaudrate(uint32_t baudrate);
+
118 bool setDefaultBaudrate(uint32_t baudrate);
+
119 #endif
+
120 
+
121 #endif /* #ifdef __cplusplus */
+
122 #endif /* #ifndef __NEXTOUCH_H__ */
NexTouch::getPid
NexPid getPid(void)
Get page id.
Definition: NexTouch.cpp:87
-
sleepMode
bool sleepMode(uint8_t mode)
Set device in sleep mode.
Definition: NexTouch.cpp:652
NexTouch::NexTouch
NexTouch(NexPid pid, NexCid cid, char *name, NexTouchEventCb pop=NULL, void *pop_ptr=NULL, NexTouchEventCb push=NULL, void *push_ptr=NULL)
Constructor of Nextouch.
Definition: NexTouch.cpp:69
NexSerialConfig.h
Serial configure.
-
setCurrentBaudrate
bool setCurrentBaudrate(uint32_t baudrate)
Set current baudrate.
Definition: NexTouch.cpp:689
-
setDefaultBrightness
bool setDefaultBrightness(uint8_t dimDefaultValue)
Set default backlight brightness value.
Definition: NexTouch.cpp:618
-
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:404
+
nexInit
bool nexInit(void)
Init Nextion's baudrate,page id.
Definition: NexTouch.cpp:398
NexTouch::sendCommand
static void sendCommand(const char *cmd)
Send command to Nextion.
Definition: NexTouch.cpp:256
NexTouch::getObjName
const char * getObjName(void)
Get component name.
Definition: NexTouch.cpp:107
-
disableTouchFocus
bool disableTouchFocus(void)
Disable all touch hot.
Definition: NexTouch.cpp:508
-
pauseSerialCommand
bool pauseSerialCommand(void)
Pause serial instruction execution.
Definition: NexTouch.cpp:532
NexTouch::print
void print(void)
Print current object address,page id,component id, component name,pop event function address...
Definition: NexTouch.cpp:117
NexTouch::mainEventLoop
static uint8_t mainEventLoop(NexTouch **list)
Watting for Nextion's touch event.
Definition: NexTouch.cpp:26
-
touchCalibration
bool touchCalibration(void)
Touch screen calibration.
Definition: NexTouch.cpp:484
NexTouch::getCid
NexCid getCid(void)
Get component id.
Definition: NexTouch.cpp:97
-
setCurrentBrightness
bool setCurrentBrightness(uint8_t dimValue)
Set current backlight brightness value.
Definition: NexTouch.cpp:583
NexTouch::recvRetNumber
static bool recvRetNumber(uint32_t *number, uint32_t timeout=500)
Receive uint32_t data.
Definition: NexTouch.cpp:351
NexTouch::recvRetString
static uint16_t recvRetString(char *buffer, uint16_t len, uint32_t timeout=500)
Receive string data.
Definition: NexTouch.cpp:279
-
recoverySerialCommand
bool recoverySerialCommand(void)
Recovery serial instruction execution.
Definition: NexTouch.cpp:557
-
sendCurrentPageId
bool sendCurrentPageId(uint8_t *pageId)
Return current page id.
Definition: NexTouch.cpp:434
NexTouch::recvRetCommandFinished
static bool recvRetCommandFinished(uint32_t timeout=100)
Command is executed successfully.
Definition: NexTouch.cpp:219
-
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:420
+
nexLoop
bool nexLoop(NexTouch **nex_listen_list)
Call mainEventLoop,watting for Nextion's touch event.
Definition: NexTouch.cpp:415
NexTouch
Root Class of Nextion Components.
Definition: NexTouch.h:57
diff --git a/doc/API-html/annotated.html b/doc/API-html/annotated.html index f912924..9387425 100644 --- a/doc/API-html/annotated.html +++ b/doc/API-html/annotated.html @@ -67,7 +67,7 @@ diff --git a/doc/API-html/class_nex_button-members.html b/doc/API-html/class_nex_button-members.html index 9f4f03e..77eed5b 100644 --- a/doc/API-html/class_nex_button-members.html +++ b/doc/API-html/class_nex_button-members.html @@ -72,7 +72,7 @@ diff --git a/doc/API-html/class_nex_button.html b/doc/API-html/class_nex_button.html index f1a75ce..4672132 100644 --- a/doc/API-html/class_nex_button.html +++ b/doc/API-html/class_nex_button.html @@ -249,7 +249,7 @@ Additional Inherited Members diff --git a/doc/API-html/class_nex_crop-members.html b/doc/API-html/class_nex_crop-members.html index 613de2c..6001fbe 100644 --- a/doc/API-html/class_nex_crop-members.html +++ b/doc/API-html/class_nex_crop-members.html @@ -70,7 +70,7 @@ diff --git a/doc/API-html/class_nex_crop.html b/doc/API-html/class_nex_crop.html index 5c0ba28..9ab95d2 100644 --- a/doc/API-html/class_nex_crop.html +++ b/doc/API-html/class_nex_crop.html @@ -170,7 +170,7 @@ Additional Inherited Members diff --git a/doc/API-html/class_nex_hotspot-members.html b/doc/API-html/class_nex_hotspot-members.html index 0c9292f..f3ea590 100644 --- a/doc/API-html/class_nex_hotspot-members.html +++ b/doc/API-html/class_nex_hotspot-members.html @@ -72,7 +72,7 @@ diff --git a/doc/API-html/class_nex_hotspot.html b/doc/API-html/class_nex_hotspot.html index 78f7822..4a0d7b1 100644 --- a/doc/API-html/class_nex_hotspot.html +++ b/doc/API-html/class_nex_hotspot.html @@ -215,7 +215,7 @@ Additional Inherited Members diff --git a/doc/API-html/class_nex_page-members.html b/doc/API-html/class_nex_page-members.html index 16f504c..8e0f693 100644 --- a/doc/API-html/class_nex_page-members.html +++ b/doc/API-html/class_nex_page-members.html @@ -71,7 +71,7 @@ diff --git a/doc/API-html/class_nex_page.html b/doc/API-html/class_nex_page.html index 84ef83b..dbf289a 100644 --- a/doc/API-html/class_nex_page.html +++ b/doc/API-html/class_nex_page.html @@ -201,7 +201,7 @@ Additional Inherited Members diff --git a/doc/API-html/class_nex_picture-members.html b/doc/API-html/class_nex_picture-members.html index 1a35dc0..f825a8b 100644 --- a/doc/API-html/class_nex_picture-members.html +++ b/doc/API-html/class_nex_picture-members.html @@ -72,7 +72,7 @@ diff --git a/doc/API-html/class_nex_picture.html b/doc/API-html/class_nex_picture.html index f6cad2d..b55c432 100644 --- a/doc/API-html/class_nex_picture.html +++ b/doc/API-html/class_nex_picture.html @@ -244,7 +244,7 @@ Additional Inherited Members diff --git a/doc/API-html/class_nex_pointer-members.html b/doc/API-html/class_nex_pointer-members.html index 53f76f8..2c4dbd5 100644 --- a/doc/API-html/class_nex_pointer-members.html +++ b/doc/API-html/class_nex_pointer-members.html @@ -70,7 +70,7 @@ diff --git a/doc/API-html/class_nex_pointer.html b/doc/API-html/class_nex_pointer.html index bec772a..522336e 100644 --- a/doc/API-html/class_nex_pointer.html +++ b/doc/API-html/class_nex_pointer.html @@ -199,7 +199,7 @@ Additional Inherited Members diff --git a/doc/API-html/class_nex_progress_bar-members.html b/doc/API-html/class_nex_progress_bar-members.html index 95c7ab0..f4a86ba 100644 --- a/doc/API-html/class_nex_progress_bar-members.html +++ b/doc/API-html/class_nex_progress_bar-members.html @@ -70,7 +70,7 @@ diff --git a/doc/API-html/class_nex_progress_bar.html b/doc/API-html/class_nex_progress_bar.html index 947e302..c9b2bcb 100644 --- a/doc/API-html/class_nex_progress_bar.html +++ b/doc/API-html/class_nex_progress_bar.html @@ -199,7 +199,7 @@ Additional Inherited Members diff --git a/doc/API-html/class_nex_text-members.html b/doc/API-html/class_nex_text-members.html index 017ab8b..6b76a3c 100644 --- a/doc/API-html/class_nex_text-members.html +++ b/doc/API-html/class_nex_text-members.html @@ -72,7 +72,7 @@ diff --git a/doc/API-html/class_nex_text.html b/doc/API-html/class_nex_text.html index 1f87b96..f0d0a4c 100644 --- a/doc/API-html/class_nex_text.html +++ b/doc/API-html/class_nex_text.html @@ -248,7 +248,7 @@ Additional Inherited Members diff --git a/doc/API-html/class_nex_touch-members.html b/doc/API-html/class_nex_touch-members.html index 7be5726..0566be6 100644 --- a/doc/API-html/class_nex_touch-members.html +++ b/doc/API-html/class_nex_touch-members.html @@ -67,7 +67,7 @@ diff --git a/doc/API-html/class_nex_touch.html b/doc/API-html/class_nex_touch.html index 549c504..d0784e7 100644 --- a/doc/API-html/class_nex_touch.html +++ b/doc/API-html/class_nex_touch.html @@ -477,7 +477,7 @@ Static Public Member Functions diff --git a/doc/API-html/classes.html b/doc/API-html/classes.html index 702fc60..38d1580 100644 --- a/doc/API-html/classes.html +++ b/doc/API-html/classes.html @@ -63,7 +63,7 @@ diff --git a/doc/API-html/dir_376a8598cfd3d58455c161124a3e8051.html b/doc/API-html/dir_376a8598cfd3d58455c161124a3e8051.html index aeb89d4..470eaac 100644 --- a/doc/API-html/dir_376a8598cfd3d58455c161124a3e8051.html +++ b/doc/API-html/dir_376a8598cfd3d58455c161124a3e8051.html @@ -56,7 +56,7 @@ Files diff --git a/doc/API-html/dir_7962cac16a99e8bbaaea18abede03fcb.html b/doc/API-html/dir_7962cac16a99e8bbaaea18abede03fcb.html index 179ede2..76f7b92 100644 --- a/doc/API-html/dir_7962cac16a99e8bbaaea18abede03fcb.html +++ b/doc/API-html/dir_7962cac16a99e8bbaaea18abede03fcb.html @@ -56,7 +56,7 @@ Files diff --git a/doc/API-html/dir_8dcbebf38b229bfa7bb34d68bf824093.html b/doc/API-html/dir_8dcbebf38b229bfa7bb34d68bf824093.html index 05a0060..41ca363 100644 --- a/doc/API-html/dir_8dcbebf38b229bfa7bb34d68bf824093.html +++ b/doc/API-html/dir_8dcbebf38b229bfa7bb34d68bf824093.html @@ -56,7 +56,7 @@ Files diff --git a/doc/API-html/dir_9bbf8342b0f9a157b7af08fe1412fc17.html b/doc/API-html/dir_9bbf8342b0f9a157b7af08fe1412fc17.html index 9a2cdb5..b39e6f3 100644 --- a/doc/API-html/dir_9bbf8342b0f9a157b7af08fe1412fc17.html +++ b/doc/API-html/dir_9bbf8342b0f9a157b7af08fe1412fc17.html @@ -56,7 +56,7 @@ Files diff --git a/doc/API-html/dir_c918e8bf3fc71f849978cdb0d900e61c.html b/doc/API-html/dir_c918e8bf3fc71f849978cdb0d900e61c.html index deb226a..6b911f3 100644 --- a/doc/API-html/dir_c918e8bf3fc71f849978cdb0d900e61c.html +++ b/doc/API-html/dir_c918e8bf3fc71f849978cdb0d900e61c.html @@ -56,7 +56,7 @@ Files diff --git a/doc/API-html/dir_ce36ac18ad3deaf5eae0bd2e09775a7d.html b/doc/API-html/dir_ce36ac18ad3deaf5eae0bd2e09775a7d.html index ddfa691..e27a953 100644 --- a/doc/API-html/dir_ce36ac18ad3deaf5eae0bd2e09775a7d.html +++ b/doc/API-html/dir_ce36ac18ad3deaf5eae0bd2e09775a7d.html @@ -56,7 +56,7 @@ Files diff --git a/doc/API-html/dir_d28a4824dc47e487b107a5db32ef43c4.html b/doc/API-html/dir_d28a4824dc47e487b107a5db32ef43c4.html index 594e306..d36802d 100644 --- a/doc/API-html/dir_d28a4824dc47e487b107a5db32ef43c4.html +++ b/doc/API-html/dir_d28a4824dc47e487b107a5db32ef43c4.html @@ -70,7 +70,7 @@ Directories diff --git a/doc/API-html/dir_f3d39c87bc262720c50d5e3885667b8a.html b/doc/API-html/dir_f3d39c87bc262720c50d5e3885667b8a.html index 8e5d526..63c83b1 100644 --- a/doc/API-html/dir_f3d39c87bc262720c50d5e3885667b8a.html +++ b/doc/API-html/dir_f3d39c87bc262720c50d5e3885667b8a.html @@ -56,7 +56,7 @@ Files diff --git a/doc/API-html/dir_f76977d9ffe8ddf3ad01f3d689aa5df4.html b/doc/API-html/dir_f76977d9ffe8ddf3ad01f3d689aa5df4.html index a9976a0..2c019dd 100644 --- a/doc/API-html/dir_f76977d9ffe8ddf3ad01f3d689aa5df4.html +++ b/doc/API-html/dir_f76977d9ffe8ddf3ad01f3d689aa5df4.html @@ -56,7 +56,7 @@ Files diff --git a/doc/API-html/examples.html b/doc/API-html/examples.html index fa62429..c8cf638 100644 --- a/doc/API-html/examples.html +++ b/doc/API-html/examples.html @@ -64,7 +64,7 @@ diff --git a/doc/API-html/files.html b/doc/API-html/files.html index e6bc628..0581eda 100644 --- a/doc/API-html/files.html +++ b/doc/API-html/files.html @@ -51,51 +51,48 @@
Here is a list of all documented files with brief descriptions:
[detail level 123]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  API-html
 dynsections.js
 jquery.js
  examples
  CompButton
 CompButton.ino
  CompCrop
 CompCrop.ino
  CompHotspot
 CompHotspot.ino
  CompPage
 CompPage.ino
  CompPicture
 CompPicture.ino
  CompPointer
 CompPointer.ino
  CompProgressBar
 CompProgressBar.ino
  CompText
 CompText.ino
 NexButton.cppAPI of NexButton
 NexButton.hAPI of NexButton
 NexCrop.cppAPI of NexCrop
 NexCrop.hAPI of NexCrop
 NexHotspot.cppAPI of NexHotspot
 NexHotspot.hAPI of NexHotspot
 NexPage.cppAPI of NexPage
 NexPage.hAPI of NexPage
 NexPicture.cppAPI of NexPicture
 NexPicture.hAPI of NexPicture
 NexPointer.cpp
 NexPointer.h
 NexProgressBar.cppAPI of NexProgressBar
 NexProgressBar.hAPI of NexProgressBar
 NexSerialConfig.hSerial configure
 NexText.cppAPI of NexText
 NexText.hAPI of NexText
 NexTouch.cppAPI of Nextion
 NexTouch.hAPI of Nextion
  examples
  CompButton
 CompButton.ino
  CompCrop
 CompCrop.ino
  CompHotspot
 CompHotspot.ino
  CompPage
 CompPage.ino
  CompPicture
 CompPicture.ino
  CompPointer
 CompPointer.ino
  CompProgressBar
 CompProgressBar.ino
  CompText
 CompText.ino
 NexButton.cppAPI of NexButton
 NexButton.hAPI of NexButton
 NexCrop.cppAPI of NexCrop
 NexCrop.hAPI of NexCrop
 NexHotspot.cppAPI of NexHotspot
 NexHotspot.hAPI of NexHotspot
 NexPage.cppAPI of NexPage
 NexPage.hAPI of NexPage
 NexPicture.cppAPI of NexPicture
 NexPicture.hAPI of NexPicture
 NexPointer.cpp
 NexPointer.h
 NexProgressBar.cppAPI of NexProgressBar
 NexProgressBar.hAPI of NexProgressBar
 NexSerialConfig.hSerial configure
 NexText.cppAPI of NexText
 NexText.hAPI of NexText
 NexTouch.cppAPI of Nextion
 NexTouch.hAPI of Nextion
diff --git a/doc/API-html/functions.html b/doc/API-html/functions.html index 1c25d4d..8095b55 100644 --- a/doc/API-html/functions.html +++ b/doc/API-html/functions.html @@ -201,7 +201,7 @@ diff --git a/doc/API-html/functions_func.html b/doc/API-html/functions_func.html index 2cf1914..357ee83 100644 --- a/doc/API-html/functions_func.html +++ b/doc/API-html/functions_func.html @@ -201,7 +201,7 @@ diff --git a/doc/API-html/globals.html b/doc/API-html/globals.html index 71a4a07..ac04f3e 100644 --- a/doc/API-html/globals.html +++ b/doc/API-html/globals.html @@ -52,10 +52,6 @@
Here is a list of all documented file members with links to the documentation:
diff --git a/doc/API-html/globals_func.html b/doc/API-html/globals_func.html index ef523ff..fa6bb22 100644 --- a/doc/API-html/globals_func.html +++ b/doc/API-html/globals_func.html @@ -52,10 +52,6 @@
 
diff --git a/doc/API-html/hierarchy.html b/doc/API-html/hierarchy.html index 0ecdbbe..4489fef 100644 --- a/doc/API-html/hierarchy.html +++ b/doc/API-html/hierarchy.html @@ -67,7 +67,7 @@ diff --git a/doc/API-html/index.hhc b/doc/API-html/index.hhc index b5e3973..c86ed48 100644 --- a/doc/API-html/index.hhc +++ b/doc/API-html/index.hhc @@ -100,11 +100,6 @@
  • diff --git a/doc/API-html/index.hhk b/doc/API-html/index.hhk index 21f9f4b..e92c49d 100644 --- a/doc/API-html/index.hhk +++ b/doc/API-html/index.hhk @@ -24,11 +24,6 @@
  • -
  • -
  • @@ -114,33 +109,13 @@
  • -
  • -
  • -
  • -
  • -
  • - -
  • - -
  • - -
  • - -
  • -
  • -
  • - -
  • - diff --git a/doc/API-html/index.hhp b/doc/API-html/index.hhp index a833601..713d5b7 100644 --- a/doc/API-html/index.hhp +++ b/doc/API-html/index.hhp @@ -21,8 +21,6 @@ _comp_picture_8ino-example.html _comp_pointer_8ino-example.html _comp_progress_bar_8ino-example.html _comp_text_8ino-example.html -dynsections_8js_source.html -jquery_8js_source.html _comp_button_8ino_source.html _comp_crop_8ino_source.html _comp_hotspot_8ino_source.html @@ -87,7 +85,6 @@ class_nex_text.html class_nex_text-members.html class_nex_touch.html class_nex_touch-members.html -dir_b88c8d0e6f18ad1bf0485502083131b8.html dir_9bbf8342b0f9a157b7af08fe1412fc17.html dir_8dcbebf38b229bfa7bb34d68bf824093.html dir_f3d39c87bc262720c50d5e3885667b8a.html diff --git a/doc/API-html/index.html b/doc/API-html/index.html index fc6a555..da47f42 100644 --- a/doc/API-html/index.html +++ b/doc/API-html/index.html @@ -54,21 +54,30 @@

    Documentation

    Online API documentation can be reached at http://docs.iteadstudio.com/ITEADLIB_Arduino_Nextion/.

    Offline API documentation can be found under directory doc.

    -

    Hareware requirement

    - -

    Serial configuration

    -

    If you want to change the default serial to debug or communicate with Nextion ,you need to modify the line in file NexSerialConfig.h:

    #define dbSerial Serial    ---> #define dbSerial Serialxxx
    -#define nexSerial Serial2  ---> #define dbSerial Serialxxx
    -

    If you want to close the debug information,you need to modify the line in file NexSerialConfig.h:

    #define DEBUG_SERIAL_ENABLE ---> //#define DEBUG_SERIAL_ENABLE
    -

    Suppported Mainboards:

    +

    Suppported Mainboards:

    +

    All boards, which has one or more hardware serial, can be supported.

    +

    For example:

    +

    Serial configuration

    +

    In configuration file NexSerialConfig.h, you can find two macros below:

    + +

    Note: the default configuration is for MEGA2560.

    +

    Redirect dbSerial and nexSerial

    +

    If you want to change the default serial to debug or communicate with Nextion , you need to modify the line in file NexSerialConfig.h:

    #define dbSerial Serial    ---> #define dbSerial Serialxxx
    +#define nexSerial Serial2  ---> #define dbSerial Serialxxx
    +

    Disable Debug Serial

    +

    If you want to disable the debug information,you need to modify the line in file NexSerialConfig.h:

    #define DEBUG_SERIAL_ENABLE ---> //#define DEBUG_SERIAL_ENABLE
    +

    UNO

    +

    If your board has only one hardware serial, such as UNO, you should disable dbSerial and redirect nexSerial to Serial(Refer to section:Serial configuration).

    +

    DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004

    Copyright (C) 2014 ITEAD Studio

    Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

       DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 
    @@ -78,7 +87,7 @@
      
     
     
    diff --git a/doc/API-html/md_readme.html b/doc/API-html/md_readme.html
    index 0d636fe..a2bf1ce 100644
    --- a/doc/API-html/md_readme.html
    +++ b/doc/API-html/md_readme.html
    @@ -46,7 +46,7 @@
     
    diff --git a/doc/API-html/pages.html b/doc/API-html/pages.html index 6863026..b98e048 100644 --- a/doc/API-html/pages.html +++ b/doc/API-html/pages.html @@ -51,7 +51,7 @@ diff --git a/doc/API-html/readme_8md_source.html b/doc/API-html/readme_8md_source.html index 4a4fad7..fd22885 100644 --- a/doc/API-html/readme_8md_source.html +++ b/doc/API-html/readme_8md_source.html @@ -78,49 +78,72 @@
    27 Offline API documentation can be found under directory
    28 [doc](https://github.com/itead/ITEADLIB_Arduino_Nextion/tree/master/doc).
    29 
    -
    30 # Hareware requirement
    +
    30 # Suppported Mainboards:
    31 
    -
    32  - RAM: not less than 2KBytes
    -
    33  - Serial: two serial (communication and debug)
    -
    34 
    -
    35 # Serial configuration
    -
    36 
    -
    37 If you want to change the default serial to debug or communicate with Nextion ,you need to modify the line in file NexSerialConfig.h:
    -
    38 
    -
    39  #define dbSerial Serial ---> #define dbSerial Serialxxx
    -
    40  #define nexSerial Serial2 ---> #define dbSerial Serialxxx
    -
    41 If you want to close the debug information,you need to modify the line in file NexSerialConfig.h:
    +
    32 **All boards, which has one or more hardware serial, can be supported.**
    +
    33 
    +
    34 For example:
    +
    35 
    +
    36  - Iteaduino MEGA2560
    +
    37  - Iteaduino UNO
    +
    38  - Arduino MEGA2560
    +
    39  - Arduino UNO
    +
    40 
    +
    41 # Serial configuration
    42 
    -
    43  #define DEBUG_SERIAL_ENABLE ---> //#define DEBUG_SERIAL_ENABLE
    -
    44 # Suppported Mainboards:
    -
    45 
    -
    46  - Iteaduino MEGA2560
    -
    47  - Arduino MEGA2560
    +
    43 In configuration file `NexSerialConfig.h`, you can find two macros below:
    +
    44 
    +
    45  - dbSerial: Debug Serial (baudrate:9600), needed by beginners for debug your nextion applications or sketches. If
    +
    46  your complete your work, it will be a wise choice to disable Debug Serial.
    +
    47  - nexSerial: Nextion Serial, the bridge of Nextion and your mainboard.
    48 
    -
    49 -------------------------------------------------------------------------------
    +
    49 **Note:** the default configuration is for MEGA2560.
    50 
    -
    51 
    -
    52  DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
    -
    53  Version 2, December 2004
    -
    54 
    -
    55  Copyright (C) 2014 ITEAD Studio
    -
    56 
    -
    57  Everyone is permitted to copy and distribute verbatim or modified
    -
    58  copies of this license document, and changing it is allowed as long
    -
    59  as the name is changed.
    +
    51 ## Redirect dbSerial and nexSerial
    +
    52 
    +
    53 If you want to change the default serial to debug or communicate with Nextion ,
    +
    54 you need to modify the line in file `NexSerialConfig.h`:
    +
    55 
    +
    56  #define dbSerial Serial ---> #define dbSerial Serialxxx
    +
    57  #define nexSerial Serial2 ---> #define dbSerial Serialxxx
    +
    58 
    +
    59 ## Disable Debug Serial
    60 
    -
    61  DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
    -
    62 
    -
    63  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    -
    64 
    -
    65  0. You just DO WHAT THE FUCK YOU WANT TO.
    -
    66 
    +
    61 If you want to disable the debug information,you need to modify the line in file
    +
    62 `NexSerialConfig.h`:
    +
    63 
    +
    64  #define DEBUG_SERIAL_ENABLE ---> //#define DEBUG_SERIAL_ENABLE
    +
    65 
    +
    66 # UNO
    67 
    -
    68 -------------------------------------------------------------------------------
    +
    68 If your board has only one hardware serial, such as UNO, you should disable
    +
    69 dbSerial and redirect nexSerial to Serial(Refer to section:`Serial configuration`).
    +
    70 
    +
    71 
    +
    72 -------------------------------------------------------------------------------
    +
    73 
    +
    74 
    +
    75  DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
    +
    76  Version 2, December 2004
    +
    77 
    +
    78  Copyright (C) 2014 ITEAD Studio
    +
    79 
    +
    80  Everyone is permitted to copy and distribute verbatim or modified
    +
    81  copies of this license document, and changing it is allowed as long
    +
    82  as the name is changed.
    +
    83 
    +
    84  DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
    +
    85 
    +
    86  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    +
    87 
    +
    88  0. You just DO WHAT THE FUCK YOU WANT TO.
    +
    89 
    +
    90 
    +
    91 -------------------------------------------------------------------------------
    diff --git a/doc/API.chm b/doc/API.chm index 8d78e4b..75a57af 100644 Binary files a/doc/API.chm and b/doc/API.chm differ diff --git a/doxygen.doxy b/doxygen.doxy index 718b238..86fe9f4 100644 --- a/doxygen.doxy +++ b/doxygen.doxy @@ -58,7 +58,7 @@ PROJECT_LOGO = C:/temp/HMI-project/doc/ITEAD-logo.JPG # entered, it will be relative to the location where doxygen was started. If # left blank the current directory will be used. -OUTPUT_DIRECTORY = doc +OUTPUT_DIRECTORY = . # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub- # directories (in 2 levels) under the output directory of each output format and