Merge pull request #19 from hxming123456/update_items_based_on_ide
Update items based on ide(v0.38)
308
NexButton.cpp
Normal file → Executable file
@@ -41,3 +41,311 @@ bool NexButton::setText(const char *buffer)
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
|
||||
uint32_t NexButton::Get_background_color_bco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexButton::Set_background_color_bco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexButton::Get_press_background_color_bco2(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco2";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexButton::Set_press_background_color_bco2(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco2=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexButton::Get_font_color_pco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexButton::Set_font_color_pco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexButton::Get_press_font_color_pco2(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pco2";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexButton::Set_press_font_color_pco2(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pco2=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexButton::Get_place_xcen(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".xcen";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexButton::Set_place_xcen(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".xcen=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexButton::Get_place_ycen(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".ycen";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexButton::Set_place_ycen(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".ycen=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexButton::getFont(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".font";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexButton::setFont(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".font=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexButton::Get_background_cropi_picc(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".picc";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexButton::Set_background_crop_picc(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".picc=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexButton::Get_press_background_crop_picc2(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".picc2";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexButton::Set_press_background_crop_picc2(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".picc2=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexButton::Get_background_image_pic(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pic";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexButton::Set_background_image_pic(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pic=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexButton::Get_press_background_image_pic2(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pic2";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexButton::Set_press_background_image_pic2(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pic2=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
178
NexButton.h
Normal file → Executable file
@@ -56,7 +56,183 @@ public: /* methods */
|
||||
* @param buffer - text buffer terminated with '\0'.
|
||||
* @return true if success, false for failure.
|
||||
*/
|
||||
bool setText(const char *buffer);
|
||||
bool setText(const char *buffer);
|
||||
|
||||
/**
|
||||
* Get bco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data return
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_color_bco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_color_bco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get bco2 attribute of component
|
||||
*
|
||||
* @param number - buffer storing data return
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_press_background_color_bco2(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco2 attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_press_background_color_bco2(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data return
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_font_color_pco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_font_color_pco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pco2 attribute of component
|
||||
*
|
||||
* @param number - buffer storing data return
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_press_font_color_pco2(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pco2 attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_press_font_color_pco2(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get xcen attribute of component
|
||||
*
|
||||
* @param number - buffer storing data return
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_place_xcen(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set xcen attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_place_xcen(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get ycen attribute of component
|
||||
*
|
||||
* @param number - buffer storing data return
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_place_ycen(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set ycen attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_place_ycen(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get font attribute of component
|
||||
*
|
||||
* @param number - buffer storing data return
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t getFont(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set font attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool setFont(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get picc attribute of component
|
||||
*
|
||||
* @param number - buffer storing data return
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_cropi_picc(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set picc attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_crop_picc(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get picc2 attribute of component
|
||||
*
|
||||
* @param number - buffer storing data return
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_press_background_crop_picc2(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set picc2 attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_press_background_crop_picc2(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pic attribute of component
|
||||
*
|
||||
* @param number - buffer storing data return
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_image_pic(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pic attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_image_pic(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pic2 attribute of component
|
||||
*
|
||||
* @param number - buffer storing data return
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_press_background_image_pic2(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pic2 attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_press_background_image_pic2(uint32_t number);
|
||||
};
|
||||
/**
|
||||
* @}
|
||||
|
||||
99
NexCheckbox.cpp
Executable file
@@ -0,0 +1,99 @@
|
||||
/**
|
||||
* @file NexCheckbox.cpp
|
||||
*
|
||||
* The implementation of class NexCheckbox.
|
||||
*
|
||||
* @author huang xiaoming (email:<xiaoming.huang@itead.cc>)
|
||||
* @date 2016/9/13
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
#include "NexCheckbox.h"
|
||||
|
||||
NexCheckbox::NexCheckbox(uint8_t pid, uint8_t cid, const char *name)
|
||||
:NexTouch(pid, cid, name)
|
||||
{
|
||||
}
|
||||
|
||||
uint32_t NexCheckbox::getValue(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".val";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexCheckbox::setValue(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".val=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexCheckbox::Get_background_color_bco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexCheckbox::Set_background_color_bco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexCheckbox::Get_font_color_pco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexCheckbox::Set_font_color_pco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
97
NexCheckbox.h
Executable file
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* @file NexCheckbox.h
|
||||
*
|
||||
* The definition of class NexCheckbox.
|
||||
*
|
||||
* @author huang xiaoming (email:<xiaoming.huang@itead.cc>)
|
||||
* @date 2016/9/13
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __NEXCHECKBOX_H__
|
||||
#define __NEXCHECKBOX_H__
|
||||
|
||||
#include "NexTouch.h"
|
||||
#include "NexHardware.h"
|
||||
/**
|
||||
* @addtogroup Component
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* NexButton component.
|
||||
*
|
||||
* Commonly, you want to do something after push and pop it. It is recommanded that only
|
||||
* call @ref NexTouch::attachPop to satisfy your purpose.
|
||||
*
|
||||
* @warning Please do not call @ref NexTouch::attachPush on this component, even though you can.
|
||||
*/
|
||||
class NexCheckbox: public NexTouch
|
||||
{
|
||||
public: /* methods */
|
||||
|
||||
/**
|
||||
* @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name);
|
||||
*/
|
||||
NexCheckbox(uint8_t pid, uint8_t cid, const char *name);
|
||||
|
||||
/**
|
||||
* Get val attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t getValue(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set val attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool setValue(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get bco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_color_bco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_color_bco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_font_color_pco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_font_color_pco(uint32_t number);
|
||||
};
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
#endif /* #ifndef __NEXCHECKBOX_H__ */
|
||||
23
NexCrop.cpp
Normal file → Executable file
@@ -20,6 +20,29 @@ NexCrop::NexCrop(uint8_t pid, uint8_t cid, const char *name)
|
||||
{
|
||||
}
|
||||
|
||||
bool NexCrop::Get_background_crop_picc(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".picc";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexCrop::Set_background_crop_picc(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".picc=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
bool NexCrop::getPic(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
|
||||
20
NexCrop.h
Normal file → Executable file
@@ -44,6 +44,26 @@ public: /* methods */
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool Get_background_crop_picc(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set the number of picture.
|
||||
*
|
||||
* @param number - the number of picture.
|
||||
*
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool Set_background_crop_picc(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get the number of picture.
|
||||
*
|
||||
* @param number - an output parameter to save the number of picture.
|
||||
*
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool getPic(uint32_t *number);
|
||||
|
||||
/**
|
||||
|
||||
393
NexDualStateButton.cpp
Normal file → Executable file
@@ -1,46 +1,347 @@
|
||||
/**
|
||||
* @file NexDualStateButton.cpp
|
||||
*
|
||||
* The implementation of class NexDSButton.
|
||||
*
|
||||
* @author huang xianming (email:<xianming.huang@itead.cc>)
|
||||
* @date 2015/11/11
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexDualStateButton.h"
|
||||
|
||||
NexDSButton::NexDSButton(uint8_t pid, uint8_t cid, const char *name)
|
||||
:NexTouch(pid, cid, name)
|
||||
{
|
||||
}
|
||||
|
||||
bool NexDSButton::getValue(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".val";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexDSButton::setValue(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".val=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @file NexDualStateButton.cpp
|
||||
*
|
||||
* The implementation of class NexDSButton.
|
||||
*
|
||||
* @author huang xianming (email:<xianming.huang@itead.cc>)
|
||||
* @date 2015/11/11
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexDualStateButton.h"
|
||||
|
||||
NexDSButton::NexDSButton(uint8_t pid, uint8_t cid, const char *name)
|
||||
:NexTouch(pid, cid, name)
|
||||
{
|
||||
}
|
||||
|
||||
bool NexDSButton::getValue(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".val";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexDSButton::setValue(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".val=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint16_t NexDSButton::getText(char *buffer, uint16_t len)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".txt";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetString(buffer,len);
|
||||
}
|
||||
|
||||
bool NexDSButton::setText(const char *buffer)
|
||||
{
|
||||
String cmd;
|
||||
cmd += getObjName();
|
||||
cmd += ".txt=\"";
|
||||
cmd += buffer;
|
||||
cmd += "\"";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexDSButton::Get_state0_color_bco0(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco0";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexDSButton::Set_state0_color_bco0(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco0=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexDSButton::Get_state1_color_bco1(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco1";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexDSButton::Set_state1_color_bco1(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco1=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexDSButton::Get_font_color_pco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexDSButton::Set_font_color_pco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexDSButton::Get_place_xcen(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".xcen";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexDSButton::Set_place_xcen(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".xcen=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexDSButton::Get_place_ycen(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".ycen";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexDSButton::Set_place_ycen(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".ycen=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexDSButton::getFont(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".font";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexDSButton::setFont(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".font=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexDSButton::Get_state0_crop_picc0(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".picc0";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexDSButton::Set_state0_crop_picc0(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".picc0=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexDSButton::Get_state1_crop_picc1(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".picc1";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexDSButton::Set_state1_crop_picc1(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".picc1=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexDSButton::Get_state0_image_pic0(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pic0";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexDSButton::Set_state0_image_pic0(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pic0=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexDSButton::Get_state1_image_pic1(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pic1";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexDSButton::Set_state1_image_pic1(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pic1=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
|
||||
|
||||
310
NexDualStateButton.h
Normal file → Executable file
@@ -1,67 +1,243 @@
|
||||
/**
|
||||
* @file NexDualStateButton.h
|
||||
*
|
||||
* The definition of class NexDSButton.
|
||||
*
|
||||
* @author huang xianming (email:<xianming.huang@itead.cc>)
|
||||
* @date 2015/11/11
|
||||
*
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __NEXDSBUTTON_H__
|
||||
#define __NEXDSBUTTON_H__
|
||||
|
||||
#include "NexTouch.h"
|
||||
#include "NexHardware.h"
|
||||
/**
|
||||
* @addtogroup Component
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* NexDSButton component.
|
||||
*
|
||||
* Commonly, you want to do something after push and pop it. It is recommanded that only
|
||||
* call @ref NexTouch::attachPop to satisfy your purpose.
|
||||
*
|
||||
* @warning Please do not call @ref NexTouch::attachPush on this component, even though you can.
|
||||
*/
|
||||
class NexDSButton: public NexTouch
|
||||
{
|
||||
public: /* methods */
|
||||
/**
|
||||
* @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name);
|
||||
*/
|
||||
NexDSButton(uint8_t pid, uint8_t cid, const char *name);
|
||||
|
||||
/**
|
||||
* Get number attribute of component.
|
||||
*
|
||||
* @param buffer - buffer storing text returned.
|
||||
* @param len - length of buffer.
|
||||
* @return The real length of text returned.
|
||||
*/
|
||||
bool getValue(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set number attribute of component.
|
||||
*
|
||||
* @param buffer - number buffer.
|
||||
* @return true if success, false for failure.
|
||||
*/
|
||||
bool setValue(uint32_t number);
|
||||
};
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#endif /* #ifndef __NEXDSBUTTON_H__ */
|
||||
/**
|
||||
* @file NexDualStateButton.h
|
||||
*
|
||||
* The definition of class NexDSButton.
|
||||
*
|
||||
* @author huang xianming (email:<xianming.huang@itead.cc>)
|
||||
* @date 2015/11/11
|
||||
*
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __NEXDSBUTTON_H__
|
||||
#define __NEXDSBUTTON_H__
|
||||
|
||||
#include "NexTouch.h"
|
||||
#include "NexHardware.h"
|
||||
/**
|
||||
* @addtogroup Component
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* NexDSButton component.
|
||||
*
|
||||
* Commonly, you want to do something after push and pop it. It is recommanded that only
|
||||
* call @ref NexTouch::attachPop to satisfy your purpose.
|
||||
*
|
||||
* @warning Please do not call @ref NexTouch::attachPush on this component, even though you can.
|
||||
*/
|
||||
class NexDSButton: public NexTouch
|
||||
{
|
||||
public: /* methods */
|
||||
/**
|
||||
* @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name);
|
||||
*/
|
||||
NexDSButton(uint8_t pid, uint8_t cid, const char *name);
|
||||
|
||||
/**
|
||||
* Get number attribute of component.
|
||||
*
|
||||
* @param number - buffer storing text returned.
|
||||
* @return The real length of text returned.
|
||||
*/
|
||||
bool getValue(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set number attribute of component.
|
||||
*
|
||||
* @param number - number buffer.
|
||||
* @return true if success, false for failure.
|
||||
*/
|
||||
bool setValue(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get text attribute of component.
|
||||
*
|
||||
* @param buffer - buffer storing text returned.
|
||||
* @param len - length of buffer.
|
||||
* @return The real length of text returned.
|
||||
*/
|
||||
uint16_t getText(char *buffer, uint16_t len);
|
||||
|
||||
/**
|
||||
* Set text attribute of component.
|
||||
*
|
||||
* @param buffer - text buffer terminated with '\0'.
|
||||
* @return true if success, false for failure.
|
||||
*/
|
||||
bool setText(const char *buffer);
|
||||
|
||||
/**
|
||||
* Get bco0 attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_state0_color_bco0(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco0 attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_state0_color_bco0(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get bco1 attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_state1_color_bco1(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco1 attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_state1_color_bco1(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_font_color_pco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_font_color_pco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get xcen attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_place_xcen(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set xcen attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_place_xcen(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get ycen attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_place_ycen(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set ycen attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_place_ycen(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get font attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t getFont(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set font attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool setFont(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get picc0 attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_state0_crop_picc0(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set picc0 attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_state0_crop_picc0(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get picc1 attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_state1_crop_picc1(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set picc1 attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_state1_crop_picc1(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pic0 attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_state0_image_pic0(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pic0 attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_state0_image_pic0(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pic1 attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_state1_image_pic1(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pic1 attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_state1_image_pic1(uint32_t number);
|
||||
};
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#endif /* #ifndef __NEXDSBUTTON_H__ */
|
||||
|
||||
113
NexGauge.cpp
Normal file → Executable file
@@ -42,4 +42,117 @@ bool NexGauge::setValue(uint32_t number)
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexGauge::Get_background_color_bco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexGauge::Set_background_color_bco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexGauge::Get_font_color_pco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexGauge::Set_font_color_pco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexGauge::Get_pointer_thickness_wid(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".wid";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexGauge::Set_pointer_thickness_wid(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".wid=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexGauge::Get_background_cropi_picc(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".picc";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexGauge::Set_background_crop_picc(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".picc=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
|
||||
|
||||
64
NexGauge.h
Normal file → Executable file
@@ -54,6 +54,70 @@ public: /* methods */
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool setValue(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get bco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_color_bco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_color_bco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_font_color_pco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_font_color_pco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get wid attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_pointer_thickness_wid(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set wid attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_pointer_thickness_wid(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get picc attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_cropi_picc(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set picc attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_crop_picc(uint32_t number);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
310
NexNumber.cpp
Normal file → Executable file
@@ -1,44 +1,266 @@
|
||||
/**
|
||||
* @file NexNumber.cpp
|
||||
*
|
||||
* The implementation of class NexNumber.
|
||||
*
|
||||
* @author huang xianming (email:<xianming.huang@itead.cc>)
|
||||
* @date 2015/8/13
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
#include "NexNumber.h"
|
||||
|
||||
NexNumber::NexNumber(uint8_t pid, uint8_t cid, const char *name)
|
||||
:NexTouch(pid, cid, name)
|
||||
{
|
||||
}
|
||||
|
||||
bool NexNumber::getValue(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".val";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexNumber::setValue(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".val=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
/**
|
||||
* @file NexNumber.cpp
|
||||
*
|
||||
* The implementation of class NexNumber.
|
||||
*
|
||||
* @author huang xianming (email:<xianming.huang@itead.cc>)
|
||||
* @date 2015/8/13
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
#include "NexNumber.h"
|
||||
|
||||
NexNumber::NexNumber(uint8_t pid, uint8_t cid, const char *name)
|
||||
:NexTouch(pid, cid, name)
|
||||
{
|
||||
}
|
||||
|
||||
bool NexNumber::getValue(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".val";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexNumber::setValue(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".val=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexNumber::Get_background_color_bco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexNumber::Set_background_color_bco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexNumber::Get_font_color_pco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexNumber::Set_font_color_pco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexNumber::Get_place_xcen(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".xcen";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexNumber::Set_place_xcen(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".xcen=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexNumber::Get_place_ycen(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".ycen";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexNumber::Set_place_ycen(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".ycen=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexNumber::getFont(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".font";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexNumber::setFont(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".font=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexNumber::Get_number_lenth(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".lenth";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexNumber::Set_number_lenth(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".lenth=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexNumber::Get_background_crop_picc(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".picc";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexNumber::Set_background_crop_picc(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".picc=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexNumber::Get_background_image_pic(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".pic";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexNumber::Set_background_image_pic(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pic=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
247
NexNumber.h
Normal file → Executable file
@@ -1,60 +1,187 @@
|
||||
/**
|
||||
* @file NexNumber.h
|
||||
*
|
||||
* The definition of class NexNumber.
|
||||
*
|
||||
* @author Wu Pengfei (email:<pengfei.wu@itead.cc>)
|
||||
* @date 2015/8/13
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __NEXNUMBER_H__
|
||||
#define __NEXNUMBER_H__
|
||||
|
||||
#include "NexTouch.h"
|
||||
#include "NexHardware.h"
|
||||
/**
|
||||
* @addtogroup Component
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* NexNumber component.
|
||||
*/
|
||||
class NexNumber: public NexTouch
|
||||
{
|
||||
public: /* methods */
|
||||
/**
|
||||
* @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name);
|
||||
*/
|
||||
NexNumber(uint8_t pid, uint8_t cid, const char *name);
|
||||
|
||||
/**
|
||||
* Get number attribute of component.
|
||||
*
|
||||
* @param buffer - buffer storing text returned.
|
||||
* @param len - length of buffer.
|
||||
* @return The real length of text returned.
|
||||
*/
|
||||
bool getValue(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set number attribute of component.
|
||||
*
|
||||
* @param buffer - number buffer.
|
||||
* @return true if success, false for failure.
|
||||
*/
|
||||
bool setValue(uint32_t number);
|
||||
};
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
#endif /* #ifndef __NEXNUMBER_H__ */
|
||||
/**
|
||||
* @file NexNumber.h
|
||||
*
|
||||
* The definition of class NexNumber.
|
||||
*
|
||||
* @author Wu Pengfei (email:<pengfei.wu@itead.cc>)
|
||||
* @date 2015/8/13
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __NEXNUMBER_H__
|
||||
#define __NEXNUMBER_H__
|
||||
|
||||
#include "NexTouch.h"
|
||||
#include "NexHardware.h"
|
||||
/**
|
||||
* @addtogroup Component
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* NexNumber component.
|
||||
*/
|
||||
class NexNumber: public NexTouch
|
||||
{
|
||||
public: /* methods */
|
||||
/**
|
||||
* @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name);
|
||||
*/
|
||||
NexNumber(uint8_t pid, uint8_t cid, const char *name);
|
||||
|
||||
/**
|
||||
* Get number attribute of component.
|
||||
*
|
||||
* @param number - buffer storing text returned.
|
||||
* @return The real length of text returned.
|
||||
*/
|
||||
bool getValue(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set number attribute of component.
|
||||
*
|
||||
* @param number - number buffer.
|
||||
* @return true if success, false for failure.
|
||||
*/
|
||||
bool setValue(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get bco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_color_bco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_color_bco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_font_color_pco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_font_color_pco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get xcen attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_place_xcen(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set xcen attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_place_xcen(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get ycen attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_place_ycen(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set ycen attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_place_ycen(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get font attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t getFont(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set font attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool setFont(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get lenth attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_number_lenth(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set lenth attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_number_lenth(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get picc attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_crop_picc(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set picc attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_crop_picc(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pic attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_image_pic(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pic attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_image_pic(uint32_t number);
|
||||
};
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
#endif /* #ifndef __NEXNUMBER_H__ */
|
||||
|
||||
24
NexPicture.cpp
Normal file → Executable file
@@ -20,6 +20,29 @@ NexPicture::NexPicture(uint8_t pid, uint8_t cid, const char *name)
|
||||
{
|
||||
}
|
||||
|
||||
bool NexPicture::Get_background_image_pic(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".pic";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexPicture::Set_background_image_pic(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pic=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
bool NexPicture::getPic(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
@@ -42,4 +65,3 @@ bool NexPicture::setPic(uint32_t number)
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
|
||||
20
NexPicture.h
Normal file → Executable file
@@ -43,6 +43,26 @@ public: /* methods */
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool Get_background_image_pic(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set picture's number.
|
||||
*
|
||||
* @param number -the picture number.
|
||||
*
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool Set_background_image_pic(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get picture's number.
|
||||
*
|
||||
* @param number - an output parameter to save picture number.
|
||||
*
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool getPic(uint32_t *number);
|
||||
|
||||
/**
|
||||
|
||||
55
NexProgressBar.cpp
Normal file → Executable file
@@ -43,3 +43,58 @@ bool NexProgressBar::setValue(uint32_t number)
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexProgressBar::Get_background_color_bco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexProgressBar::Set_background_color_bco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexProgressBar::Get_font_color_pco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexProgressBar::Set_font_color_pco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
32
NexProgressBar.h
Normal file → Executable file
@@ -54,6 +54,38 @@ public: /* methods */
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool setValue(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get bco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_color_bco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_color_bco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_font_color_pco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_font_color_pco(uint32_t number);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
99
NexRadio.cpp
Executable file
@@ -0,0 +1,99 @@
|
||||
/**
|
||||
* @file NexRadio.cpp
|
||||
*
|
||||
* The implementation of class NexRadio.
|
||||
*
|
||||
* @author huang xiaoming (email:<xiaoming.huang@itead.cc>)
|
||||
* @date 2016/9/13
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
#include "NexRadio.h"
|
||||
|
||||
NexRadio::NexRadio(uint8_t pid, uint8_t cid, const char *name)
|
||||
:NexTouch(pid, cid, name)
|
||||
{
|
||||
}
|
||||
|
||||
uint32_t NexRadio::getValue(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".val";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexRadio::setValue(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".val=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexRadio::Get_background_color_bco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexRadio::Set_background_color_bco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexRadio::Get_font_color_pco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexRadio::Set_font_color_pco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
98
NexRadio.h
Executable file
@@ -0,0 +1,98 @@
|
||||
/**
|
||||
* @file NexRadio.h
|
||||
*
|
||||
* The definition of class NexRadio.
|
||||
*
|
||||
* @author huang xiaoming (email:<xiaoming.huang@itead.cc>)
|
||||
* @date 2016/9/13
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __NEXRADIO_H__
|
||||
#define __NEXRADIO_H__
|
||||
|
||||
#include "NexTouch.h"
|
||||
#include "NexHardware.h"
|
||||
/**
|
||||
* @addtogroup Component
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* NexRadio component.
|
||||
*
|
||||
* Commonly, you want to do something after push and pop it. It is recommanded that only
|
||||
* call @ref NexTouch::attachPop to satisfy your purpose.
|
||||
*
|
||||
* @warning Please do not call @ref NexTouch::attachPush on this component, even though you can.
|
||||
*/
|
||||
class NexRadio:public NexTouch
|
||||
{
|
||||
public: /* methods */
|
||||
|
||||
/**
|
||||
* @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name);
|
||||
*/
|
||||
NexRadio(uint8_t pid, uint8_t cid, const char *name);
|
||||
|
||||
/**
|
||||
* Get val attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t getValue(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set val attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool setValue(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get bco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_color_bco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_color_bco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_font_color_pco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_font_color_pco(uint32_t number);
|
||||
|
||||
};
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
#endif /* #ifndef __NEXRADION_H__ */
|
||||
351
NexScrolltext.cpp
Executable file
@@ -0,0 +1,351 @@
|
||||
/**
|
||||
* @file NexScrolltext.cpp
|
||||
*
|
||||
* The implementation of class NexScrolltext.
|
||||
*
|
||||
* @author Wu Pengfei (email:<pengfei.wu@itead.cc>)
|
||||
* @date 2015/8/13
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
#include "NexScrolltext.h"
|
||||
|
||||
NexScrolltext::NexScrolltext(uint8_t pid, uint8_t cid, const char *name)
|
||||
:NexTouch(pid, cid, name)
|
||||
{
|
||||
}
|
||||
|
||||
uint16_t NexScrolltext::getText(char *buffer, uint16_t len)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".txt";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetString(buffer,len);
|
||||
}
|
||||
|
||||
bool NexScrolltext::setText(const char *buffer)
|
||||
{
|
||||
String cmd;
|
||||
cmd += getObjName();
|
||||
cmd += ".txt=\"";
|
||||
cmd += buffer;
|
||||
cmd += "\"";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexScrolltext::Get_background_color_bco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexScrolltext::Set_background_color_bco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexScrolltext::Get_font_color_pco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexScrolltext::Set_font_color_pco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexScrolltext::Get_place_xcen(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".xcen";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexScrolltext::Set_place_xcen(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".xcen=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexScrolltext::Get_place_ycen(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".ycen";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexScrolltext::Set_place_ycen(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".ycen=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexScrolltext::getFont(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".font";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexScrolltext::setFont(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".font=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexScrolltext::Get_background_crop_picc(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".picc";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexScrolltext::Set_background_crop_picc(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".picc=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexScrolltext::Get_background_image_pic(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".pic";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexScrolltext::Set_background_image_pic(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pic=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexScrolltext::Get_scroll_dir(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".dir";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexScrolltext::Set_scroll_dir(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".dir=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexScrolltext::Get_scroll_distance(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".dis";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexScrolltext::Set_scroll_distance(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
if (number < 2)
|
||||
{
|
||||
number = 2;
|
||||
}
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".dis=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexScrolltext::Get_cycle_tim(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".tim";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexScrolltext::Set_cycle_tim(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
if (number < 8)
|
||||
{
|
||||
number = 8;
|
||||
}
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".tim=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
|
||||
bool NexScrolltext::enable(void)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
utoa(1, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".en=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
bool NexScrolltext::disable(void)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
utoa(0, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".en=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
223
NexScrolltext.h
Executable file
@@ -0,0 +1,223 @@
|
||||
/**
|
||||
* @file NexScrolltext.h
|
||||
*
|
||||
* The definition of class NexScrolltext.
|
||||
*
|
||||
* @author Wu Pengfei (email:<pengfei.wu@itead.cc>)
|
||||
* @date 2015/8/13
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __NEXSCROLLTEXT_H__
|
||||
#define __NEXSCROLLTEXT_H__
|
||||
|
||||
#include "NexTouch.h"
|
||||
#include "NexHardware.h"
|
||||
/**
|
||||
* @addtogroup Component
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* NexText component.
|
||||
*/
|
||||
class NexScrolltext: public NexTouch
|
||||
{
|
||||
public: /* methods */
|
||||
/**
|
||||
* @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name);
|
||||
*/
|
||||
NexScrolltext(uint8_t pid, uint8_t cid, const char *name);
|
||||
|
||||
/**
|
||||
* Get text attribute of component.
|
||||
*
|
||||
* @param buffer - buffer storing text returned.
|
||||
* @param len - length of buffer.
|
||||
* @return The real length of text returned.
|
||||
*/
|
||||
uint16_t getText(char *buffer, uint16_t len);
|
||||
|
||||
/**
|
||||
* Set text attribute of component.
|
||||
*
|
||||
* @param buffer - text buffer terminated with '\0'.
|
||||
* @return true if success, false for failure.
|
||||
*/
|
||||
bool setText(const char *buffer);
|
||||
|
||||
/**
|
||||
* Get bco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_color_bco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_color_bco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_font_color_pco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_font_color_pco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get xcen attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_place_xcen(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set xcen attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_place_xcen(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get ycen attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_place_ycen(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set ycen attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_place_ycen(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get font attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t getFont(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set font attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool setFont(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get picc attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_crop_picc(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set picc attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_crop_picc(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pic attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_image_pic(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pic attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_image_pic(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get dir attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_scroll_dir(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set dir attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_scroll_dir(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get dis attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_scroll_distance(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set dis attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_scroll_distance(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get tim attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_cycle_tim(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set tim attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_cycle_tim(uint32_t number);
|
||||
|
||||
bool enable(void);
|
||||
bool disable(void);
|
||||
};
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
#endif /* #ifndef __NEXSCROLLTEXT_H__ */
|
||||
167
NexSlider.cpp
Normal file → Executable file
@@ -42,3 +42,170 @@ bool NexSlider::setValue(uint32_t number)
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexSlider::Get_background_color_bco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexSlider::Set_background_color_bco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexSlider::Get_font_color_pco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexSlider::Set_font_color_pco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexSlider::Get_pointer_thickness_wid(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".wid";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexSlider::Set_pointer_thickness_wid(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".wid=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexSlider::Get_cursor_height_hig(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".hig";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexSlider::Set_cursor_height_hig(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".hig=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexSlider::getMaxval(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".maxval";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexSlider::setMaxval(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".maxval=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexSlider::getMinval(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".minval";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexSlider::setMinval(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".minval=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
96
NexSlider.h
Normal file → Executable file
@@ -54,6 +54,102 @@ public: /* methods */
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool setValue(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get bco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_color_bco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_color_bco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_font_color_pco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_font_color_pco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get wid attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_pointer_thickness_wid(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set wid attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_pointer_thickness_wid(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get hig attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_cursor_height_hig(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set hig attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_cursor_height_hig(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get maxval attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t getMaxval(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set maxval attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool setMaxval(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get minval attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t getMinval(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set minval attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool setMinval(uint32_t number);
|
||||
};
|
||||
/**
|
||||
* @}
|
||||
|
||||
192
NexText.cpp
Normal file → Executable file
@@ -40,3 +40,195 @@ bool NexText::setText(const char *buffer)
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexText::Get_background_color_bco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexText::Set_background_color_bco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexText::Get_font_color_pco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexText::Set_font_color_pco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexText::Get_place_xcen(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".xcen";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexText::Set_place_xcen(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".xcen=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexText::Get_place_ycen(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".ycen";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexText::Set_place_ycen(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".ycen=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexText::getFont(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".font";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexText::setFont(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".font=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexText::Get_background_crop_picc(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".picc";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexText::Set_background_crop_picc(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".picc=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexText::Get_background_image_pic(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".pic";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexText::Set_background_image_pic(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pic=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
|
||||
|
||||
112
NexText.h
Normal file → Executable file
@@ -51,6 +51,118 @@ public: /* methods */
|
||||
* @return true if success, false for failure.
|
||||
*/
|
||||
bool setText(const char *buffer);
|
||||
|
||||
/**
|
||||
* Get bco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_color_bco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_color_bco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_font_color_pco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_font_color_pco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get xcen attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_place_xcen(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set xcen attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_place_xcen(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get ycen attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_place_ycen(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set ycen attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_place_ycen(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get font attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t getFont(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set font attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool setFont(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get picc attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_crop_picc(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set picc attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_crop_picc(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pic attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_image_pic(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pic attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_image_pic(uint32_t number);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
201
NexTimer.cpp
Normal file → Executable file
@@ -1,86 +1,115 @@
|
||||
/**
|
||||
* @file NexTimer.cpp
|
||||
*
|
||||
* The implementation of class NexTimer.
|
||||
*
|
||||
* @author huang xianming (email:<xianming.huang@itead.cc>)
|
||||
* @date 2015/8/26
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexTimer.h"
|
||||
|
||||
NexTimer::NexTimer(uint8_t pid, uint8_t cid, const char *name)
|
||||
:NexTouch(pid, cid, name)
|
||||
{
|
||||
}
|
||||
|
||||
void NexTimer::attachTimer(NexTouchEventCb timer, void *ptr)
|
||||
{
|
||||
NexTouch::attachPop(timer, ptr);
|
||||
}
|
||||
|
||||
void NexTimer::detachTimer(void)
|
||||
{
|
||||
NexTouch::detachPop();
|
||||
}
|
||||
|
||||
bool NexTimer::getCycle(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".tim";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexTimer::setCycle(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
if (number < 50)
|
||||
{
|
||||
number = 50;
|
||||
}
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".tim=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
|
||||
bool NexTimer::enable(void)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
utoa(1, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".en=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
bool NexTimer::disable(void)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
utoa(0, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".en=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @file NexTimer.cpp
|
||||
*
|
||||
* The implementation of class NexTimer.
|
||||
*
|
||||
* @author huang xianming (email:<xianming.huang@itead.cc>)
|
||||
* @date 2015/8/26
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include "NexTimer.h"
|
||||
|
||||
NexTimer::NexTimer(uint8_t pid, uint8_t cid, const char *name)
|
||||
:NexTouch(pid, cid, name)
|
||||
{
|
||||
}
|
||||
|
||||
void NexTimer::attachTimer(NexTouchEventCb timer, void *ptr)
|
||||
{
|
||||
NexTouch::attachPop(timer, ptr);
|
||||
}
|
||||
|
||||
void NexTimer::detachTimer(void)
|
||||
{
|
||||
NexTouch::detachPop();
|
||||
}
|
||||
|
||||
bool NexTimer::getCycle(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".tim";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexTimer::setCycle(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
if (number < 50)
|
||||
{
|
||||
number = 50;
|
||||
}
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".tim=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
|
||||
bool NexTimer::enable(void)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
utoa(1, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".en=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
bool NexTimer::disable(void)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
utoa(0, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".en=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexTimer::Get_cycle_tim(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".tim";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexTimer::Set_cycle_tim(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
if (number < 8)
|
||||
{
|
||||
number = 8;
|
||||
}
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".tim=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd = "";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
|
||||
225
NexTimer.h
Normal file → Executable file
@@ -1,105 +1,120 @@
|
||||
/**
|
||||
* @file NexTimer.h
|
||||
*
|
||||
* The definition of class NexTimer.
|
||||
*
|
||||
* @author huang xianming (email:<xianming.huang@itead.cc>)
|
||||
* @date 2015/8/26
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __NEXTIMER_H__
|
||||
#define __NEXTIMER_H__
|
||||
|
||||
#include "NexTouch.h"
|
||||
#include "NexHardware.h"
|
||||
/**
|
||||
* @addtogroup Component
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* NexTimer component.
|
||||
*
|
||||
* Commonly, you want to do something after set timer cycle and enable it,and the cycle value
|
||||
* must be greater than 50
|
||||
*
|
||||
*/
|
||||
class NexTimer: public NexTouch
|
||||
{
|
||||
public: /* methods */
|
||||
|
||||
/**
|
||||
* @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name);
|
||||
*/
|
||||
NexTimer(uint8_t pid, uint8_t cid, const char *name);
|
||||
|
||||
/**
|
||||
* Attach an callback function of timer respond event.
|
||||
*
|
||||
* @param timer - callback called with ptr when a timer respond event occurs.
|
||||
* @param ptr - parameter passed into push[default:NULL].
|
||||
* @return none.
|
||||
*
|
||||
* @note If calling this method multiply, the last call is valid.
|
||||
*/
|
||||
void attachTimer(NexTouchEventCb timer, void *ptr = NULL);
|
||||
|
||||
/**
|
||||
* Detach an callback function.
|
||||
*
|
||||
* @return none.
|
||||
*/
|
||||
void detachTimer(void);
|
||||
|
||||
/**
|
||||
* Get the value of timer cycle val.
|
||||
*
|
||||
* @param number - an output parameter to save the value of timer cycle.
|
||||
*
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool getCycle(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set the value of timer cycle val.
|
||||
*
|
||||
* @param number - the value of timer cycle.
|
||||
*
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*
|
||||
* @warning the cycle value must be greater than 50.
|
||||
*/
|
||||
bool setCycle(uint32_t number);
|
||||
|
||||
/**
|
||||
* contorl timer enable.
|
||||
*
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool enable(void);
|
||||
|
||||
/**
|
||||
* contorl timer disable.
|
||||
*
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool disable(void);
|
||||
|
||||
};
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
#endif /* #ifndef __NEXTIMER_H__ */
|
||||
/**
|
||||
* @file NexTimer.h
|
||||
*
|
||||
* The definition of class NexTimer.
|
||||
*
|
||||
* @author huang xianming (email:<xianming.huang@itead.cc>)
|
||||
* @date 2015/8/26
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __NEXTIMER_H__
|
||||
#define __NEXTIMER_H__
|
||||
|
||||
#include "NexTouch.h"
|
||||
#include "NexHardware.h"
|
||||
/**
|
||||
* @addtogroup Component
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* NexTimer component.
|
||||
*
|
||||
* Commonly, you want to do something after set timer cycle and enable it,and the cycle value
|
||||
* must be greater than 50
|
||||
*
|
||||
*/
|
||||
class NexTimer: public NexTouch
|
||||
{
|
||||
public: /* methods */
|
||||
|
||||
/**
|
||||
* @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name);
|
||||
*/
|
||||
NexTimer(uint8_t pid, uint8_t cid, const char *name);
|
||||
|
||||
/**
|
||||
* Attach an callback function of timer respond event.
|
||||
*
|
||||
* @param timer - callback called with ptr when a timer respond event occurs.
|
||||
* @param ptr - parameter passed into push[default:NULL].
|
||||
* @return none.
|
||||
*
|
||||
* @note If calling this method multiply, the last call is valid.
|
||||
*/
|
||||
void attachTimer(NexTouchEventCb timer, void *ptr = NULL);
|
||||
|
||||
/**
|
||||
* Detach an callback function.
|
||||
*
|
||||
* @return none.
|
||||
*/
|
||||
void detachTimer(void);
|
||||
|
||||
/**
|
||||
* Get the value of timer cycle val.
|
||||
*
|
||||
* @param number - an output parameter to save the value of timer cycle.
|
||||
*
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool getCycle(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set the value of timer cycle val.
|
||||
*
|
||||
* @param number - the value of timer cycle.
|
||||
*
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*
|
||||
* @warning the cycle value must be greater than 50.
|
||||
*/
|
||||
bool setCycle(uint32_t number);
|
||||
|
||||
/**
|
||||
* contorl timer enable.
|
||||
*
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool enable(void);
|
||||
|
||||
/**
|
||||
* contorl timer disable.
|
||||
*
|
||||
* @retval true - success.
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool disable(void);
|
||||
|
||||
/**
|
||||
* Get tim attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_cycle_tim(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set tim attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_cycle_tim(uint32_t number);
|
||||
};
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
#endif /* #ifndef __NEXTIMER_H__ */
|
||||
|
||||
6
NexUpload.h
Normal file → Executable file
@@ -38,16 +38,16 @@ public: /* methods */
|
||||
*
|
||||
* @param file_name - tft file name.
|
||||
* @param SD_chip_select - sd chip select pin.
|
||||
* @download_baudrate - set download baudrate.
|
||||
* @param download_baudrate - set download baudrate.
|
||||
*/
|
||||
NexUpload(const char *file_name,const uint8_t SD_chip_select,uint32_t download_baudrate);
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param file_name - tft file name.
|
||||
* @param file_Name - tft file name.
|
||||
* @param SD_chip_select - sd chip select pin.
|
||||
* @download_baudrate - set download baudrate.
|
||||
* @param download_baudrate - set download baudrate.
|
||||
*/
|
||||
NexUpload(const String file_Name,const uint8_t SD_chip_select,uint32_t download_baudrate);
|
||||
|
||||
|
||||
64
NexVariable.cpp
Executable file
@@ -0,0 +1,64 @@
|
||||
/**
|
||||
* @file NexVariable.cpp
|
||||
*
|
||||
* The implementation of class NexText.
|
||||
*
|
||||
* @author huang xiaoming (email:<xiaoming.huang@itead.cc>)
|
||||
* @date 2016/9/13
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
#include "NexVariable.h"
|
||||
|
||||
NexVariable::NexVariable(uint8_t pid, uint8_t cid, const char *name)
|
||||
:NexTouch(pid, cid, name)
|
||||
{
|
||||
}
|
||||
|
||||
uint32_t NexVariable::getValue(uint32_t *number)
|
||||
{
|
||||
String cmd = String("get ");
|
||||
cmd += getObjName();
|
||||
cmd += ".val";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexVariable::setValue(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".val=";
|
||||
cmd += buf;
|
||||
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexVariable::getText(char *buffer, uint32_t len)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".txt";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetString(buffer,len);
|
||||
}
|
||||
|
||||
bool NexVariable::setText(const char *buffer)
|
||||
{
|
||||
String cmd;
|
||||
cmd += getObjName();
|
||||
cmd += ".txt=\"";
|
||||
cmd += buffer;
|
||||
cmd += "\"";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
82
NexVariable.h
Executable file
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* @file NexButton.h
|
||||
*
|
||||
* The definition of class NexButton.
|
||||
*
|
||||
* @author huang xiaoming (email:<xiaoming.huang@itead.cc>)
|
||||
* @date 2016/9/13
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef __NEXVARRIABLE_H__
|
||||
#define __NEXVARRIABLE_H__
|
||||
|
||||
#include "NexTouch.h"
|
||||
#include "NexHardware.h"
|
||||
/**
|
||||
* @addtogroup Component
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* NexButton component.
|
||||
*
|
||||
* Commonly, you want to do something after push and pop it. It is recommanded that only
|
||||
* call @ref NexTouch::attachPop to satisfy your purpose.
|
||||
*
|
||||
* @warning Please do not call @ref NexTouch::attachPush on this component, even though you can.
|
||||
*/
|
||||
class NexVariable: public NexTouch
|
||||
{
|
||||
public: /* methods */
|
||||
|
||||
/**
|
||||
* @copydoc NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name);
|
||||
*/
|
||||
NexVariable(uint8_t pid, uint8_t cid, const char *name);
|
||||
|
||||
/**
|
||||
* Get text attribute of component.
|
||||
*
|
||||
* @param buffer - buffer storing text returned.
|
||||
* @param len - length of buffer.
|
||||
* @return The real length of text returned.
|
||||
*/
|
||||
uint32_t getText(char *buffer, uint32_t len);
|
||||
|
||||
/**
|
||||
* Set text attribute of component.
|
||||
*
|
||||
* @param buffer - text buffer terminated with '\0'.
|
||||
* @return true if success, false for failure.
|
||||
*/
|
||||
bool setText(const char *buffer);
|
||||
|
||||
/**
|
||||
* Get val attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t getValue(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set val attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool setValue(uint32_t number);
|
||||
};
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
#endif /* #ifndef __NEXVARRIABLE_H__*/
|
||||
140
NexWaveform.cpp
Normal file → Executable file
@@ -33,4 +33,144 @@ bool NexWaveform::addValue(uint8_t ch, uint8_t number)
|
||||
sendCommand(buf);
|
||||
return true;
|
||||
}
|
||||
|
||||
uint32_t NexWaveform::Get_background_color_bco(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".bco";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexWaveform::Set_background_color_bco(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".bco=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexWaveform::Get_grid_color_gdc(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".gdc";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexWaveform::Set_grid_color_gdc(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".gdc=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexWaveform::Get_grid_width_gdw(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".gdw";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexWaveform::Set_grid_width_gdw(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".gdw=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexWaveform::Get_grid_height_gdh(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".gdh";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexWaveform::Set_grid_height_gdh(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".gdh=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
uint32_t NexWaveform::Get_channel_0_color_pco0(uint32_t *number)
|
||||
{
|
||||
String cmd;
|
||||
cmd += "get ";
|
||||
cmd += getObjName();
|
||||
cmd += ".pco0";
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetNumber(number);
|
||||
}
|
||||
|
||||
bool NexWaveform::Set_channel_0_color_pco0(uint32_t number)
|
||||
{
|
||||
char buf[10] = {0};
|
||||
String cmd;
|
||||
|
||||
utoa(number, buf, 10);
|
||||
cmd += getObjName();
|
||||
cmd += ".pco0=";
|
||||
cmd += buf;
|
||||
sendCommand(cmd.c_str());
|
||||
|
||||
cmd="";
|
||||
cmd += "ref ";
|
||||
cmd += getObjName();
|
||||
sendCommand(cmd.c_str());
|
||||
return recvRetCommandFinished();
|
||||
}
|
||||
|
||||
|
||||
80
NexWaveform.h
Normal file → Executable file
@@ -44,6 +44,86 @@ public: /* methods */
|
||||
* @retval false - failed.
|
||||
*/
|
||||
bool addValue(uint8_t ch, uint8_t number);
|
||||
|
||||
/**
|
||||
* Get bco attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_background_color_bco(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set bco attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_background_color_bco(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get gdc attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_grid_color_gdc(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set gdc attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_grid_color_gdc(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get gdw attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_grid_width_gdw(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set gdw attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_grid_width_gdw(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get gdh attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_grid_height_gdh(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set gdh attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_grid_height_gdh(uint32_t number);
|
||||
|
||||
/**
|
||||
* Get pco0 attribute of component
|
||||
*
|
||||
* @param number - buffer storing data retur
|
||||
* @return the length of the data
|
||||
*/
|
||||
uint32_t Get_channel_0_color_pco0(uint32_t *number);
|
||||
|
||||
/**
|
||||
* Set pco0 attribute of component
|
||||
*
|
||||
* @param number - To set up the data
|
||||
* @return true if success, false for failure
|
||||
*/
|
||||
bool Set_channel_0_color_pco0(uint32_t number);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
4
Nextion.h
Normal file → Executable file
@@ -35,6 +35,10 @@
|
||||
#include "NexTimer.h"
|
||||
#include "NexNumber.h"
|
||||
#include "NexDualStateButton.h"
|
||||
#include "NexVariable.h"
|
||||
#include "NexCheckbox.h"
|
||||
#include "NexRadio.h"
|
||||
#include "NexScrolltext.h"
|
||||
|
||||
|
||||
#endif /* #ifndef __NEXTION_H__ */
|
||||
|
||||
0
doc/Documentation/Logo.png
Normal file → Executable file
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
2
doc/Documentation/_comp_button_8ino-example.html
Normal file → Executable file
@@ -152,7 +152,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_button_8ino_source.html
Normal file → Executable file
@@ -162,7 +162,7 @@ $(document).ready(function(){initNavTree('_comp_button_8ino_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_9bbf8342b0f9a157b7af08fe1412fc17.html">CompButton</a></li><li class="navelem"><b>CompButton.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_crop_8ino-example.html
Normal file → Executable file
@@ -118,7 +118,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
6
doc/Documentation/_comp_crop_8ino_source.html
Normal file → Executable file
@@ -115,11 +115,11 @@ $(document).ready(function(){initNavTree('_comp_crop_8ino_source.html','');});
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> }</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div>
|
||||
<div class="ttc" id="group___core_a_p_i_html_ga91c549e696b0ca035cf18901e6a50d5a"><div class="ttname"><a href="group___core_a_p_i.html#ga91c549e696b0ca035cf18901e6a50d5a">nexLoop</a></div><div class="ttdeci">void nexLoop(NexTouch *nex_listen_list[])</div><div class="ttdoc">Listen touch event and calling callbacks attached before. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_hardware_8cpp_source.html#l00235">NexHardware.cpp:235</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_a2cbfe125182626965dd530f14ab55885"><div class="ttname"><a href="class_nex_crop.html#a2cbfe125182626965dd530f14ab55885">NexCrop::getPic</a></div><div class="ttdeci">bool getPic(uint32_t *number)</div><div class="ttdoc">Get the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00023">NexCrop.cpp:23</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_a2cbfe125182626965dd530f14ab55885"><div class="ttname"><a href="class_nex_crop.html#a2cbfe125182626965dd530f14ab55885">NexCrop::getPic</a></div><div class="ttdeci">bool getPic(uint32_t *number)</div><div class="ttdoc">Get the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00046">NexCrop.cpp:46</a></div></div>
|
||||
<div class="ttc" id="class_nex_touch_html_a4da1c4fcdfadb7eabfb9ccaba9ecad11"><div class="ttname"><a href="class_nex_touch.html#a4da1c4fcdfadb7eabfb9ccaba9ecad11">NexTouch::attachPop</a></div><div class="ttdeci">void attachPop(NexTouchEventCb pop, void *ptr=NULL)</div><div class="ttdoc">Attach an callback function of pop touch event. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_touch_8cpp_source.html#l00039">NexTouch.cpp:39</a></div></div>
|
||||
<div class="ttc" id="group___core_a_p_i_html_gab09ddba6b72334d30ae091a7b038d790"><div class="ttname"><a href="group___core_a_p_i.html#gab09ddba6b72334d30ae091a7b038d790">nexInit</a></div><div class="ttdeci">bool nexInit(void)</div><div class="ttdoc">Init Nextion. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_hardware_8cpp_source.html#l00220">NexHardware.cpp:220</a></div></div>
|
||||
<div class="ttc" id="_nextion_8h_html"><div class="ttname"><a href="_nextion_8h.html">Nextion.h</a></div><div class="ttdoc">The header file including all other header files provided by this library. </div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_aac34fc2f8ead1e330918089ea8a339db"><div class="ttname"><a href="class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db">NexCrop::setPic</a></div><div class="ttdeci">bool setPic(uint32_t number)</div><div class="ttdoc">Set the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00032">NexCrop.cpp:32</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_aac34fc2f8ead1e330918089ea8a339db"><div class="ttname"><a href="class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db">NexCrop::setPic</a></div><div class="ttdeci">bool setPic(uint32_t number)</div><div class="ttdoc">Set the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00055">NexCrop.cpp:55</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html"><div class="ttname"><a href="class_nex_crop.html">NexCrop</a></div><div class="ttdoc">NexCrop component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8h_source.html#l00030">NexCrop.h:30</a></div></div>
|
||||
<div class="ttc" id="class_nex_touch_html"><div class="ttname"><a href="class_nex_touch.html">NexTouch</a></div><div class="ttdoc">Father class of the components with touch events. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_touch_8h_source.html#l00053">NexTouch.h:53</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
@@ -128,7 +128,7 @@ $(document).ready(function(){initNavTree('_comp_crop_8ino_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_8dcbebf38b229bfa7bb34d68bf824093.html">CompCrop</a></li><li class="navelem"><b>CompCrop.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_dual_state_button_8ino-example.html
Normal file → Executable file
@@ -153,7 +153,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_dual_state_button_8ino_source.html
Normal file → Executable file
@@ -164,7 +164,7 @@ $(document).ready(function(){initNavTree('_comp_dual_state_button_8ino_source.ht
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_3a828b7214103d705cc83e20f29bdad9.html">CompDualStateButton</a></li><li class="navelem"><b>CompDualStateButton.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_gauge_8ino-example.html
Normal file → Executable file
@@ -134,7 +134,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_gauge_8ino_source.html
Normal file → Executable file
@@ -145,7 +145,7 @@ $(document).ready(function(){initNavTree('_comp_gauge_8ino_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_a48692e2802a027399b146b680655303.html">CompGauge</a></li><li class="navelem"><b>CompGauge.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_hotspot_8ino-example.html
Normal file → Executable file
@@ -130,7 +130,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_hotspot_8ino_source.html
Normal file → Executable file
@@ -139,7 +139,7 @@ $(document).ready(function(){initNavTree('_comp_hotspot_8ino_source.html','');})
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_f3d39c87bc262720c50d5e3885667b8a.html">CompHotspot</a></li><li class="navelem"><b>CompHotspot.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_number_8ino-example.html
Normal file → Executable file
@@ -180,7 +180,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_number_8ino_source.html
Normal file → Executable file
@@ -191,7 +191,7 @@ $(document).ready(function(){initNavTree('_comp_number_8ino_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_2af451c22587252d0014dbc596e2e19a.html">CompNumber</a></li><li class="navelem"><b>CompNumber.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_page_8ino-example.html
Normal file → Executable file
@@ -133,7 +133,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_page_8ino_source.html
Normal file → Executable file
@@ -142,7 +142,7 @@ $(document).ready(function(){initNavTree('_comp_page_8ino_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_f76977d9ffe8ddf3ad01f3d689aa5df4.html">CompPage</a></li><li class="navelem"><b>CompPage.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_picture_8ino-example.html
Normal file → Executable file
@@ -121,7 +121,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
6
doc/Documentation/_comp_picture_8ino_source.html
Normal file → Executable file
@@ -118,12 +118,12 @@ $(document).ready(function(){initNavTree('_comp_picture_8ino_source.html','');})
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> }</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div>
|
||||
<div class="ttc" id="group___core_a_p_i_html_ga91c549e696b0ca035cf18901e6a50d5a"><div class="ttname"><a href="group___core_a_p_i.html#ga91c549e696b0ca035cf18901e6a50d5a">nexLoop</a></div><div class="ttdeci">void nexLoop(NexTouch *nex_listen_list[])</div><div class="ttdoc">Listen touch event and calling callbacks attached before. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_hardware_8cpp_source.html#l00235">NexHardware.cpp:235</a></div></div>
|
||||
<div class="ttc" id="class_nex_picture_html_ab1c6adff615d48261ce10c2095859abd"><div class="ttname"><a href="class_nex_picture.html#ab1c6adff615d48261ce10c2095859abd">NexPicture::setPic</a></div><div class="ttdeci">bool setPic(uint32_t number)</div><div class="ttdoc">Set picture's number. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_picture_8cpp_source.html#l00032">NexPicture.cpp:32</a></div></div>
|
||||
<div class="ttc" id="class_nex_picture_html_ab1c6adff615d48261ce10c2095859abd"><div class="ttname"><a href="class_nex_picture.html#ab1c6adff615d48261ce10c2095859abd">NexPicture::setPic</a></div><div class="ttdeci">bool setPic(uint32_t number)</div><div class="ttdoc">Set picture's number. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_picture_8cpp_source.html#l00055">NexPicture.cpp:55</a></div></div>
|
||||
<div class="ttc" id="class_nex_touch_html_a4da1c4fcdfadb7eabfb9ccaba9ecad11"><div class="ttname"><a href="class_nex_touch.html#a4da1c4fcdfadb7eabfb9ccaba9ecad11">NexTouch::attachPop</a></div><div class="ttdeci">void attachPop(NexTouchEventCb pop, void *ptr=NULL)</div><div class="ttdoc">Attach an callback function of pop touch event. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_touch_8cpp_source.html#l00039">NexTouch.cpp:39</a></div></div>
|
||||
<div class="ttc" id="group___core_a_p_i_html_gab09ddba6b72334d30ae091a7b038d790"><div class="ttname"><a href="group___core_a_p_i.html#gab09ddba6b72334d30ae091a7b038d790">nexInit</a></div><div class="ttdeci">bool nexInit(void)</div><div class="ttdoc">Init Nextion. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_hardware_8cpp_source.html#l00220">NexHardware.cpp:220</a></div></div>
|
||||
<div class="ttc" id="class_nex_picture_html"><div class="ttname"><a href="class_nex_picture.html">NexPicture</a></div><div class="ttdoc">NexPicture component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_picture_8h_source.html#l00030">NexPicture.h:30</a></div></div>
|
||||
<div class="ttc" id="_nextion_8h_html"><div class="ttname"><a href="_nextion_8h.html">Nextion.h</a></div><div class="ttdoc">The header file including all other header files provided by this library. </div></div>
|
||||
<div class="ttc" id="class_nex_picture_html_a11bd68ef9fe1d03d9e0d02ef1c7527e9"><div class="ttname"><a href="class_nex_picture.html#a11bd68ef9fe1d03d9e0d02ef1c7527e9">NexPicture::getPic</a></div><div class="ttdeci">bool getPic(uint32_t *number)</div><div class="ttdoc">Get picture's number. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_picture_8cpp_source.html#l00023">NexPicture.cpp:23</a></div></div>
|
||||
<div class="ttc" id="class_nex_picture_html_a11bd68ef9fe1d03d9e0d02ef1c7527e9"><div class="ttname"><a href="class_nex_picture.html#a11bd68ef9fe1d03d9e0d02ef1c7527e9">NexPicture::getPic</a></div><div class="ttdeci">bool getPic(uint32_t *number)</div><div class="ttdoc">Get picture's number. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_picture_8cpp_source.html#l00046">NexPicture.cpp:46</a></div></div>
|
||||
<div class="ttc" id="class_nex_touch_html"><div class="ttname"><a href="class_nex_touch.html">NexTouch</a></div><div class="ttdoc">Father class of the components with touch events. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_touch_8h_source.html#l00053">NexTouch.h:53</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
@@ -131,7 +131,7 @@ $(document).ready(function(){initNavTree('_comp_picture_8ino_source.html','');})
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_ce36ac18ad3deaf5eae0bd2e09775a7d.html">CompPicture</a></li><li class="navelem"><b>CompPicture.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_progress_bar_8ino-example.html
Normal file → Executable file
@@ -133,7 +133,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_progress_bar_8ino_source.html
Normal file → Executable file
@@ -144,7 +144,7 @@ $(document).ready(function(){initNavTree('_comp_progress_bar_8ino_source.html','
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_7962cac16a99e8bbaaea18abede03fcb.html">CompProgressBar</a></li><li class="navelem"><b>CompProgressBar.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_slider_8ino-example.html
Normal file → Executable file
@@ -111,7 +111,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_slider_8ino_source.html
Normal file → Executable file
@@ -122,7 +122,7 @@ $(document).ready(function(){initNavTree('_comp_slider_8ino_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_472f54fb1d9b74971d8e15d62f212bd3.html">CompSlider</a></li><li class="navelem"><b>CompSlider.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_text_8ino-example.html
Normal file → Executable file
@@ -191,7 +191,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_text_8ino_source.html
Normal file → Executable file
@@ -202,7 +202,7 @@ $(document).ready(function(){initNavTree('_comp_text_8ino_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_c918e8bf3fc71f849978cdb0d900e61c.html">CompText</a></li><li class="navelem"><b>CompText.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_timer_8ino-example.html
Normal file → Executable file
@@ -181,7 +181,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_timer_8ino_source.html
Normal file → Executable file
@@ -198,7 +198,7 @@ $(document).ready(function(){initNavTree('_comp_timer_8ino_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_53835f0dfcb7abf9d97bc46682fab859.html">CompTimer</a></li><li class="navelem"><b>CompTimer.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_waveform_8ino-example.html
Normal file → Executable file
@@ -127,7 +127,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
2
doc/Documentation/_comp_waveform_8ino_source.html
Normal file → Executable file
@@ -133,7 +133,7 @@ $(document).ready(function(){initNavTree('_comp_waveform_8ino_source.html','');}
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_4b43661efaa18af91f213d2681ebd37e.html">CompWaveform</a></li><li class="navelem"><b>CompWaveform.ino</b></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
9
doc/Documentation/_nex_button_8cpp.html
Normal file → Executable file
@@ -75,13 +75,6 @@ $(document).ready(function(){initNavTree('_nex_button_8cpp.html','');});
|
||||
<p>The implementation of class <a class="el" href="class_nex_button.html" title="NexButton component. ">NexButton</a>.
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include "<a class="el" href="_nex_button_8h_source.html">NexButton.h</a>"</code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for NexButton.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><img src="_nex_button_8cpp__incl.png" border="0" usemap="#_nex_button_8cpp" alt=""/></div>
|
||||
<map name="_nex_button_8cpp" id="_nex_button_8cpp">
|
||||
<area shape="rect" id="node2" href="_nex_button_8h.html" title="The definition of class NexButton. " alt="" coords="82,80,177,107"/>
|
||||
<area shape="rect" id="node3" href="_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="84,229,175,256"/>
|
||||
</div>
|
||||
<p><a href="_nex_button_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
@@ -98,7 +91,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="_nex_button_8cpp.html">NexButton.cpp</a></li>
|
||||
</div><!-- doc-content -->
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<map id="NexButton.cpp" name="NexButton.cpp">
|
||||
<area shape="rect" id="node2" href="$_nex_button_8h.html" title="The definition of class NexButton. " alt="" coords="82,80,177,107"/>
|
||||
<area shape="rect" id="node3" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="84,229,175,256"/>
|
||||
<area shape="rect" id="node7" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,155,231,181"/>
|
||||
<area shape="rect" id="node5" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="169,379,261,405"/>
|
||||
<area shape="rect" id="node6" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,304,177,331"/>
|
||||
</map>
|
||||
<map id="NexButton.cpp" name="NexButton.cpp">
|
||||
<area shape="rect" id="node2" href="$_nex_button_8h.html" title="The definition of class NexButton. " alt="" coords="82,80,177,107"/>
|
||||
<area shape="rect" id="node3" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="83,229,176,256"/>
|
||||
<area shape="rect" id="node7" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,155,234,181"/>
|
||||
<area shape="rect" id="node5" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="167,379,262,405"/>
|
||||
<area shape="rect" id="node6" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,304,177,331"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
a73b325523a0760442a66c4926924a33
|
||||
68fbe2ac8c00174debc341792ccb83f9
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 24 KiB |
332
doc/Documentation/_nex_button_8cpp_source.html
Normal file → Executable file
@@ -100,10 +100,340 @@ $(document).ready(function(){initNavTree('_nex_button_8cpp_source.html','');});
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">return</span> recvRetCommandFinished(); </div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> }</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="class_nex_button.html#a85eb673a290ee35f3a73e9b02193fc70"> 45</a></span> uint32_t <a class="code" href="class_nex_button.html#a85eb673a290ee35f3a73e9b02193fc70">NexButton::Get_background_color_bco</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  cmd += <span class="stringliteral">".bco"</span>;</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> }</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_nex_button.html#ae6ade99045d0f97594eac50adc7c12f7"> 55</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#ae6ade99045d0f97594eac50adc7c12f7">NexButton::Set_background_color_bco</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> {</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  cmd += <span class="stringliteral">".bco="</span>;</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  cmd=<span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> }</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_nex_button.html#abb5a765ca9079944757480a9fda1a6ac"> 73</a></span> uint32_t <a class="code" href="class_nex_button.html#abb5a765ca9079944757480a9fda1a6ac">NexButton::Get_press_background_color_bco2</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> {</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  cmd += <span class="stringliteral">".bco2"</span>;</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_nex_button.html#acdc1da7ffea8791a8237b201d572d1e3"> 83</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#acdc1da7ffea8791a8237b201d572d1e3">NexButton::Set_press_background_color_bco2</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> {</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  cmd += <span class="stringliteral">".bco2="</span>;</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  cmd=<span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> }</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_nex_button.html#a51b1b698696d7d4969ebb21754bb7e4d"> 101</a></span> uint32_t <a class="code" href="class_nex_button.html#a51b1b698696d7d4969ebb21754bb7e4d">NexButton::Get_font_color_pco</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> {</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  cmd += <span class="stringliteral">".pco"</span>;</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> }</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="class_nex_button.html#a9fbfe6df7a285e470fb8bc3fd77df00a"> 111</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a9fbfe6df7a285e470fb8bc3fd77df00a">NexButton::Set_font_color_pco</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> {</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  cmd += <span class="stringliteral">".pco="</span>;</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> }</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="class_nex_button.html#a970789126a0781810f499ae064fed942"> 129</a></span> uint32_t <a class="code" href="class_nex_button.html#a970789126a0781810f499ae064fed942">NexButton::Get_press_font_color_pco2</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> {</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  cmd += <span class="stringliteral">".pco2"</span>;</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> }</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="class_nex_button.html#a5fe5e3331795ecb43eacf5aead7f5f4a"> 139</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a5fe5e3331795ecb43eacf5aead7f5f4a">NexButton::Set_press_font_color_pco2</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> {</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  cmd += <span class="stringliteral">".pco2="</span>;</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> }</div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="class_nex_button.html#ab970c6e27b5d1d9082b0b3bf47ed9d47"> 157</a></span> uint32_t <a class="code" href="class_nex_button.html#ab970c6e27b5d1d9082b0b3bf47ed9d47">NexButton::Get_place_xcen</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> {</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  cmd += <span class="stringliteral">".xcen"</span>;</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> }</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="class_nex_button.html#a76cdf6324e05d7a2c30f397e947e7cc7"> 167</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a76cdf6324e05d7a2c30f397e947e7cc7">NexButton::Set_place_xcen</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> {</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  </div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  cmd += <span class="stringliteral">".xcen="</span>;</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  </div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> }</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="class_nex_button.html#aea0a8ea4e9a28ae3769414f2532483e9"> 185</a></span> uint32_t <a class="code" href="class_nex_button.html#aea0a8ea4e9a28ae3769414f2532483e9">NexButton::Get_place_ycen</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> {</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  cmd += <span class="stringliteral">".ycen"</span>;</div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> }</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="class_nex_button.html#a50c8c3678dd815ec8d4e111c79251b53"> 195</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a50c8c3678dd815ec8d4e111c79251b53">NexButton::Set_place_ycen</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> {</div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  cmd += <span class="stringliteral">".ycen="</span>;</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  </div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> }</div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="class_nex_button.html#aba350b47585e53ece6c5f6a83fe58698"> 213</a></span> uint32_t <a class="code" href="class_nex_button.html#aba350b47585e53ece6c5f6a83fe58698">NexButton::getFont</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> {</div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  cmd += <span class="stringliteral">".font"</span>;</div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> }</div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> </div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="class_nex_button.html#a0fc4598f87578079127ea33a303962ff"> 223</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a0fc4598f87578079127ea33a303962ff">NexButton::setFont</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> {</div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  </div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  cmd += <span class="stringliteral">".font="</span>;</div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> </div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> }</div>
|
||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> </div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="class_nex_button.html#a4be9d316efb2e3c537fdbcbc74c5597c"> 241</a></span> uint32_t <a class="code" href="class_nex_button.html#a4be9d316efb2e3c537fdbcbc74c5597c">NexButton::Get_background_cropi_picc</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> {</div>
|
||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  cmd += <span class="stringliteral">".picc"</span>;</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> }</div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="class_nex_button.html#a71fc4f96d4700bd50cd6c937a0bfd43d"> 251</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a71fc4f96d4700bd50cd6c937a0bfd43d">NexButton::Set_background_crop_picc</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> {</div>
|
||||
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  </div>
|
||||
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  cmd += <span class="stringliteral">".picc="</span>;</div>
|
||||
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  </div>
|
||||
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> }</div>
|
||||
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div>
|
||||
<div class="line"><a name="l00269"></a><span class="lineno"><a class="line" href="class_nex_button.html#ab85cad116c12d13fef9fcfb7dd7ae32e"> 269</a></span> uint32_t <a class="code" href="class_nex_button.html#ab85cad116c12d13fef9fcfb7dd7ae32e">NexButton::Get_press_background_crop_picc2</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> {</div>
|
||||
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  cmd += <span class="stringliteral">".picc2"</span>;</div>
|
||||
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> }</div>
|
||||
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> </div>
|
||||
<div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="class_nex_button.html#a8f63f08fa00609546011b0a66e7070a7"> 279</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a8f63f08fa00609546011b0a66e7070a7">NexButton::Set_press_background_crop_picc2</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> {</div>
|
||||
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  </div>
|
||||
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  cmd += <span class="stringliteral">".picc2="</span>;</div>
|
||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  </div>
|
||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span> }</div>
|
||||
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> </div>
|
||||
<div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="class_nex_button.html#a81c5a95583a9561f4a188b3e3e082280"> 297</a></span> uint32_t <a class="code" href="class_nex_button.html#a81c5a95583a9561f4a188b3e3e082280">NexButton::Get_background_image_pic</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> {</div>
|
||||
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  cmd += <span class="stringliteral">".pic"</span>;</div>
|
||||
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> }</div>
|
||||
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> </div>
|
||||
<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="class_nex_button.html#a926c09d2615d74ef67d577c2934e2982"> 307</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a926c09d2615d74ef67d577c2934e2982">NexButton::Set_background_image_pic</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> {</div>
|
||||
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  </div>
|
||||
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  cmd += <span class="stringliteral">".pic="</span>;</div>
|
||||
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  </div>
|
||||
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> }</div>
|
||||
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> </div>
|
||||
<div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="class_nex_button.html#afce48613e87933b48e3b29901633c341"> 325</a></span> uint32_t <a class="code" href="class_nex_button.html#afce48613e87933b48e3b29901633c341">NexButton::Get_press_background_image_pic2</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> {</div>
|
||||
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  cmd += <span class="stringliteral">".pic2"</span>;</div>
|
||||
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> }</div>
|
||||
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div>
|
||||
<div class="line"><a name="l00335"></a><span class="lineno"><a class="line" href="class_nex_button.html#a2c1ded80df08c3726347b8acc68d1678"> 335</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a2c1ded80df08c3726347b8acc68d1678">NexButton::Set_press_background_image_pic2</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span> {</div>
|
||||
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  </div>
|
||||
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  cmd += <span class="stringliteral">".pic2="</span>;</div>
|
||||
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  </div>
|
||||
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> }</div>
|
||||
<div class="ttc" id="class_nex_button_html_aea0a8ea4e9a28ae3769414f2532483e9"><div class="ttname"><a href="class_nex_button.html#aea0a8ea4e9a28ae3769414f2532483e9">NexButton::Get_place_ycen</a></div><div class="ttdeci">uint32_t Get_place_ycen(uint32_t *number)</div><div class="ttdoc">Get ycen attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00185">NexButton.cpp:185</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a50c8c3678dd815ec8d4e111c79251b53"><div class="ttname"><a href="class_nex_button.html#a50c8c3678dd815ec8d4e111c79251b53">NexButton::Set_place_ycen</a></div><div class="ttdeci">bool Set_place_ycen(uint32_t number)</div><div class="ttdoc">Set ycen attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00195">NexButton.cpp:195</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a926c09d2615d74ef67d577c2934e2982"><div class="ttname"><a href="class_nex_button.html#a926c09d2615d74ef67d577c2934e2982">NexButton::Set_background_image_pic</a></div><div class="ttdeci">bool Set_background_image_pic(uint32_t number)</div><div class="ttdoc">Set pic attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00307">NexButton.cpp:307</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a57d346614059bac40aff955a0dc9d76a"><div class="ttname"><a href="class_nex_button.html#a57d346614059bac40aff955a0dc9d76a">NexButton::NexButton</a></div><div class="ttdeci">NexButton(uint8_t pid, uint8_t cid, const char *name)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00018">NexButton.cpp:18</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a5ba1f74aa94b41b98172e42583ee13d6"><div class="ttname"><a href="class_nex_button.html#a5ba1f74aa94b41b98172e42583ee13d6">NexButton::getText</a></div><div class="ttdeci">uint16_t getText(char *buffer, uint16_t len)</div><div class="ttdoc">Get text attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00023">NexButton.cpp:23</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a2c1ded80df08c3726347b8acc68d1678"><div class="ttname"><a href="class_nex_button.html#a2c1ded80df08c3726347b8acc68d1678">NexButton::Set_press_background_image_pic2</a></div><div class="ttdeci">bool Set_press_background_image_pic2(uint32_t number)</div><div class="ttdoc">Set pic2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00335">NexButton.cpp:335</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a4be9d316efb2e3c537fdbcbc74c5597c"><div class="ttname"><a href="class_nex_button.html#a4be9d316efb2e3c537fdbcbc74c5597c">NexButton::Get_background_cropi_picc</a></div><div class="ttdeci">uint32_t Get_background_cropi_picc(uint32_t *number)</div><div class="ttdoc">Get picc attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00241">NexButton.cpp:241</a></div></div>
|
||||
<div class="ttc" id="_nex_button_8h_html"><div class="ttname"><a href="_nex_button_8h.html">NexButton.h</a></div><div class="ttdoc">The definition of class NexButton. </div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a76cdf6324e05d7a2c30f397e947e7cc7"><div class="ttname"><a href="class_nex_button.html#a76cdf6324e05d7a2c30f397e947e7cc7">NexButton::Set_place_xcen</a></div><div class="ttdeci">bool Set_place_xcen(uint32_t number)</div><div class="ttdoc">Set xcen attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00167">NexButton.cpp:167</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_abb5a765ca9079944757480a9fda1a6ac"><div class="ttname"><a href="class_nex_button.html#abb5a765ca9079944757480a9fda1a6ac">NexButton::Get_press_background_color_bco2</a></div><div class="ttdeci">uint32_t Get_press_background_color_bco2(uint32_t *number)</div><div class="ttdoc">Get bco2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00073">NexButton.cpp:73</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a81c5a95583a9561f4a188b3e3e082280"><div class="ttname"><a href="class_nex_button.html#a81c5a95583a9561f4a188b3e3e082280">NexButton::Get_background_image_pic</a></div><div class="ttdeci">uint32_t Get_background_image_pic(uint32_t *number)</div><div class="ttdoc">Get pic attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00297">NexButton.cpp:297</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_ae6ade99045d0f97594eac50adc7c12f7"><div class="ttname"><a href="class_nex_button.html#ae6ade99045d0f97594eac50adc7c12f7">NexButton::Set_background_color_bco</a></div><div class="ttdeci">bool Set_background_color_bco(uint32_t number)</div><div class="ttdoc">Set bco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00055">NexButton.cpp:55</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a8f63f08fa00609546011b0a66e7070a7"><div class="ttname"><a href="class_nex_button.html#a8f63f08fa00609546011b0a66e7070a7">NexButton::Set_press_background_crop_picc2</a></div><div class="ttdeci">bool Set_press_background_crop_picc2(uint32_t number)</div><div class="ttdoc">Set picc2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00279">NexButton.cpp:279</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a71fc4f96d4700bd50cd6c937a0bfd43d"><div class="ttname"><a href="class_nex_button.html#a71fc4f96d4700bd50cd6c937a0bfd43d">NexButton::Set_background_crop_picc</a></div><div class="ttdeci">bool Set_background_crop_picc(uint32_t number)</div><div class="ttdoc">Set picc attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00251">NexButton.cpp:251</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a649dafc5afb1dc7f1fc1bde1e6270290"><div class="ttname"><a href="class_nex_button.html#a649dafc5afb1dc7f1fc1bde1e6270290">NexButton::setText</a></div><div class="ttdeci">bool setText(const char *buffer)</div><div class="ttdoc">Set text attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00033">NexButton.cpp:33</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_afce48613e87933b48e3b29901633c341"><div class="ttname"><a href="class_nex_button.html#afce48613e87933b48e3b29901633c341">NexButton::Get_press_background_image_pic2</a></div><div class="ttdeci">uint32_t Get_press_background_image_pic2(uint32_t *number)</div><div class="ttdoc">Get pic2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00325">NexButton.cpp:325</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_ab85cad116c12d13fef9fcfb7dd7ae32e"><div class="ttname"><a href="class_nex_button.html#ab85cad116c12d13fef9fcfb7dd7ae32e">NexButton::Get_press_background_crop_picc2</a></div><div class="ttdeci">uint32_t Get_press_background_crop_picc2(uint32_t *number)</div><div class="ttdoc">Get picc2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00269">NexButton.cpp:269</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_aba350b47585e53ece6c5f6a83fe58698"><div class="ttname"><a href="class_nex_button.html#aba350b47585e53ece6c5f6a83fe58698">NexButton::getFont</a></div><div class="ttdeci">uint32_t getFont(uint32_t *number)</div><div class="ttdoc">Get font attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00213">NexButton.cpp:213</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a0fc4598f87578079127ea33a303962ff"><div class="ttname"><a href="class_nex_button.html#a0fc4598f87578079127ea33a303962ff">NexButton::setFont</a></div><div class="ttdeci">bool setFont(uint32_t number)</div><div class="ttdoc">Set font attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00223">NexButton.cpp:223</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a9fbfe6df7a285e470fb8bc3fd77df00a"><div class="ttname"><a href="class_nex_button.html#a9fbfe6df7a285e470fb8bc3fd77df00a">NexButton::Set_font_color_pco</a></div><div class="ttdeci">bool Set_font_color_pco(uint32_t number)</div><div class="ttdoc">Set pco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00111">NexButton.cpp:111</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_acdc1da7ffea8791a8237b201d572d1e3"><div class="ttname"><a href="class_nex_button.html#acdc1da7ffea8791a8237b201d572d1e3">NexButton::Set_press_background_color_bco2</a></div><div class="ttdeci">bool Set_press_background_color_bco2(uint32_t number)</div><div class="ttdoc">Set bco2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00083">NexButton.cpp:83</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a51b1b698696d7d4969ebb21754bb7e4d"><div class="ttname"><a href="class_nex_button.html#a51b1b698696d7d4969ebb21754bb7e4d">NexButton::Get_font_color_pco</a></div><div class="ttdeci">uint32_t Get_font_color_pco(uint32_t *number)</div><div class="ttdoc">Get pco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00101">NexButton.cpp:101</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_ab970c6e27b5d1d9082b0b3bf47ed9d47"><div class="ttname"><a href="class_nex_button.html#ab970c6e27b5d1d9082b0b3bf47ed9d47">NexButton::Get_place_xcen</a></div><div class="ttdeci">uint32_t Get_place_xcen(uint32_t *number)</div><div class="ttdoc">Get xcen attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00157">NexButton.cpp:157</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a85eb673a290ee35f3a73e9b02193fc70"><div class="ttname"><a href="class_nex_button.html#a85eb673a290ee35f3a73e9b02193fc70">NexButton::Get_background_color_bco</a></div><div class="ttdeci">uint32_t Get_background_color_bco(uint32_t *number)</div><div class="ttdoc">Get bco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00045">NexButton.cpp:45</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a970789126a0781810f499ae064fed942"><div class="ttname"><a href="class_nex_button.html#a970789126a0781810f499ae064fed942">NexButton::Get_press_font_color_pco2</a></div><div class="ttdeci">uint32_t Get_press_font_color_pco2(uint32_t *number)</div><div class="ttdoc">Get pco2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00129">NexButton.cpp:129</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a5fe5e3331795ecb43eacf5aead7f5f4a"><div class="ttname"><a href="class_nex_button.html#a5fe5e3331795ecb43eacf5aead7f5f4a">NexButton::Set_press_font_color_pco2</a></div><div class="ttdeci">bool Set_press_font_color_pco2(uint32_t number)</div><div class="ttdoc">Set pco2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00139">NexButton.cpp:139</a></div></div>
|
||||
<div class="ttc" id="class_nex_touch_html"><div class="ttname"><a href="class_nex_touch.html">NexTouch</a></div><div class="ttdoc">Father class of the components with touch events. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_touch_8h_source.html#l00053">NexTouch.h:53</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
@@ -111,7 +441,7 @@ $(document).ready(function(){initNavTree('_nex_button_8cpp_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="_nex_button_8cpp.html">NexButton.cpp</a></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
20
doc/Documentation/_nex_button_8h.html
Normal file → Executable file
@@ -78,20 +78,6 @@ $(document).ready(function(){initNavTree('_nex_button_8h.html','');});
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include "<a class="el" href="_nex_touch_8h_source.html">NexTouch.h</a>"</code><br />
|
||||
<code>#include "<a class="el" href="_nex_hardware_8h_source.html">NexHardware.h</a>"</code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for NexButton.h:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><img src="_nex_button_8h__incl.png" border="0" usemap="#_nex_button_8h" alt=""/></div>
|
||||
<map name="_nex_button_8h" id="_nex_button_8h">
|
||||
<area shape="rect" id="node2" href="_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="84,155,175,181"/>
|
||||
<area shape="rect" id="node6" href="_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,80,231,107"/>
|
||||
<area shape="rect" id="node4" href="_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="169,304,261,331"/>
|
||||
<area shape="rect" id="node5" href="_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,229,177,256"/>
|
||||
</map>
|
||||
</div>
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
This graph shows which files directly or indirectly include this file:</div>
|
||||
<div class="dyncontent">
|
||||
</div>
|
||||
<p><a href="_nex_button_8h_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
@@ -106,6 +92,10 @@ Classes</h2></td></tr>
|
||||
<dl class="section author"><dt>Author</dt><dd>Wu Pengfei (email:<a href="#" onclick="location.href='mai'+'lto:'+'pen'+'gf'+'ei.'+'wu'+'@it'+'ea'+'d.c'+'c'; return false;">pengf<span style="display: none;">.nosp@m.</span>ei.w<span style="display: none;">.nosp@m.</span>u@ite<span style="display: none;">.nosp@m.</span>ad.c<span style="display: none;">.nosp@m.</span>c</a>) </dd></dl>
|
||||
<dl class="section date"><dt>Date</dt><dd>2015/8/13</dd></dl>
|
||||
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. <br />
|
||||
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.</dd></dl>
|
||||
<dl class="section author"><dt>Author</dt><dd>huang xiaoming (email:<a href="#" onclick="location.href='mai'+'lto:'+'xia'+'om'+'ing'+'.h'+'uan'+'g@'+'ite'+'ad'+'.cc'; return false;">xiaom<span style="display: none;">.nosp@m.</span>ing.<span style="display: none;">.nosp@m.</span>huang<span style="display: none;">.nosp@m.</span>@ite<span style="display: none;">.nosp@m.</span>ad.cc</a>) </dd></dl>
|
||||
<dl class="section date"><dt>Date</dt><dd>2016/9/13</dd></dl>
|
||||
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. <br />
|
||||
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. </dd></dl>
|
||||
|
||||
<p>Definition in file <a class="el" href="_nex_button_8h_source.html">NexButton.h</a>.</p>
|
||||
@@ -115,7 +105,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="_nex_button_8h.html">NexButton.h</a></li>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
@@ -1,14 +1,4 @@
|
||||
<map id="NexButton.h" name="NexButton.h">
|
||||
<area shape="rect" id="node2" href="$_nextion_8h.html" title="The header file including all other header files provided by this library. " alt="" coords="991,80,1068,107"/>
|
||||
<area shape="rect" id="node13" href="$_nex_button_8cpp.html" title="The implementation of class NexButton. " alt="" coords="1093,80,1201,107"/>
|
||||
<area shape="rect" id="node3" href="$_comp_button_8ino_source.html" title="examples/CompButton\l/CompButton.ino" alt="" coords="5,155,160,196"/>
|
||||
<area shape="rect" id="node4" href="$_comp_crop_8ino_source.html" title="examples/CompCrop/CompCrop.ino" alt="" coords="184,162,413,189"/>
|
||||
<area shape="rect" id="node5" href="$_comp_gauge_8ino_source.html" title="examples/CompGauge\l/CompGauge.ino" alt="" coords="437,155,592,196"/>
|
||||
<area shape="rect" id="node6" href="$_comp_hotspot_8ino_source.html" title="examples/CompHotspot\l/CompHotspot.ino" alt="" coords="617,155,778,196"/>
|
||||
<area shape="rect" id="node7" href="$_comp_page_8ino_source.html" title="examples/CompPage/CompPage.ino" alt="" coords="803,162,1037,189"/>
|
||||
<area shape="rect" id="node8" href="$_comp_picture_8ino_source.html" title="examples/CompPicture\l/CompPicture.ino" alt="" coords="1061,155,1219,196"/>
|
||||
<area shape="rect" id="node9" href="$_comp_progress_bar_8ino_source.html" title="examples/CompProgressBar\l/CompProgressBar.ino" alt="" coords="1243,155,1431,196"/>
|
||||
<area shape="rect" id="node10" href="$_comp_slider_8ino_source.html" title="examples/CompSlider\l/CompSlider.ino" alt="" coords="1456,155,1605,196"/>
|
||||
<area shape="rect" id="node11" href="$_comp_text_8ino_source.html" title="examples/CompText/CompText.ino" alt="" coords="1630,162,1855,189"/>
|
||||
<area shape="rect" id="node12" href="$_comp_waveform_8ino_source.html" title="examples/CompWaveform\l/CompWaveform.ino" alt="" coords="1880,155,2053,196"/>
|
||||
</map>
|
||||
<map id="NexButton.h" name="NexButton.h">
|
||||
<area shape="rect" id="node2" href="$_nex_button_8cpp.html" title="The implementation of class NexButton. " alt="" coords="5,80,115,107"/>
|
||||
<area shape="rect" id="node3" href="$_nextion_8h.html" title="The header file including all other header files provided by this library. " alt="" coords="139,80,218,107"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
67f3865f0d9b26081e31a5bc2df6a8cd
|
||||
4a85df539a1d19ddaa422cdade94ae56
|
||||
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 4.6 KiB |
@@ -1,6 +1,6 @@
|
||||
<map id="NexButton.h" name="NexButton.h">
|
||||
<area shape="rect" id="node2" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="84,155,175,181"/>
|
||||
<area shape="rect" id="node6" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,80,231,107"/>
|
||||
<area shape="rect" id="node4" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="169,304,261,331"/>
|
||||
<area shape="rect" id="node5" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,229,177,256"/>
|
||||
</map>
|
||||
<map id="NexButton.h" name="NexButton.h">
|
||||
<area shape="rect" id="node2" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="83,155,176,181"/>
|
||||
<area shape="rect" id="node6" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,80,234,107"/>
|
||||
<area shape="rect" id="node4" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="167,304,262,331"/>
|
||||
<area shape="rect" id="node5" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,229,177,256"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
17abdb5af9b10f74680ea38e8cface72
|
||||
e92c368e36d3eb3ad2a812a0a2e753ec
|
||||
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 20 KiB |
74
doc/Documentation/_nex_button_8h_source.html
Normal file → Executable file
@@ -85,15 +85,81 @@ $(document).ready(function(){initNavTree('_nex_button_8h_source.html','');});
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  uint16_t <a class="code" href="class_nex_button.html#a5ba1f74aa94b41b98172e42583ee13d6">getText</a>(<span class="keywordtype">char</span> *buffer, uint16_t len); </div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a649dafc5afb1dc7f1fc1bde1e6270290">setText</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *buffer); </div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> };</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor">#endif </span><span class="comment">/* #ifndef __NEXBUTTON_H__ */</span><span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a649dafc5afb1dc7f1fc1bde1e6270290">setText</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *buffer); </div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  uint32_t <a class="code" href="class_nex_button.html#a85eb673a290ee35f3a73e9b02193fc70">Get_background_color_bco</a>(uint32_t *number);</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#ae6ade99045d0f97594eac50adc7c12f7">Set_background_color_bco</a>(uint32_t number);</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  uint32_t <a class="code" href="class_nex_button.html#abb5a765ca9079944757480a9fda1a6ac">Get_press_background_color_bco2</a>(uint32_t *number); </div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#acdc1da7ffea8791a8237b201d572d1e3">Set_press_background_color_bco2</a>(uint32_t number); </div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  </div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  uint32_t <a class="code" href="class_nex_button.html#a51b1b698696d7d4969ebb21754bb7e4d">Get_font_color_pco</a>(uint32_t *number); </div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a9fbfe6df7a285e470fb8bc3fd77df00a">Set_font_color_pco</a>(uint32_t number); </div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  uint32_t <a class="code" href="class_nex_button.html#a970789126a0781810f499ae064fed942">Get_press_font_color_pco2</a>(uint32_t *number); </div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a5fe5e3331795ecb43eacf5aead7f5f4a">Set_press_font_color_pco2</a>(uint32_t number); </div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  uint32_t <a class="code" href="class_nex_button.html#ab970c6e27b5d1d9082b0b3bf47ed9d47">Get_place_xcen</a>(uint32_t *number); </div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a76cdf6324e05d7a2c30f397e947e7cc7">Set_place_xcen</a>(uint32_t number); </div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  uint32_t <a class="code" href="class_nex_button.html#aea0a8ea4e9a28ae3769414f2532483e9">Get_place_ycen</a>(uint32_t *number); </div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a50c8c3678dd815ec8d4e111c79251b53">Set_place_ycen</a>(uint32_t number); </div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  </div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  uint32_t <a class="code" href="class_nex_button.html#aba350b47585e53ece6c5f6a83fe58698">getFont</a>(uint32_t *number); </div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  </div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a0fc4598f87578079127ea33a303962ff">setFont</a>(uint32_t number); </div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  uint32_t <a class="code" href="class_nex_button.html#a4be9d316efb2e3c537fdbcbc74c5597c">Get_background_cropi_picc</a>(uint32_t *number); </div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a71fc4f96d4700bd50cd6c937a0bfd43d">Set_background_crop_picc</a>(uint32_t number); </div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  uint32_t <a class="code" href="class_nex_button.html#ab85cad116c12d13fef9fcfb7dd7ae32e">Get_press_background_crop_picc2</a>(uint32_t *number); </div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a8f63f08fa00609546011b0a66e7070a7">Set_press_background_crop_picc2</a>(uint32_t number); </div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  uint32_t <a class="code" href="class_nex_button.html#a81c5a95583a9561f4a188b3e3e082280">Get_background_image_pic</a>(uint32_t *number); </div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a926c09d2615d74ef67d577c2934e2982">Set_background_image_pic</a>(uint32_t number); </div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  uint32_t <a class="code" href="class_nex_button.html#afce48613e87933b48e3b29901633c341">Get_press_background_image_pic2</a>(uint32_t *number); </div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> </div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_button.html#a2c1ded80df08c3726347b8acc68d1678">Set_press_background_image_pic2</a>(uint32_t number); </div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> };</div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="preprocessor">#endif </span><span class="comment">/* #ifndef __NEXBUTTON_H__ */</span><span class="preprocessor"></span></div>
|
||||
<div class="ttc" id="class_nex_button_html_aea0a8ea4e9a28ae3769414f2532483e9"><div class="ttname"><a href="class_nex_button.html#aea0a8ea4e9a28ae3769414f2532483e9">NexButton::Get_place_ycen</a></div><div class="ttdeci">uint32_t Get_place_ycen(uint32_t *number)</div><div class="ttdoc">Get ycen attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00185">NexButton.cpp:185</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a50c8c3678dd815ec8d4e111c79251b53"><div class="ttname"><a href="class_nex_button.html#a50c8c3678dd815ec8d4e111c79251b53">NexButton::Set_place_ycen</a></div><div class="ttdeci">bool Set_place_ycen(uint32_t number)</div><div class="ttdoc">Set ycen attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00195">NexButton.cpp:195</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a926c09d2615d74ef67d577c2934e2982"><div class="ttname"><a href="class_nex_button.html#a926c09d2615d74ef67d577c2934e2982">NexButton::Set_background_image_pic</a></div><div class="ttdeci">bool Set_background_image_pic(uint32_t number)</div><div class="ttdoc">Set pic attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00307">NexButton.cpp:307</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a57d346614059bac40aff955a0dc9d76a"><div class="ttname"><a href="class_nex_button.html#a57d346614059bac40aff955a0dc9d76a">NexButton::NexButton</a></div><div class="ttdeci">NexButton(uint8_t pid, uint8_t cid, const char *name)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00018">NexButton.cpp:18</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a5ba1f74aa94b41b98172e42583ee13d6"><div class="ttname"><a href="class_nex_button.html#a5ba1f74aa94b41b98172e42583ee13d6">NexButton::getText</a></div><div class="ttdeci">uint16_t getText(char *buffer, uint16_t len)</div><div class="ttdoc">Get text attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00023">NexButton.cpp:23</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a2c1ded80df08c3726347b8acc68d1678"><div class="ttname"><a href="class_nex_button.html#a2c1ded80df08c3726347b8acc68d1678">NexButton::Set_press_background_image_pic2</a></div><div class="ttdeci">bool Set_press_background_image_pic2(uint32_t number)</div><div class="ttdoc">Set pic2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00335">NexButton.cpp:335</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a4be9d316efb2e3c537fdbcbc74c5597c"><div class="ttname"><a href="class_nex_button.html#a4be9d316efb2e3c537fdbcbc74c5597c">NexButton::Get_background_cropi_picc</a></div><div class="ttdeci">uint32_t Get_background_cropi_picc(uint32_t *number)</div><div class="ttdoc">Get picc attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00241">NexButton.cpp:241</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a76cdf6324e05d7a2c30f397e947e7cc7"><div class="ttname"><a href="class_nex_button.html#a76cdf6324e05d7a2c30f397e947e7cc7">NexButton::Set_place_xcen</a></div><div class="ttdeci">bool Set_place_xcen(uint32_t number)</div><div class="ttdoc">Set xcen attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00167">NexButton.cpp:167</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_abb5a765ca9079944757480a9fda1a6ac"><div class="ttname"><a href="class_nex_button.html#abb5a765ca9079944757480a9fda1a6ac">NexButton::Get_press_background_color_bco2</a></div><div class="ttdeci">uint32_t Get_press_background_color_bco2(uint32_t *number)</div><div class="ttdoc">Get bco2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00073">NexButton.cpp:73</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a81c5a95583a9561f4a188b3e3e082280"><div class="ttname"><a href="class_nex_button.html#a81c5a95583a9561f4a188b3e3e082280">NexButton::Get_background_image_pic</a></div><div class="ttdeci">uint32_t Get_background_image_pic(uint32_t *number)</div><div class="ttdoc">Get pic attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00297">NexButton.cpp:297</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_ae6ade99045d0f97594eac50adc7c12f7"><div class="ttname"><a href="class_nex_button.html#ae6ade99045d0f97594eac50adc7c12f7">NexButton::Set_background_color_bco</a></div><div class="ttdeci">bool Set_background_color_bco(uint32_t number)</div><div class="ttdoc">Set bco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00055">NexButton.cpp:55</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a8f63f08fa00609546011b0a66e7070a7"><div class="ttname"><a href="class_nex_button.html#a8f63f08fa00609546011b0a66e7070a7">NexButton::Set_press_background_crop_picc2</a></div><div class="ttdeci">bool Set_press_background_crop_picc2(uint32_t number)</div><div class="ttdoc">Set picc2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00279">NexButton.cpp:279</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html"><div class="ttname"><a href="class_nex_button.html">NexButton</a></div><div class="ttdoc">NexButton component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8h_source.html#l00035">NexButton.h:35</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a71fc4f96d4700bd50cd6c937a0bfd43d"><div class="ttname"><a href="class_nex_button.html#a71fc4f96d4700bd50cd6c937a0bfd43d">NexButton::Set_background_crop_picc</a></div><div class="ttdeci">bool Set_background_crop_picc(uint32_t number)</div><div class="ttdoc">Set picc attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00251">NexButton.cpp:251</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a649dafc5afb1dc7f1fc1bde1e6270290"><div class="ttname"><a href="class_nex_button.html#a649dafc5afb1dc7f1fc1bde1e6270290">NexButton::setText</a></div><div class="ttdeci">bool setText(const char *buffer)</div><div class="ttdoc">Set text attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00033">NexButton.cpp:33</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_afce48613e87933b48e3b29901633c341"><div class="ttname"><a href="class_nex_button.html#afce48613e87933b48e3b29901633c341">NexButton::Get_press_background_image_pic2</a></div><div class="ttdeci">uint32_t Get_press_background_image_pic2(uint32_t *number)</div><div class="ttdoc">Get pic2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00325">NexButton.cpp:325</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_ab85cad116c12d13fef9fcfb7dd7ae32e"><div class="ttname"><a href="class_nex_button.html#ab85cad116c12d13fef9fcfb7dd7ae32e">NexButton::Get_press_background_crop_picc2</a></div><div class="ttdeci">uint32_t Get_press_background_crop_picc2(uint32_t *number)</div><div class="ttdoc">Get picc2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00269">NexButton.cpp:269</a></div></div>
|
||||
<div class="ttc" id="_nex_touch_8h_html"><div class="ttname"><a href="_nex_touch_8h.html">NexTouch.h</a></div><div class="ttdoc">The definition of class NexTouch. </div></div>
|
||||
<div class="ttc" id="class_nex_button_html_aba350b47585e53ece6c5f6a83fe58698"><div class="ttname"><a href="class_nex_button.html#aba350b47585e53ece6c5f6a83fe58698">NexButton::getFont</a></div><div class="ttdeci">uint32_t getFont(uint32_t *number)</div><div class="ttdoc">Get font attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00213">NexButton.cpp:213</a></div></div>
|
||||
<div class="ttc" id="_nex_hardware_8h_html"><div class="ttname"><a href="_nex_hardware_8h.html">NexHardware.h</a></div><div class="ttdoc">The definition of base API for using Nextion. </div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a0fc4598f87578079127ea33a303962ff"><div class="ttname"><a href="class_nex_button.html#a0fc4598f87578079127ea33a303962ff">NexButton::setFont</a></div><div class="ttdeci">bool setFont(uint32_t number)</div><div class="ttdoc">Set font attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00223">NexButton.cpp:223</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a9fbfe6df7a285e470fb8bc3fd77df00a"><div class="ttname"><a href="class_nex_button.html#a9fbfe6df7a285e470fb8bc3fd77df00a">NexButton::Set_font_color_pco</a></div><div class="ttdeci">bool Set_font_color_pco(uint32_t number)</div><div class="ttdoc">Set pco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00111">NexButton.cpp:111</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_acdc1da7ffea8791a8237b201d572d1e3"><div class="ttname"><a href="class_nex_button.html#acdc1da7ffea8791a8237b201d572d1e3">NexButton::Set_press_background_color_bco2</a></div><div class="ttdeci">bool Set_press_background_color_bco2(uint32_t number)</div><div class="ttdoc">Set bco2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00083">NexButton.cpp:83</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a51b1b698696d7d4969ebb21754bb7e4d"><div class="ttname"><a href="class_nex_button.html#a51b1b698696d7d4969ebb21754bb7e4d">NexButton::Get_font_color_pco</a></div><div class="ttdeci">uint32_t Get_font_color_pco(uint32_t *number)</div><div class="ttdoc">Get pco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00101">NexButton.cpp:101</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_ab970c6e27b5d1d9082b0b3bf47ed9d47"><div class="ttname"><a href="class_nex_button.html#ab970c6e27b5d1d9082b0b3bf47ed9d47">NexButton::Get_place_xcen</a></div><div class="ttdeci">uint32_t Get_place_xcen(uint32_t *number)</div><div class="ttdoc">Get xcen attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00157">NexButton.cpp:157</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a85eb673a290ee35f3a73e9b02193fc70"><div class="ttname"><a href="class_nex_button.html#a85eb673a290ee35f3a73e9b02193fc70">NexButton::Get_background_color_bco</a></div><div class="ttdeci">uint32_t Get_background_color_bco(uint32_t *number)</div><div class="ttdoc">Get bco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00045">NexButton.cpp:45</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a970789126a0781810f499ae064fed942"><div class="ttname"><a href="class_nex_button.html#a970789126a0781810f499ae064fed942">NexButton::Get_press_font_color_pco2</a></div><div class="ttdeci">uint32_t Get_press_font_color_pco2(uint32_t *number)</div><div class="ttdoc">Get pco2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00129">NexButton.cpp:129</a></div></div>
|
||||
<div class="ttc" id="class_nex_button_html_a5fe5e3331795ecb43eacf5aead7f5f4a"><div class="ttname"><a href="class_nex_button.html#a5fe5e3331795ecb43eacf5aead7f5f4a">NexButton::Set_press_font_color_pco2</a></div><div class="ttdeci">bool Set_press_font_color_pco2(uint32_t number)</div><div class="ttdoc">Set pco2 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_button_8cpp_source.html#l00139">NexButton.cpp:139</a></div></div>
|
||||
<div class="ttc" id="class_nex_touch_html"><div class="ttname"><a href="class_nex_touch.html">NexTouch</a></div><div class="ttdoc">Father class of the components with touch events. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_touch_8h_source.html#l00053">NexTouch.h:53</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
@@ -101,7 +167,7 @@ $(document).ready(function(){initNavTree('_nex_button_8h_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="_nex_button_8h.html">NexButton.h</a></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
11
doc/Documentation/_nex_config_8h.html
Normal file → Executable file
0
doc/Documentation/_nex_config_8h.js
Normal file → Executable file
@@ -1,39 +1,45 @@
|
||||
<map id="NexConfig.h" name="NexConfig.h">
|
||||
<area shape="rect" id="node2" href="$_nextion_8h.html" title="The header file including all other header files provided by this library. " alt="" coords="991,379,1068,405"/>
|
||||
<area shape="rect" id="node13" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="1033,155,1124,181"/>
|
||||
<area shape="rect" id="node14" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="935,229,1046,256"/>
|
||||
<area shape="rect" id="node37" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="1079,80,1174,107"/>
|
||||
<area shape="rect" id="node3" href="$_comp_button_8ino_source.html" title="examples/CompButton\l/CompButton.ino" alt="" coords="5,453,160,495"/>
|
||||
<area shape="rect" id="node4" href="$_comp_crop_8ino_source.html" title="examples/CompCrop/CompCrop.ino" alt="" coords="184,461,413,487"/>
|
||||
<area shape="rect" id="node5" href="$_comp_gauge_8ino_source.html" title="examples/CompGauge\l/CompGauge.ino" alt="" coords="437,453,592,495"/>
|
||||
<area shape="rect" id="node6" href="$_comp_hotspot_8ino_source.html" title="examples/CompHotspot\l/CompHotspot.ino" alt="" coords="617,453,778,495"/>
|
||||
<area shape="rect" id="node7" href="$_comp_page_8ino_source.html" title="examples/CompPage/CompPage.ino" alt="" coords="803,461,1037,487"/>
|
||||
<area shape="rect" id="node8" href="$_comp_picture_8ino_source.html" title="examples/CompPicture\l/CompPicture.ino" alt="" coords="1061,453,1219,495"/>
|
||||
<area shape="rect" id="node9" href="$_comp_progress_bar_8ino_source.html" title="examples/CompProgressBar\l/CompProgressBar.ino" alt="" coords="1243,453,1431,495"/>
|
||||
<area shape="rect" id="node10" href="$_comp_slider_8ino_source.html" title="examples/CompSlider\l/CompSlider.ino" alt="" coords="1456,453,1605,495"/>
|
||||
<area shape="rect" id="node11" href="$_comp_text_8ino_source.html" title="examples/CompText/CompText.ino" alt="" coords="1630,461,1855,487"/>
|
||||
<area shape="rect" id="node12" href="$_comp_waveform_8ino_source.html" title="examples/CompWaveform\l/CompWaveform.ino" alt="" coords="1880,453,2053,495"/>
|
||||
<area shape="rect" id="node15" href="$_nex_button_8h.html" title="The definition of class NexButton. " alt="" coords="1365,304,1459,331"/>
|
||||
<area shape="rect" id="node17" href="$_nex_crop_8h.html" title="The definition of class NexCrop. " alt="" coords="1484,304,1567,331"/>
|
||||
<area shape="rect" id="node19" href="$_nex_gauge_8h.html" title="The definition of class NexGauge. " alt="" coords="1591,304,1686,331"/>
|
||||
<area shape="rect" id="node21" href="$_nex_hotspot_8h.html" title="The definition of class NexHotspot. " alt="" coords="247,304,348,331"/>
|
||||
<area shape="rect" id="node23" href="$_nex_page_8h.html" title="The definition of class NexPage. " alt="" coords="373,304,459,331"/>
|
||||
<area shape="rect" id="node25" href="$_nex_picture_8h.html" title="The definition of class NexPicture. " alt="" coords="483,304,581,331"/>
|
||||
<area shape="rect" id="node27" href="$_nex_progress_bar_8h.html" title="The definition of class NexProgressBar. " alt="" coords="605,304,733,331"/>
|
||||
<area shape="rect" id="node29" href="$_nex_slider_8h.html" title="The definition of class NexSlider. " alt="" coords="758,304,847,331"/>
|
||||
<area shape="rect" id="node31" href="$_nex_text_8h.html" title="The definition of class NexText. " alt="" coords="1122,304,1203,331"/>
|
||||
<area shape="rect" id="node33" href="$_nex_waveform_8h.html" title="The definition of class NexWaveform. " alt="" coords="1227,304,1341,331"/>
|
||||
<area shape="rect" id="node36" href="$_nex_touch_8cpp.html" title="The implementation of class NexTouch. " alt="" coords="1173,229,1278,256"/>
|
||||
<area shape="rect" id="node35" href="$_nex_hardware_8cpp.html" title="The implementation of base API for using Nextion. " alt="" coords="871,304,995,331"/>
|
||||
<area shape="rect" id="node16" href="$_nex_button_8cpp.html" title="The implementation of class NexButton. " alt="" coords="1362,379,1470,405"/>
|
||||
<area shape="rect" id="node18" href="$_nex_crop_8cpp.html" title="The implementation of class NexCrop. " alt="" coords="1494,379,1591,405"/>
|
||||
<area shape="rect" id="node20" href="$_nex_gauge_8cpp.html" title="The implementation of class NexGauge. " alt="" coords="1615,379,1723,405"/>
|
||||
<area shape="rect" id="node22" href="$_nex_hotspot_8cpp.html" title="The implementation of class NexHotspot. " alt="" coords="213,379,328,405"/>
|
||||
<area shape="rect" id="node24" href="$_nex_page_8cpp.html" title="The implementation of class NexPage. " alt="" coords="353,379,453,405"/>
|
||||
<area shape="rect" id="node26" href="$_nex_picture_8cpp.html" title="The implementation of class NexPicture. " alt="" coords="477,379,587,405"/>
|
||||
<area shape="rect" id="node28" href="$_nex_progress_bar_8cpp.html" title="The implementation of class NexProgressBar. " alt="" coords="611,379,754,405"/>
|
||||
<area shape="rect" id="node30" href="$_nex_slider_8cpp.html" title="The implementation of class NexSlider. " alt="" coords="778,379,881,405"/>
|
||||
<area shape="rect" id="node32" href="$_nex_text_8cpp.html" title="The implementation of class NexText. " alt="" coords="1093,379,1187,405"/>
|
||||
<area shape="rect" id="node34" href="$_nex_waveform_8cpp.html" title="The implementation of class NexWaveform. " alt="" coords="1211,379,1338,405"/>
|
||||
<area shape="rect" id="node38" href="$_nex_object_8cpp.html" title="The implementation of class NexObject. " alt="" coords="1149,155,1257,181"/>
|
||||
</map>
|
||||
<map id="NexConfig.h" name="NexConfig.h">
|
||||
<area shape="rect" id="node2" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="1368,155,1461,181"/>
|
||||
<area shape="rect" id="node5" href="$_nextion_8h.html" title="The header file including all other header files provided by this library. " alt="" coords="1301,379,1379,405"/>
|
||||
<area shape="rect" id="node6" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="1263,229,1377,256"/>
|
||||
<area shape="rect" id="node43" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="1409,80,1503,107"/>
|
||||
<area shape="rect" id="node3" href="$_nex_button_8h.html" title="The definition of class NexButton. " alt="" coords="1943,304,2038,331"/>
|
||||
<area shape="rect" id="node7" href="$_nex_checkbox_8h.html" title="The definition of class NexCheckbox. " alt="" coords="2062,304,2178,331"/>
|
||||
<area shape="rect" id="node9" href="$_nex_crop_8h.html" title="The definition of class NexCrop. " alt="" coords="2203,304,2288,331"/>
|
||||
<area shape="rect" id="node11" href="$_nex_dual_state_button_8h.html" title="The definition of class NexDSButton. " alt="" coords="2313,304,2466,331"/>
|
||||
<area shape="rect" id="node13" href="$_nex_gauge_8h.html" title="The definition of class NexGauge. " alt="" coords="2490,304,2585,331"/>
|
||||
<area shape="rect" id="node16" href="$_nex_hotspot_8h.html" title="The definition of class NexHotspot. " alt="" coords="191,304,294,331"/>
|
||||
<area shape="rect" id="node18" href="$_nex_number_8h.html" title="The definition of class NexNumber. " alt="" coords="318,304,421,331"/>
|
||||
<area shape="rect" id="node20" href="$_nex_page_8h.html" title="The definition of class NexPage. " alt="" coords="445,304,531,331"/>
|
||||
<area shape="rect" id="node22" href="$_nex_picture_8h.html" title="The definition of class NexPicture. " alt="" coords="556,304,655,331"/>
|
||||
<area shape="rect" id="node24" href="$_nex_progress_bar_8h.html" title="The definition of class NexProgressBar. " alt="" coords="679,304,809,331"/>
|
||||
<area shape="rect" id="node26" href="$_nex_radio_8h.html" title="The definition of class NexRadio. " alt="" coords="833,304,924,331"/>
|
||||
<area shape="rect" id="node28" href="$_nex_scrolltext_8h.html" title="The definition of class NexScrolltext. " alt="" coords="948,304,1060,331"/>
|
||||
<area shape="rect" id="node30" href="$_nex_slider_8h.html" title="The definition of class NexSlider. " alt="" coords="1084,304,1175,331"/>
|
||||
<area shape="rect" id="node32" href="$_nex_text_8h.html" title="The definition of class NexText. " alt="" coords="1452,304,1535,331"/>
|
||||
<area shape="rect" id="node34" href="$_nex_timer_8h.html" title="The definition of class NexTimer. " alt="" coords="1559,304,1649,331"/>
|
||||
<area shape="rect" id="node36" href="$_nex_waveform_8h.html" title="The definition of class NexWaveform. " alt="" coords="1673,304,1791,331"/>
|
||||
<area shape="rect" id="node38" href="$_nex_variable_8h_source.html" title="NexVariable.h" alt="" coords="1815,304,1919,331"/>
|
||||
<area shape="rect" id="node42" href="$_nex_touch_8cpp.html" title="The implementation of class NexTouch. " alt="" coords="1604,229,1711,256"/>
|
||||
<area shape="rect" id="node4" href="$_nex_button_8cpp.html" title="The implementation of class NexButton. " alt="" coords="1951,379,2060,405"/>
|
||||
<area shape="rect" id="node15" href="$_nex_hardware_8cpp.html" title="The implementation of base API for using Nextion. " alt="" coords="1199,304,1326,331"/>
|
||||
<area shape="rect" id="node40" href="$_nex_upload_8h.html" title="The definition of class NexUpload. " alt="" coords="68,304,167,331"/>
|
||||
<area shape="rect" id="node8" href="$_nex_checkbox_8cpp.html" title="The implementation of class NexCheckbox. " alt="" coords="2084,379,2215,405"/>
|
||||
<area shape="rect" id="node10" href="$_nex_crop_8cpp.html" title="The implementation of class NexCrop. " alt="" coords="2239,379,2337,405"/>
|
||||
<area shape="rect" id="node12" href="$_nex_dual_state_button_8cpp.html" title="The implementation of class NexDSButton. " alt="" coords="2362,379,2529,405"/>
|
||||
<area shape="rect" id="node14" href="$_nex_gauge_8cpp.html" title="The implementation of class NexGauge. " alt="" coords="2553,379,2663,405"/>
|
||||
<area shape="rect" id="node17" href="$_nex_hotspot_8cpp.html" title="The implementation of class NexHotspot. " alt="" coords="141,379,259,405"/>
|
||||
<area shape="rect" id="node19" href="$_nex_number_8cpp.html" title="The implementation of class NexNumber. " alt="" coords="283,379,400,405"/>
|
||||
<area shape="rect" id="node21" href="$_nex_page_8cpp.html" title="The implementation of class NexPage. " alt="" coords="424,379,525,405"/>
|
||||
<area shape="rect" id="node23" href="$_nex_picture_8cpp.html" title="The implementation of class NexPicture. " alt="" coords="549,379,661,405"/>
|
||||
<area shape="rect" id="node25" href="$_nex_progress_bar_8cpp.html" title="The implementation of class NexProgressBar. " alt="" coords="685,379,827,405"/>
|
||||
<area shape="rect" id="node27" href="$_nex_radio_8cpp.html" title="The implementation of class NexRadio. " alt="" coords="851,379,957,405"/>
|
||||
<area shape="rect" id="node29" href="$_nex_scrolltext_8cpp.html" title="The implementation of class NexScrolltext. " alt="" coords="981,379,1107,405"/>
|
||||
<area shape="rect" id="node31" href="$_nex_slider_8cpp.html" title="The implementation of class NexSlider. " alt="" coords="1132,379,1236,405"/>
|
||||
<area shape="rect" id="node33" href="$_nex_text_8cpp.html" title="The implementation of class NexText. " alt="" coords="1403,379,1501,405"/>
|
||||
<area shape="rect" id="node35" href="$_nex_timer_8cpp.html" title="The implementation of class NexTimer. " alt="" coords="1525,379,1629,405"/>
|
||||
<area shape="rect" id="node37" href="$_nex_waveform_8cpp.html" title="The implementation of class NexWaveform. " alt="" coords="1653,379,1784,405"/>
|
||||
<area shape="rect" id="node39" href="$_nex_variable_8cpp.html" title="The implementation of class NexText. " alt="" coords="1807,379,1926,405"/>
|
||||
<area shape="rect" id="node41" href="$_nex_upload_8cpp.html" title="The implementation of download tft file for nextion. " alt="" coords="5,379,117,405"/>
|
||||
<area shape="rect" id="node44" href="$_nex_object_8cpp.html" title="The implementation of class NexObject. " alt="" coords="1485,155,1595,181"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
5ee687c208fb39ff7e994fc1ad4bfbf2
|
||||
dfc262752b573ac6b6dfbf0eb2fe3397
|
||||
|
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 198 KiB |
2
doc/Documentation/_nex_config_8h_source.html
Normal file → Executable file
@@ -99,7 +99,7 @@ $(document).ready(function(){initNavTree('_nex_config_8h_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="_nex_config_8h.html">NexConfig.h</a></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
9
doc/Documentation/_nex_crop_8cpp.html
Normal file → Executable file
@@ -75,13 +75,6 @@ $(document).ready(function(){initNavTree('_nex_crop_8cpp.html','');});
|
||||
<p>The implementation of class <a class="el" href="class_nex_crop.html" title="NexCrop component. ">NexCrop</a>.
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include "<a class="el" href="_nex_crop_8h_source.html">NexCrop.h</a>"</code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for NexCrop.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><img src="_nex_crop_8cpp__incl.png" border="0" usemap="#_nex_crop_8cpp" alt=""/></div>
|
||||
<map name="_nex_crop_8cpp" id="_nex_crop_8cpp">
|
||||
<area shape="rect" id="node2" href="_nex_crop_8h.html" title="The definition of class NexCrop. " alt="" coords="88,80,171,107"/>
|
||||
<area shape="rect" id="node3" href="_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="84,229,175,256"/>
|
||||
</div>
|
||||
<p><a href="_nex_crop_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
@@ -98,7 +91,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="_nex_crop_8cpp.html">NexCrop.cpp</a></li>
|
||||
</div><!-- doc-content -->
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<map id="NexCrop.cpp" name="NexCrop.cpp">
|
||||
<area shape="rect" id="node2" href="$_nex_crop_8h.html" title="The definition of class NexCrop. " alt="" coords="88,80,171,107"/>
|
||||
<area shape="rect" id="node3" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="84,229,175,256"/>
|
||||
<area shape="rect" id="node7" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,155,231,181"/>
|
||||
<area shape="rect" id="node5" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="169,379,261,405"/>
|
||||
<area shape="rect" id="node6" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,304,177,331"/>
|
||||
</map>
|
||||
<map id="NexCrop.cpp" name="NexCrop.cpp">
|
||||
<area shape="rect" id="node2" href="$_nex_crop_8h.html" title="The definition of class NexCrop. " alt="" coords="87,80,172,107"/>
|
||||
<area shape="rect" id="node3" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="83,229,176,256"/>
|
||||
<area shape="rect" id="node7" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,155,234,181"/>
|
||||
<area shape="rect" id="node5" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="167,379,262,405"/>
|
||||
<area shape="rect" id="node6" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,304,177,331"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
260deac965986730dafb818500269705
|
||||
92dc338994e30e7c59a38fcee00de82f
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 24 KiB |
35
doc/Documentation/_nex_crop_8cpp_source.html
Normal file → Executable file
@@ -79,7 +79,7 @@ $(document).ready(function(){initNavTree('_nex_crop_8cpp_source.html','');});
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> {</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> }</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="class_nex_crop.html#a2cbfe125182626965dd530f14ab55885"> 23</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_crop.html#a2cbfe125182626965dd530f14ab55885">NexCrop::getPic</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="class_nex_crop.html#a19f824bea045bab4cc1afc5950259247"> 23</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_crop.html#a19f824bea045bab4cc1afc5950259247">NexCrop::Get_background_crop_picc</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> {</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  String cmd = String(<span class="stringliteral">"get "</span>);</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  cmd += getObjName();</div>
|
||||
@@ -88,7 +88,7 @@ $(document).ready(function(){initNavTree('_nex_crop_8cpp_source.html','');});
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> }</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db"> 32</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db">NexCrop::setPic</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_nex_crop.html#aa85a69de5055c29f0a85406d10806bfe"> 32</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_crop.html#aa85a69de5055c29f0a85406d10806bfe">NexCrop::Set_background_crop_picc</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  String cmd;</div>
|
||||
@@ -102,10 +102,35 @@ $(document).ready(function(){initNavTree('_nex_crop_8cpp_source.html','');});
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> }</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div>
|
||||
<div class="ttc" id="class_nex_crop_html_a2cbfe125182626965dd530f14ab55885"><div class="ttname"><a href="class_nex_crop.html#a2cbfe125182626965dd530f14ab55885">NexCrop::getPic</a></div><div class="ttdeci">bool getPic(uint32_t *number)</div><div class="ttdoc">Get the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00023">NexCrop.cpp:23</a></div></div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_nex_crop.html#a2cbfe125182626965dd530f14ab55885"> 46</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_crop.html#a2cbfe125182626965dd530f14ab55885">NexCrop::getPic</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> {</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  String cmd = String(<span class="stringliteral">"get "</span>);</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  cmd += <span class="stringliteral">".picc"</span>;</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> }</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db"> 55</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db">NexCrop::setPic</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> {</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  cmd += <span class="stringliteral">".picc="</span>;</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> }</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div>
|
||||
<div class="ttc" id="class_nex_crop_html_a19f824bea045bab4cc1afc5950259247"><div class="ttname"><a href="class_nex_crop.html#a19f824bea045bab4cc1afc5950259247">NexCrop::Get_background_crop_picc</a></div><div class="ttdeci">bool Get_background_crop_picc(uint32_t *number)</div><div class="ttdoc">Get the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00023">NexCrop.cpp:23</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_a2cbfe125182626965dd530f14ab55885"><div class="ttname"><a href="class_nex_crop.html#a2cbfe125182626965dd530f14ab55885">NexCrop::getPic</a></div><div class="ttdeci">bool getPic(uint32_t *number)</div><div class="ttdoc">Get the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00046">NexCrop.cpp:46</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_a1a3a195d3da05cb832f91a2ef43f27d3"><div class="ttname"><a href="class_nex_crop.html#a1a3a195d3da05cb832f91a2ef43f27d3">NexCrop::NexCrop</a></div><div class="ttdeci">NexCrop(uint8_t pid, uint8_t cid, const char *name)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00018">NexCrop.cpp:18</a></div></div>
|
||||
<div class="ttc" id="_nex_crop_8h_html"><div class="ttname"><a href="_nex_crop_8h.html">NexCrop.h</a></div><div class="ttdoc">The definition of class NexCrop. </div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_aac34fc2f8ead1e330918089ea8a339db"><div class="ttname"><a href="class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db">NexCrop::setPic</a></div><div class="ttdeci">bool setPic(uint32_t number)</div><div class="ttdoc">Set the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00032">NexCrop.cpp:32</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_aac34fc2f8ead1e330918089ea8a339db"><div class="ttname"><a href="class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db">NexCrop::setPic</a></div><div class="ttdeci">bool setPic(uint32_t number)</div><div class="ttdoc">Set the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00055">NexCrop.cpp:55</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_aa85a69de5055c29f0a85406d10806bfe"><div class="ttname"><a href="class_nex_crop.html#aa85a69de5055c29f0a85406d10806bfe">NexCrop::Set_background_crop_picc</a></div><div class="ttdeci">bool Set_background_crop_picc(uint32_t number)</div><div class="ttdoc">Set the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00032">NexCrop.cpp:32</a></div></div>
|
||||
<div class="ttc" id="class_nex_touch_html"><div class="ttname"><a href="class_nex_touch.html">NexTouch</a></div><div class="ttdoc">Father class of the components with touch events. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_touch_8h_source.html#l00053">NexTouch.h:53</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
@@ -113,7 +138,7 @@ $(document).ready(function(){initNavTree('_nex_crop_8cpp_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="_nex_crop_8cpp.html">NexCrop.cpp</a></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
16
doc/Documentation/_nex_crop_8h.html
Normal file → Executable file
@@ -78,20 +78,6 @@ $(document).ready(function(){initNavTree('_nex_crop_8h.html','');});
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include "<a class="el" href="_nex_touch_8h_source.html">NexTouch.h</a>"</code><br />
|
||||
<code>#include "<a class="el" href="_nex_hardware_8h_source.html">NexHardware.h</a>"</code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for NexCrop.h:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><img src="_nex_crop_8h__incl.png" border="0" usemap="#_nex_crop_8h" alt=""/></div>
|
||||
<map name="_nex_crop_8h" id="_nex_crop_8h">
|
||||
<area shape="rect" id="node2" href="_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="84,155,175,181"/>
|
||||
<area shape="rect" id="node6" href="_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,80,231,107"/>
|
||||
<area shape="rect" id="node4" href="_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="169,304,261,331"/>
|
||||
<area shape="rect" id="node5" href="_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,229,177,256"/>
|
||||
</map>
|
||||
</div>
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
This graph shows which files directly or indirectly include this file:</div>
|
||||
<div class="dyncontent">
|
||||
</div>
|
||||
<p><a href="_nex_crop_8h_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
@@ -115,7 +101,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="_nex_crop_8h.html">NexCrop.h</a></li>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
@@ -1,14 +1,4 @@
|
||||
<map id="NexCrop.h" name="NexCrop.h">
|
||||
<area shape="rect" id="node2" href="$_nextion_8h.html" title="The header file including all other header files provided by this library. " alt="" coords="991,80,1068,107"/>
|
||||
<area shape="rect" id="node13" href="$_nex_crop_8cpp.html" title="The implementation of class NexCrop. " alt="" coords="1093,80,1190,107"/>
|
||||
<area shape="rect" id="node3" href="$_comp_button_8ino_source.html" title="examples/CompButton\l/CompButton.ino" alt="" coords="5,155,160,196"/>
|
||||
<area shape="rect" id="node4" href="$_comp_crop_8ino_source.html" title="examples/CompCrop/CompCrop.ino" alt="" coords="184,162,413,189"/>
|
||||
<area shape="rect" id="node5" href="$_comp_gauge_8ino_source.html" title="examples/CompGauge\l/CompGauge.ino" alt="" coords="437,155,592,196"/>
|
||||
<area shape="rect" id="node6" href="$_comp_hotspot_8ino_source.html" title="examples/CompHotspot\l/CompHotspot.ino" alt="" coords="617,155,778,196"/>
|
||||
<area shape="rect" id="node7" href="$_comp_page_8ino_source.html" title="examples/CompPage/CompPage.ino" alt="" coords="803,162,1037,189"/>
|
||||
<area shape="rect" id="node8" href="$_comp_picture_8ino_source.html" title="examples/CompPicture\l/CompPicture.ino" alt="" coords="1061,155,1219,196"/>
|
||||
<area shape="rect" id="node9" href="$_comp_progress_bar_8ino_source.html" title="examples/CompProgressBar\l/CompProgressBar.ino" alt="" coords="1243,155,1431,196"/>
|
||||
<area shape="rect" id="node10" href="$_comp_slider_8ino_source.html" title="examples/CompSlider\l/CompSlider.ino" alt="" coords="1456,155,1605,196"/>
|
||||
<area shape="rect" id="node11" href="$_comp_text_8ino_source.html" title="examples/CompText/CompText.ino" alt="" coords="1630,162,1855,189"/>
|
||||
<area shape="rect" id="node12" href="$_comp_waveform_8ino_source.html" title="examples/CompWaveform\l/CompWaveform.ino" alt="" coords="1880,155,2053,196"/>
|
||||
</map>
|
||||
<map id="NexCrop.h" name="NexCrop.h">
|
||||
<area shape="rect" id="node2" href="$_nex_crop_8cpp.html" title="The implementation of class NexCrop. " alt="" coords="5,80,104,107"/>
|
||||
<area shape="rect" id="node3" href="$_nextion_8h.html" title="The header file including all other header files provided by this library. " alt="" coords="129,80,207,107"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
8fff35d2a769fd234db463377c4ac301
|
||||
010097edaecf5398a940aec276640f0e
|
||||
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 5.3 KiB |
@@ -1,6 +1,6 @@
|
||||
<map id="NexCrop.h" name="NexCrop.h">
|
||||
<area shape="rect" id="node2" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="84,155,175,181"/>
|
||||
<area shape="rect" id="node6" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,80,231,107"/>
|
||||
<area shape="rect" id="node4" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="169,304,261,331"/>
|
||||
<area shape="rect" id="node5" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,229,177,256"/>
|
||||
</map>
|
||||
<map id="NexCrop.h" name="NexCrop.h">
|
||||
<area shape="rect" id="node2" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="83,155,176,181"/>
|
||||
<area shape="rect" id="node6" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,80,234,107"/>
|
||||
<area shape="rect" id="node4" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="167,304,262,331"/>
|
||||
<area shape="rect" id="node5" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,229,177,256"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
e10b5ebbda91ba2433f8cd80b565a704
|
||||
474f0f546e1d6f1f869f75096df6a1c1
|
||||
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 20 KiB |
22
doc/Documentation/_nex_crop_8h_source.html
Normal file → Executable file
@@ -83,18 +83,24 @@ $(document).ready(function(){initNavTree('_nex_crop_8h_source.html','');});
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="class_nex_crop.html#a1a3a195d3da05cb832f91a2ef43f27d3">NexCrop</a>(uint8_t pid, uint8_t cid, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_crop.html#a2cbfe125182626965dd530f14ab55885">getPic</a>(uint32_t *number);</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_crop.html#a19f824bea045bab4cc1afc5950259247">Get_background_crop_picc</a>(uint32_t *number);</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db">setPic</a>(uint32_t number);</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> };</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor">#endif </span><span class="comment">/* #ifndef __NEXCROP_H__ */</span><span class="preprocessor"></span></div>
|
||||
<div class="ttc" id="class_nex_crop_html_a2cbfe125182626965dd530f14ab55885"><div class="ttname"><a href="class_nex_crop.html#a2cbfe125182626965dd530f14ab55885">NexCrop::getPic</a></div><div class="ttdeci">bool getPic(uint32_t *number)</div><div class="ttdoc">Get the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00023">NexCrop.cpp:23</a></div></div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_crop.html#aa85a69de5055c29f0a85406d10806bfe">Set_background_crop_picc</a>(uint32_t number);</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_crop.html#a2cbfe125182626965dd530f14ab55885">getPic</a>(uint32_t *number);</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db">setPic</a>(uint32_t number);</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> };</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="preprocessor">#endif </span><span class="comment">/* #ifndef __NEXCROP_H__ */</span><span class="preprocessor"></span></div>
|
||||
<div class="ttc" id="class_nex_crop_html_a19f824bea045bab4cc1afc5950259247"><div class="ttname"><a href="class_nex_crop.html#a19f824bea045bab4cc1afc5950259247">NexCrop::Get_background_crop_picc</a></div><div class="ttdeci">bool Get_background_crop_picc(uint32_t *number)</div><div class="ttdoc">Get the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00023">NexCrop.cpp:23</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_a2cbfe125182626965dd530f14ab55885"><div class="ttname"><a href="class_nex_crop.html#a2cbfe125182626965dd530f14ab55885">NexCrop::getPic</a></div><div class="ttdeci">bool getPic(uint32_t *number)</div><div class="ttdoc">Get the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00046">NexCrop.cpp:46</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_a1a3a195d3da05cb832f91a2ef43f27d3"><div class="ttname"><a href="class_nex_crop.html#a1a3a195d3da05cb832f91a2ef43f27d3">NexCrop::NexCrop</a></div><div class="ttdeci">NexCrop(uint8_t pid, uint8_t cid, const char *name)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00018">NexCrop.cpp:18</a></div></div>
|
||||
<div class="ttc" id="_nex_touch_8h_html"><div class="ttname"><a href="_nex_touch_8h.html">NexTouch.h</a></div><div class="ttdoc">The definition of class NexTouch. </div></div>
|
||||
<div class="ttc" id="_nex_hardware_8h_html"><div class="ttname"><a href="_nex_hardware_8h.html">NexHardware.h</a></div><div class="ttdoc">The definition of base API for using Nextion. </div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_aac34fc2f8ead1e330918089ea8a339db"><div class="ttname"><a href="class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db">NexCrop::setPic</a></div><div class="ttdeci">bool setPic(uint32_t number)</div><div class="ttdoc">Set the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00032">NexCrop.cpp:32</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_aac34fc2f8ead1e330918089ea8a339db"><div class="ttname"><a href="class_nex_crop.html#aac34fc2f8ead1e330918089ea8a339db">NexCrop::setPic</a></div><div class="ttdeci">bool setPic(uint32_t number)</div><div class="ttdoc">Set the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00055">NexCrop.cpp:55</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html"><div class="ttname"><a href="class_nex_crop.html">NexCrop</a></div><div class="ttdoc">NexCrop component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8h_source.html#l00030">NexCrop.h:30</a></div></div>
|
||||
<div class="ttc" id="class_nex_crop_html_aa85a69de5055c29f0a85406d10806bfe"><div class="ttname"><a href="class_nex_crop.html#aa85a69de5055c29f0a85406d10806bfe">NexCrop::Set_background_crop_picc</a></div><div class="ttdeci">bool Set_background_crop_picc(uint32_t number)</div><div class="ttdoc">Set the number of picture. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_crop_8cpp_source.html#l00032">NexCrop.cpp:32</a></div></div>
|
||||
<div class="ttc" id="class_nex_touch_html"><div class="ttname"><a href="class_nex_touch.html">NexTouch</a></div><div class="ttdoc">Father class of the components with touch events. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_touch_8h_source.html#l00053">NexTouch.h:53</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
@@ -102,7 +108,7 @@ $(document).ready(function(){initNavTree('_nex_crop_8h_source.html','');});
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="_nex_crop_8h.html">NexCrop.h</a></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
9
doc/Documentation/_nex_dual_state_button_8cpp.html
Normal file → Executable file
@@ -75,13 +75,6 @@ $(document).ready(function(){initNavTree('_nex_dual_state_button_8cpp.html','');
|
||||
<p>The implementation of class <a class="el" href="class_nex_d_s_button.html" title="NexDSButton component. ">NexDSButton</a>.
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include "<a class="el" href="_nex_dual_state_button_8h_source.html">NexDualStateButton.h</a>"</code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for NexDualStateButton.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><img src="_nex_dual_state_button_8cpp__incl.png" border="0" usemap="#_nex_dual_state_button_8cpp" alt=""/></div>
|
||||
<map name="_nex_dual_state_button_8cpp" id="_nex_dual_state_button_8cpp">
|
||||
</map>
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="_nex_dual_state_button_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
@@ -98,7 +91,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="_nex_dual_state_button_8cpp.html">NexDualStateButton.cpp</a></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:30 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
digraph "NexDualStateButton.cpp"
|
||||
{
|
||||
edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"];
|
||||
node [fontname="Helvetica",fontsize="10",shape=record];
|
||||
Node1 [label="NexDualStateButton.cpp",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"];
|
||||
Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node2 [label="NexDualStateButton.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_dual_state_button_8h.html",tooltip="The definition of class NexDSButton. "];
|
||||
Node2 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node3 [label="NexTouch.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_touch_8h.html",tooltip="The definition of class NexTouch. "];
|
||||
Node3 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node4 [label="Arduino.h",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled"];
|
||||
Node3 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node5 [label="NexConfig.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_config_8h.html",tooltip="Options for user can be found here. "];
|
||||
Node3 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node6 [label="NexObject.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_object_8h.html",tooltip="The definition of class NexObject. "];
|
||||
Node6 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node6 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node2 -> Node7 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node7 [label="NexHardware.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_hardware_8h.html",tooltip="The definition of base API for using Nextion. "];
|
||||
Node7 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node7 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node7 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
f39edd0b097ffd874fc2d620220275b4
|
||||
cbdfc08ceb9e7457c448b63d9f7bc40f
|
||||
327
doc/Documentation/_nex_dual_state_button_8cpp_source.html
Normal file → Executable file
@@ -102,19 +102,342 @@ $(document).ready(function(){initNavTree('_nex_dual_state_button_8cpp_source.htm
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> }</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#aff0f17061441139bf8797c78e4911eae"> 46</a></span> uint16_t <a class="code" href="class_nex_d_s_button.html#aff0f17061441139bf8797c78e4911eae">NexDSButton::getText</a>(<span class="keywordtype">char</span> *buffer, uint16_t len)</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> {</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  cmd += <span class="stringliteral">".txt"</span>;</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">return</span> recvRetString(buffer,len);</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> }</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#aa7a83123530f2dbb3e6aa909352da5b2"> 56</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_d_s_button.html#aa7a83123530f2dbb3e6aa909352da5b2">NexDSButton::setText</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *buffer)</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> {</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  cmd += <span class="stringliteral">".txt=\""</span>;</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  cmd += buffer;</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  cmd += <span class="stringliteral">"\""</span>;</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">return</span> recvRetCommandFinished(); </div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> }</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a57119c8695b1dc562319b19864b68203"> 67</a></span> uint32_t <a class="code" href="class_nex_d_s_button.html#a57119c8695b1dc562319b19864b68203">NexDSButton::Get_state0_color_bco0</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> {</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  cmd += <span class="stringliteral">".bco0"</span>;</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> }</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a7276699c1ea7fccf4e52ad05443b8191"> 77</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_d_s_button.html#a7276699c1ea7fccf4e52ad05443b8191">NexDSButton::Set_state0_color_bco0</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> {</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  cmd += <span class="stringliteral">".bco0="</span>;</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  cmd=<span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> }</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#aa4ce6ec7a670af2df6bd5858ea20e430"> 95</a></span> uint32_t <a class="code" href="class_nex_d_s_button.html#aa4ce6ec7a670af2df6bd5858ea20e430">NexDSButton::Get_state1_color_bco1</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> {</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  cmd += <span class="stringliteral">".bco1"</span>;</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> }</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a42f31d9e9612d7f8403dcf46ef5e8f1a"> 105</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_d_s_button.html#a42f31d9e9612d7f8403dcf46ef5e8f1a">NexDSButton::Set_state1_color_bco1</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  </div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  cmd += <span class="stringliteral">".bco1="</span>;</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  cmd=<span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> }</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a01a5a7238547cd761b69c49f1619f955"> 123</a></span> uint32_t <a class="code" href="class_nex_d_s_button.html#a01a5a7238547cd761b69c49f1619f955">NexDSButton::Get_font_color_pco</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> {</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  cmd += <span class="stringliteral">".pco"</span>;</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> }</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a25e696769de8d33a3e49db15e0b55aaa"> 133</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_d_s_button.html#a25e696769de8d33a3e49db15e0b55aaa">NexDSButton::Set_font_color_pco</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> {</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  cmd += <span class="stringliteral">".pco="</span>;</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> }</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#ae65ba8eab275c097fa1f9e7f8873dc5d"> 151</a></span> uint32_t <a class="code" href="class_nex_d_s_button.html#ae65ba8eab275c097fa1f9e7f8873dc5d">NexDSButton::Get_place_xcen</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> {</div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  cmd += <span class="stringliteral">".xcen"</span>;</div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> }</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a0bc679dfaca7aa0439f67bb91814f97a"> 161</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_d_s_button.html#a0bc679dfaca7aa0439f67bb91814f97a">NexDSButton::Set_place_xcen</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> {</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  cmd += <span class="stringliteral">".xcen="</span>;</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  </div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> }</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a2b5c825ceaeeaa588b4830da4f154b23"> 179</a></span> uint32_t <a class="code" href="class_nex_d_s_button.html#a2b5c825ceaeeaa588b4830da4f154b23">NexDSButton::Get_place_ycen</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> {</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  cmd += <span class="stringliteral">".ycen"</span>;</div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> }</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a356b829500f25b3d5050084474da1165"> 189</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_d_s_button.html#a356b829500f25b3d5050084474da1165">NexDSButton::Set_place_ycen</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> {</div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  </div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  cmd += <span class="stringliteral">".ycen="</span>;</div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> }</div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a3010cd4aa559a30088ad9bf987003adc"> 207</a></span> uint32_t <a class="code" href="class_nex_d_s_button.html#a3010cd4aa559a30088ad9bf987003adc">NexDSButton::getFont</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> {</div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  cmd += <span class="stringliteral">".font"</span>;</div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> }</div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a2ac5df458d5da7ffdc32bc16160472f8"> 217</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_d_s_button.html#a2ac5df458d5da7ffdc32bc16160472f8">NexDSButton::setFont</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> {</div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  </div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  cmd += <span class="stringliteral">".font="</span>;</div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> }</div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> </div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#aa48f68183cdbb94e376f1ca0367a2f2c"> 235</a></span> uint32_t <a class="code" href="class_nex_d_s_button.html#aa48f68183cdbb94e376f1ca0367a2f2c">NexDSButton::Get_state0_crop_picc0</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> {</div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  cmd += <span class="stringliteral">".picc0"</span>;</div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> }</div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> </div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a8a0427fa8a95021452da9af2f0834eee"> 245</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_d_s_button.html#a8a0427fa8a95021452da9af2f0834eee">NexDSButton::Set_state0_crop_picc0</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> {</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  </div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  cmd += <span class="stringliteral">".picc0="</span>;</div>
|
||||
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  </div>
|
||||
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> }</div>
|
||||
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span> </div>
|
||||
<div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a9b24e1ec4677bc8ec921ede2e36c4db6"> 263</a></span> uint32_t <a class="code" href="class_nex_d_s_button.html#a9b24e1ec4677bc8ec921ede2e36c4db6">NexDSButton::Get_state1_crop_picc1</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> {</div>
|
||||
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  cmd += <span class="stringliteral">".picc1"</span>;</div>
|
||||
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> }</div>
|
||||
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div>
|
||||
<div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a1cc8c53007bf420a5e02e0c885ab7460"> 273</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_d_s_button.html#a1cc8c53007bf420a5e02e0c885ab7460">NexDSButton::Set_state1_crop_picc1</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> {</div>
|
||||
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  </div>
|
||||
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  cmd += <span class="stringliteral">".picc1="</span>;</div>
|
||||
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  </div>
|
||||
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> }</div>
|
||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> </div>
|
||||
<div class="line"><a name="l00291"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a8382bc9350b8e589d1ae5da684a0e907"> 291</a></span> uint32_t <a class="code" href="class_nex_d_s_button.html#a8382bc9350b8e589d1ae5da684a0e907">NexDSButton::Get_state0_image_pic0</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> {</div>
|
||||
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  cmd += <span class="stringliteral">".pic0"</span>;</div>
|
||||
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> }</div>
|
||||
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> </div>
|
||||
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a24029fce19d9a0f75a6044e7a44bd925"> 301</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_d_s_button.html#a24029fce19d9a0f75a6044e7a44bd925">NexDSButton::Set_state0_image_pic0</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> {</div>
|
||||
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  </div>
|
||||
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  cmd += <span class="stringliteral">".pic0="</span>;</div>
|
||||
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  </div>
|
||||
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> }</div>
|
||||
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span> </div>
|
||||
<div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#ab52951034a07ac78a9bde09c0bae4514"> 319</a></span> uint32_t <a class="code" href="class_nex_d_s_button.html#ab52951034a07ac78a9bde09c0bae4514">NexDSButton::Get_state1_image_pic1</a>(uint32_t *number)</div>
|
||||
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span> {</div>
|
||||
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  cmd += <span class="stringliteral">"get "</span>;</div>
|
||||
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  cmd += <span class="stringliteral">".pic1"</span>;</div>
|
||||
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <span class="keywordflow">return</span> recvRetNumber(number);</div>
|
||||
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> }</div>
|
||||
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> </div>
|
||||
<div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="class_nex_d_s_button.html#a8d8aafa1a4970faed893db0b666e38b0"> 329</a></span> <span class="keywordtype">bool</span> <a class="code" href="class_nex_d_s_button.html#a8d8aafa1a4970faed893db0b666e38b0">NexDSButton::Set_state1_image_pic1</a>(uint32_t number)</div>
|
||||
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> {</div>
|
||||
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keywordtype">char</span> buf[10] = {0};</div>
|
||||
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  String cmd;</div>
|
||||
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  </div>
|
||||
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  utoa(number, buf, 10);</div>
|
||||
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  cmd += <span class="stringliteral">".pic1="</span>;</div>
|
||||
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  cmd += buf;</div>
|
||||
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  </div>
|
||||
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  cmd = <span class="stringliteral">""</span>;</div>
|
||||
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  cmd += <span class="stringliteral">"ref "</span>;</div>
|
||||
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  cmd += getObjName();</div>
|
||||
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  sendCommand(cmd.c_str());</div>
|
||||
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keywordflow">return</span> recvRetCommandFinished();</div>
|
||||
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> }</div>
|
||||
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> </div>
|
||||
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> </div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a42f31d9e9612d7f8403dcf46ef5e8f1a"><div class="ttname"><a href="class_nex_d_s_button.html#a42f31d9e9612d7f8403dcf46ef5e8f1a">NexDSButton::Set_state1_color_bco1</a></div><div class="ttdeci">bool Set_state1_color_bco1(uint32_t number)</div><div class="ttdoc">Set bco1 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00105">NexDualStateButton.cpp:105</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_aa4ce6ec7a670af2df6bd5858ea20e430"><div class="ttname"><a href="class_nex_d_s_button.html#aa4ce6ec7a670af2df6bd5858ea20e430">NexDSButton::Get_state1_color_bco1</a></div><div class="ttdeci">uint32_t Get_state1_color_bco1(uint32_t *number)</div><div class="ttdoc">Get bco1 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00095">NexDualStateButton.cpp:95</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a356b829500f25b3d5050084474da1165"><div class="ttname"><a href="class_nex_d_s_button.html#a356b829500f25b3d5050084474da1165">NexDSButton::Set_place_ycen</a></div><div class="ttdeci">bool Set_place_ycen(uint32_t number)</div><div class="ttdoc">Set ycen attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00189">NexDualStateButton.cpp:189</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a8d8aafa1a4970faed893db0b666e38b0"><div class="ttname"><a href="class_nex_d_s_button.html#a8d8aafa1a4970faed893db0b666e38b0">NexDSButton::Set_state1_image_pic1</a></div><div class="ttdeci">bool Set_state1_image_pic1(uint32_t number)</div><div class="ttdoc">Set pic1 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00329">NexDualStateButton.cpp:329</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a3010cd4aa559a30088ad9bf987003adc"><div class="ttname"><a href="class_nex_d_s_button.html#a3010cd4aa559a30088ad9bf987003adc">NexDSButton::getFont</a></div><div class="ttdeci">uint32_t getFont(uint32_t *number)</div><div class="ttdoc">Get font attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00207">NexDualStateButton.cpp:207</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_ab52951034a07ac78a9bde09c0bae4514"><div class="ttname"><a href="class_nex_d_s_button.html#ab52951034a07ac78a9bde09c0bae4514">NexDSButton::Get_state1_image_pic1</a></div><div class="ttdeci">uint32_t Get_state1_image_pic1(uint32_t *number)</div><div class="ttdoc">Get pic1 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00319">NexDualStateButton.cpp:319</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a2ac5df458d5da7ffdc32bc16160472f8"><div class="ttname"><a href="class_nex_d_s_button.html#a2ac5df458d5da7ffdc32bc16160472f8">NexDSButton::setFont</a></div><div class="ttdeci">bool setFont(uint32_t number)</div><div class="ttdoc">Set font attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00217">NexDualStateButton.cpp:217</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a0bc679dfaca7aa0439f67bb91814f97a"><div class="ttname"><a href="class_nex_d_s_button.html#a0bc679dfaca7aa0439f67bb91814f97a">NexDSButton::Set_place_xcen</a></div><div class="ttdeci">bool Set_place_xcen(uint32_t number)</div><div class="ttdoc">Set xcen attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00161">NexDualStateButton.cpp:161</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a8382bc9350b8e589d1ae5da684a0e907"><div class="ttname"><a href="class_nex_d_s_button.html#a8382bc9350b8e589d1ae5da684a0e907">NexDSButton::Get_state0_image_pic0</a></div><div class="ttdeci">uint32_t Get_state0_image_pic0(uint32_t *number)</div><div class="ttdoc">Get pic0 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00291">NexDualStateButton.cpp:291</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a8a0427fa8a95021452da9af2f0834eee"><div class="ttname"><a href="class_nex_d_s_button.html#a8a0427fa8a95021452da9af2f0834eee">NexDSButton::Set_state0_crop_picc0</a></div><div class="ttdeci">bool Set_state0_crop_picc0(uint32_t number)</div><div class="ttdoc">Set picc0 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00245">NexDualStateButton.cpp:245</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a57119c8695b1dc562319b19864b68203"><div class="ttname"><a href="class_nex_d_s_button.html#a57119c8695b1dc562319b19864b68203">NexDSButton::Get_state0_color_bco0</a></div><div class="ttdeci">uint32_t Get_state0_color_bco0(uint32_t *number)</div><div class="ttdoc">Get bco0 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00067">NexDualStateButton.cpp:67</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a25e696769de8d33a3e49db15e0b55aaa"><div class="ttname"><a href="class_nex_d_s_button.html#a25e696769de8d33a3e49db15e0b55aaa">NexDSButton::Set_font_color_pco</a></div><div class="ttdeci">bool Set_font_color_pco(uint32_t number)</div><div class="ttdoc">Set pco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00133">NexDualStateButton.cpp:133</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a01a5a7238547cd761b69c49f1619f955"><div class="ttname"><a href="class_nex_d_s_button.html#a01a5a7238547cd761b69c49f1619f955">NexDSButton::Get_font_color_pco</a></div><div class="ttdeci">uint32_t Get_font_color_pco(uint32_t *number)</div><div class="ttdoc">Get pco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00123">NexDualStateButton.cpp:123</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a63e08f9a79f326c47aa66e1d0f9648c8"><div class="ttname"><a href="class_nex_d_s_button.html#a63e08f9a79f326c47aa66e1d0f9648c8">NexDSButton::getValue</a></div><div class="ttdeci">bool getValue(uint32_t *number)</div><div class="ttdoc">Get number attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00023">NexDualStateButton.cpp:23</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a2b5c825ceaeeaa588b4830da4f154b23"><div class="ttname"><a href="class_nex_d_s_button.html#a2b5c825ceaeeaa588b4830da4f154b23">NexDSButton::Get_place_ycen</a></div><div class="ttdeci">uint32_t Get_place_ycen(uint32_t *number)</div><div class="ttdoc">Get ycen attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00179">NexDualStateButton.cpp:179</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a24029fce19d9a0f75a6044e7a44bd925"><div class="ttname"><a href="class_nex_d_s_button.html#a24029fce19d9a0f75a6044e7a44bd925">NexDSButton::Set_state0_image_pic0</a></div><div class="ttdeci">bool Set_state0_image_pic0(uint32_t number)</div><div class="ttdoc">Set pic0 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00301">NexDualStateButton.cpp:301</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a226edd2467f2fdf54848f5235b808e2b"><div class="ttname"><a href="class_nex_d_s_button.html#a226edd2467f2fdf54848f5235b808e2b">NexDSButton::NexDSButton</a></div><div class="ttdeci">NexDSButton(uint8_t pid, uint8_t cid, const char *name)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00018">NexDualStateButton.cpp:18</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_aa48f68183cdbb94e376f1ca0367a2f2c"><div class="ttname"><a href="class_nex_d_s_button.html#aa48f68183cdbb94e376f1ca0367a2f2c">NexDSButton::Get_state0_crop_picc0</a></div><div class="ttdeci">uint32_t Get_state0_crop_picc0(uint32_t *number)</div><div class="ttdoc">Get picc0 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00235">NexDualStateButton.cpp:235</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a2f696207609e0f01aadebb8b3826b0fa"><div class="ttname"><a href="class_nex_d_s_button.html#a2f696207609e0f01aadebb8b3826b0fa">NexDSButton::setValue</a></div><div class="ttdeci">bool setValue(uint32_t number)</div><div class="ttdoc">Set number attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00032">NexDualStateButton.cpp:32</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_aff0f17061441139bf8797c78e4911eae"><div class="ttname"><a href="class_nex_d_s_button.html#aff0f17061441139bf8797c78e4911eae">NexDSButton::getText</a></div><div class="ttdeci">uint16_t getText(char *buffer, uint16_t len)</div><div class="ttdoc">Get text attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00046">NexDualStateButton.cpp:46</a></div></div>
|
||||
<div class="ttc" id="_nex_dual_state_button_8h_html"><div class="ttname"><a href="_nex_dual_state_button_8h.html">NexDualStateButton.h</a></div><div class="ttdoc">The definition of class NexDSButton. </div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a1cc8c53007bf420a5e02e0c885ab7460"><div class="ttname"><a href="class_nex_d_s_button.html#a1cc8c53007bf420a5e02e0c885ab7460">NexDSButton::Set_state1_crop_picc1</a></div><div class="ttdeci">bool Set_state1_crop_picc1(uint32_t number)</div><div class="ttdoc">Set picc1 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00273">NexDualStateButton.cpp:273</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_aa7a83123530f2dbb3e6aa909352da5b2"><div class="ttname"><a href="class_nex_d_s_button.html#aa7a83123530f2dbb3e6aa909352da5b2">NexDSButton::setText</a></div><div class="ttdeci">bool setText(const char *buffer)</div><div class="ttdoc">Set text attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00056">NexDualStateButton.cpp:56</a></div></div>
|
||||
<div class="ttc" id="class_nex_touch_html"><div class="ttname"><a href="class_nex_touch.html">NexTouch</a></div><div class="ttdoc">Father class of the components with touch events. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_touch_8h_source.html#l00053">NexTouch.h:53</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a9b24e1ec4677bc8ec921ede2e36c4db6"><div class="ttname"><a href="class_nex_d_s_button.html#a9b24e1ec4677bc8ec921ede2e36c4db6">NexDSButton::Get_state1_crop_picc1</a></div><div class="ttdeci">uint32_t Get_state1_crop_picc1(uint32_t *number)</div><div class="ttdoc">Get picc1 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00263">NexDualStateButton.cpp:263</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_ae65ba8eab275c097fa1f9e7f8873dc5d"><div class="ttname"><a href="class_nex_d_s_button.html#ae65ba8eab275c097fa1f9e7f8873dc5d">NexDSButton::Get_place_xcen</a></div><div class="ttdeci">uint32_t Get_place_xcen(uint32_t *number)</div><div class="ttdoc">Get xcen attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00151">NexDualStateButton.cpp:151</a></div></div>
|
||||
<div class="ttc" id="class_nex_d_s_button_html_a7276699c1ea7fccf4e52ad05443b8191"><div class="ttname"><a href="class_nex_d_s_button.html#a7276699c1ea7fccf4e52ad05443b8191">NexDSButton::Set_state0_color_bco0</a></div><div class="ttdeci">bool Set_state0_color_bco0(uint32_t number)</div><div class="ttdoc">Set bco0 attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_dual_state_button_8cpp_source.html#l00077">NexDualStateButton.cpp:77</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="_nex_dual_state_button_8cpp.html">NexDualStateButton.cpp</a></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:29 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
16
doc/Documentation/_nex_dual_state_button_8h.html
Normal file → Executable file
@@ -78,20 +78,6 @@ $(document).ready(function(){initNavTree('_nex_dual_state_button_8h.html','');})
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include "<a class="el" href="_nex_touch_8h_source.html">NexTouch.h</a>"</code><br />
|
||||
<code>#include "<a class="el" href="_nex_hardware_8h_source.html">NexHardware.h</a>"</code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for NexDualStateButton.h:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><img src="_nex_dual_state_button_8h__incl.png" border="0" usemap="#_nex_dual_state_button_8h" alt=""/></div>
|
||||
<map name="_nex_dual_state_button_8h" id="_nex_dual_state_button_8h">
|
||||
</map>
|
||||
</div>
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
This graph shows which files directly or indirectly include this file:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><img src="_nex_dual_state_button_8h__dep__incl.png" border="0" usemap="#_nex_dual_state_button_8hdep" alt=""/></div>
|
||||
<map name="_nex_dual_state_button_8hdep" id="_nex_dual_state_button_8hdep">
|
||||
</map>
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="_nex_dual_state_button_8h_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
@@ -115,7 +101,7 @@ This program is free software; you can redistribute it and/or modify it under th
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="_nex_dual_state_button_8h.html">NexDualStateButton.h</a></li>
|
||||
<li class="footer">Generated on Wed Nov 11 2015 15:49:30 for Documentation by
|
||||
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
|
||||
</ul>
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
digraph "NexDualStateButton.h"
|
||||
{
|
||||
edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"];
|
||||
node [fontname="Helvetica",fontsize="10",shape=record];
|
||||
Node1 [label="NexDualStateButton.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"];
|
||||
Node1 -> Node2 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node2 [label="Nextion.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nextion_8h.html",tooltip="The header file including all other header files provided by this library. "];
|
||||
Node2 -> Node3 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node3 [label="examples/CompButton\l/CompButton.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_button_8ino_source.html"];
|
||||
Node2 -> Node4 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node4 [label="examples/CompCrop/CompCrop.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_crop_8ino_source.html"];
|
||||
Node2 -> Node5 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node5 [label="examples/CompDualStateButton\l/CompDualStateButton.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_dual_state_button_8ino_source.html"];
|
||||
Node2 -> Node6 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node6 [label="examples/CompGauge\l/CompGauge.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_gauge_8ino_source.html"];
|
||||
Node2 -> Node7 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node7 [label="examples/CompHotspot\l/CompHotspot.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_hotspot_8ino_source.html"];
|
||||
Node2 -> Node8 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node8 [label="examples/CompNumber\l/CompNumber.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_number_8ino_source.html"];
|
||||
Node2 -> Node9 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node9 [label="examples/CompPage/CompPage.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_page_8ino_source.html"];
|
||||
Node2 -> Node10 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node10 [label="examples/CompPicture\l/CompPicture.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_picture_8ino_source.html"];
|
||||
Node2 -> Node11 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node11 [label="examples/CompProgressBar\l/CompProgressBar.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_progress_bar_8ino_source.html"];
|
||||
Node2 -> Node12 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node12 [label="examples/CompSlider\l/CompSlider.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_slider_8ino_source.html"];
|
||||
Node2 -> Node13 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node13 [label="examples/CompText/CompText.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_text_8ino_source.html"];
|
||||
Node2 -> Node14 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node14 [label="examples/CompTimer\l/CompTimer.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_timer_8ino_source.html"];
|
||||
Node2 -> Node15 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node15 [label="examples/CompWaveform\l/CompWaveform.ino",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_comp_waveform_8ino_source.html"];
|
||||
Node1 -> Node16 [dir="back",color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node16 [label="NexDualStateButton.cpp",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_dual_state_button_8cpp.html",tooltip="The implementation of class NexDSButton. "];
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
554555a32819ce4dc228da1fb4b85f85
|
||||
a61354633ab957f7a9c0f2755df92c2a
|
||||
@@ -1,21 +0,0 @@
|
||||
digraph "NexDualStateButton.h"
|
||||
{
|
||||
edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"];
|
||||
node [fontname="Helvetica",fontsize="10",shape=record];
|
||||
Node1 [label="NexDualStateButton.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"];
|
||||
Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node2 [label="NexTouch.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_touch_8h.html",tooltip="The definition of class NexTouch. "];
|
||||
Node2 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node3 [label="Arduino.h",height=0.2,width=0.4,color="grey75", fillcolor="white", style="filled"];
|
||||
Node2 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node4 [label="NexConfig.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_config_8h.html",tooltip="Options for user can be found here. "];
|
||||
Node2 -> Node5 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node5 [label="NexObject.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_object_8h.html",tooltip="The definition of class NexObject. "];
|
||||
Node5 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node5 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node6 [label="NexHardware.h",height=0.2,width=0.4,color="black", fillcolor="white", style="filled",URL="$_nex_hardware_8h.html",tooltip="The definition of base API for using Nextion. "];
|
||||
Node6 -> Node3 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node6 -> Node4 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
Node6 -> Node2 [color="midnightblue",fontsize="10",style="solid",fontname="Helvetica"];
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
504b3964e4374442f7e45a4f4ef6ee1f
|
||||
aa2e138fae81b8608b8eb71708a658a5
|
||||