mirror of
https://github.com/itead/ITEADLIB_Arduino_Nextion.git
synced 2026-03-20 00:46:52 +01:00
Disable some unusable APIs.
Signed-off-by: shennongmin <wupangfee@gmail.com>
This commit is contained in:
28
NexTouch.cpp
28
NexTouch.cpp
@@ -389,12 +389,6 @@ __return:
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool NexTouch::getBrightness(uint32_t *brightness)
|
||||
{
|
||||
sendCommand("get dim");
|
||||
return recvRetNumber(brightness);
|
||||
}
|
||||
|
||||
/**
|
||||
* Init Nextion's baudrate,page id.
|
||||
*
|
||||
@@ -424,6 +418,7 @@ bool nexLoop(NexTouch **nex_listen_list)
|
||||
return false;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/**
|
||||
* Return current page id.
|
||||
*
|
||||
@@ -743,23 +738,4 @@ bool setDefaultBaudrate(uint32_t defaultBaudrate)
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -74,8 +74,6 @@ public: /* methods */
|
||||
void print(void);
|
||||
|
||||
protected: /* static methods */
|
||||
static bool setBrightness(uint32_t brightness);
|
||||
static bool getBrightness(uint32_t *brightness);
|
||||
|
||||
protected: /* methods */
|
||||
void attachPush(NexTouchEventCb push, void *ptr = NULL);
|
||||
@@ -105,7 +103,9 @@ private: /* data */
|
||||
|
||||
bool nexInit(void);
|
||||
bool nexLoop(NexTouch **nex_listen_list);
|
||||
bool sendCurrentPageId(uint8_t* pageId);
|
||||
|
||||
#if 0
|
||||
bool sendCurrentPageId(uint8_t* pageId);
|
||||
bool touchCalibration(void);
|
||||
bool disableTouchFocus(void);
|
||||
bool pauseSerialCommand(void);
|
||||
@@ -116,6 +116,7 @@ bool setDefaultBrightness(uint8_t dimDefaultValue);
|
||||
bool sleepMode(uint8_t mode);
|
||||
bool setCurrentBaudrate(uint32_t baudrate);
|
||||
bool setDefaultBaudrate(uint32_t baudrate);
|
||||
#endif
|
||||
|
||||
#endif /* #ifdef __cplusplus */
|
||||
#endif /* #ifndef __NEXTOUCH_H__ */
|
||||
|
||||
Reference in New Issue
Block a user