Disable some unusable APIs.

Signed-off-by: shennongmin <wupangfee@gmail.com>
This commit is contained in:
shennongmin
2015-07-30 10:32:55 +08:00
parent cba2cce5a8
commit 22c3a96354
2 changed files with 6 additions and 29 deletions

View File

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

View File

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