|
API
For Arduino developers
|
API of Nextion. More...
#include "NexTouch.h"Go to the source code of this file.
Functions | |
| bool | nexInit (void) |
| Init Nextion's baudrate,page id. More... | |
| bool | nexLoop (NexTouch **nexListenList) |
| 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... | |
API of Nextion.
Definition in file NexTouch.cpp.
| bool disableTouchFocus | ( | void | ) |
Disable all touch hot.
| true | - success. |
| false | - failed. |
Definition at line 513 of file NexTouch.cpp.
| bool nexInit | ( | void | ) |
Init Nextion's baudrate,page id.
| true | - success. |
| false | - failed. |
Definition at line 409 of file NexTouch.cpp.
| bool nexLoop | ( | NexTouch ** | nexListenList | ) |
Call mainEventLoop,watting for Nextion's touch event.
| nexListenList | - index to Nextion Components list. |
| false | - failed. |
Definition at line 425 of file NexTouch.cpp.
| bool pauseSerialCommand | ( | void | ) |
Pause serial instruction execution.
| true | - success. |
| false | - failed. |
Definition at line 537 of file NexTouch.cpp.
| bool recoverySerialCommand | ( | void | ) |
Recovery serial instruction execution.
| true | - success. |
| false | - failed. |
Definition at line 562 of file NexTouch.cpp.
| bool sendCurrentPageId | ( | uint8_t * | pageId | ) |
Return current page id.
| pageId | - output parameter,to save page id. |
| true | - success. |
| false | - failed. |
Definition at line 439 of file NexTouch.cpp.
| bool setCurrentBaudrate | ( | uint32_t | baudrate | ) |
Set current baudrate.
| baudrate | - current baudrate,it surrpots 2400,4800,9600,19200,38400,57600,38400. |
| true | - success. |
| false | - failed. |
Definition at line 694 of file NexTouch.cpp.
| bool setCurrentBrightness | ( | uint8_t | dimValue | ) |
Set current backlight brightness value.
| dimValue | - current backlight brightness value. |
| true | - success. |
| false | - failed. |
Definition at line 588 of file NexTouch.cpp.
| bool setDefaultBaudrate | ( | uint32_t | defaultBaudrate | ) |
Set default baudrate.
| defaultBaudrate | - default baudrate,it surrpots 2400,4800,9600,19200,38400,57600,38400. |
| true | - success. |
| false | - failed. |
Definition at line 726 of file NexTouch.cpp.
| bool setDefaultBrightness | ( | uint8_t | dimDefaultValue | ) |
Set default backlight brightness value.
| dimDefaultValue | - default backlight brightness value. |
| true | - success. |
| false | - failed. |
Definition at line 623 of file NexTouch.cpp.
| bool sleepMode | ( | uint8_t | mode | ) |
Set device in sleep mode.
| mode | - 1:into sleep mode,0:exit sleep mode. |
| true | - success. |
| false | - failed. |
Definition at line 657 of file NexTouch.cpp.
| bool touchCalibration | ( | void | ) |
Touch screen calibration.
| true | - success. |
| false | - failed. |
Definition at line 489 of file NexTouch.cpp.
1.8.7