From d6c42dbf6203dff21d2c1d70f84c9825b92806ea Mon Sep 17 00:00:00 2001 From: huangxiaoming Date: Mon, 26 Sep 2016 17:58:27 +0800 Subject: [PATCH 1/7] add api for button --- NexButton.cpp | 308 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 308 insertions(+) mode change 100644 => 100755 NexButton.cpp diff --git a/NexButton.cpp b/NexButton.cpp old mode 100644 new mode 100755 index c8a8fc3..291471c --- a/NexButton.cpp +++ b/NexButton.cpp @@ -41,3 +41,311 @@ bool NexButton::setText(const char *buffer) return recvRetCommandFinished(); } + +uint32_t NexButton::getBco(uint32_t *number) +{ + String cmd; + cmd += "get "; + cmd += getObjName(); + cmd += ".bco"; + sendCommand(cmd.c_str()); + return recvRetNumber(number); +} + +bool NexButton::setBco(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::getBco2(uint32_t *number) +{ + String cmd; + cmd += "get "; + cmd += getObjName(); + cmd += ".bco2"; + sendCommand(cmd.c_str()); + return recvRetNumber(number); +} + +bool NexButton::setBco2(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::getPco(uint32_t *number) +{ + String cmd; + cmd += "get "; + cmd += getObjName(); + cmd += ".pco"; + sendCommand(cmd.c_str()); + return recvRetNumber(number); +} + +bool NexButton::setPco(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::getPco2(uint32_t *number) +{ + String cmd; + cmd += "get "; + cmd += getObjName(); + cmd += ".pco2"; + sendCommand(cmd.c_str()); + return recvRetNumber(number); +} + +bool NexButton::setPco2(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::getXcen(uint32_t *number) +{ + String cmd; + cmd += "get "; + cmd += getObjName(); + cmd += ".xcen"; + sendCommand(cmd.c_str()); + return recvRetNumber(number); +} + +bool NexButton::setXcen(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::getYcen(uint32_t *number) +{ + String cmd; + cmd += "get "; + cmd += getObjName(); + cmd += ".ycen"; + sendCommand(cmd.c_str()); + return recvRetNumber(number); +} + +bool NexButton::setYcen(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::getPicc(uint32_t *number) +{ + String cmd; + cmd += "get "; + cmd += getObjName(); + cmd += ".picc"; + sendCommand(cmd.c_str()); + return recvRetNumber(number); +} + +bool NexButton::setPicc(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::getPicc2(uint32_t *number) +{ + String cmd; + cmd += "get "; + cmd += getObjName(); + cmd += ".picc2"; + sendCommand(cmd.c_str()); + return recvRetNumber(number); +} + +bool NexButton::setPicc2(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::getPic(uint32_t *number) +{ + String cmd; + cmd += "get "; + cmd += getObjName(); + cmd += ".pic"; + sendCommand(cmd.c_str()); + return recvRetNumber(number); +} + +bool NexButton::setPic(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::getPic2(uint32_t *number) +{ + String cmd; + cmd += "get "; + cmd += getObjName(); + cmd += ".pic2"; + sendCommand(cmd.c_str()); + return recvRetNumber(number); +} + +bool NexButton::setPic2(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(); +} From f104dd861bc2d910fcc6501a2f718ce06397cdc0 Mon Sep 17 00:00:00 2001 From: huangxiaoming Date: Tue, 27 Sep 2016 16:04:39 +0800 Subject: [PATCH 2/7] Add functions for new items based on the IDE. --- NexButton.cpp | 40 ++--- NexButton.h | 199 ++++++++++++++++++++++- NexCheckbox.cpp | 99 ++++++++++++ NexCheckbox.h | 104 ++++++++++++ NexCrop.cpp | 4 +- NexCrop.h | 4 +- NexDualStateButton.cpp | 301 +++++++++++++++++++++++++++++++++++ NexDualStateButton.h | 199 +++++++++++++++++++++++ NexGauge.cpp | 113 +++++++++++++ NexGauge.h | 72 +++++++++ NexNumber.cpp | 218 +++++++++++++++++++++++++ NexNumber.h | 144 +++++++++++++++++ NexPicture.cpp | 4 +- NexPicture.h | 4 +- NexProgressBar.cpp | 55 +++++++ NexProgressBar.h | 36 +++++ NexRadio.cpp | 99 ++++++++++++ NexRadio.h | 104 ++++++++++++ NexScrolltext.cpp | 351 +++++++++++++++++++++++++++++++++++++++++ NexScrolltext.h | 244 ++++++++++++++++++++++++++++ NexSlider.cpp | 167 ++++++++++++++++++++ NexSlider.h | 108 +++++++++++++ NexText.cpp | 192 ++++++++++++++++++++++ NexText.h | 126 +++++++++++++++ NexTimer.cpp | 4 +- NexTimer.h | 4 +- NexVariable.cpp | 64 ++++++++ NexVariable.h | 85 ++++++++++ NexWaveform.cpp | 140 ++++++++++++++++ NexWaveform.h | 90 +++++++++++ Nextion.h | 4 + 31 files changed, 3345 insertions(+), 33 deletions(-) mode change 100644 => 100755 NexButton.h create mode 100755 NexCheckbox.cpp create mode 100755 NexCheckbox.h mode change 100644 => 100755 NexCrop.cpp mode change 100644 => 100755 NexCrop.h mode change 100644 => 100755 NexDualStateButton.cpp mode change 100644 => 100755 NexDualStateButton.h mode change 100644 => 100755 NexGauge.cpp mode change 100644 => 100755 NexGauge.h mode change 100644 => 100755 NexNumber.cpp mode change 100644 => 100755 NexNumber.h mode change 100644 => 100755 NexPicture.cpp mode change 100644 => 100755 NexPicture.h mode change 100644 => 100755 NexProgressBar.cpp mode change 100644 => 100755 NexProgressBar.h create mode 100755 NexRadio.cpp create mode 100755 NexRadio.h create mode 100755 NexScrolltext.cpp create mode 100755 NexScrolltext.h mode change 100644 => 100755 NexSlider.cpp mode change 100644 => 100755 NexSlider.h mode change 100644 => 100755 NexText.cpp mode change 100644 => 100755 NexText.h mode change 100644 => 100755 NexTimer.cpp mode change 100644 => 100755 NexTimer.h create mode 100755 NexVariable.cpp create mode 100755 NexVariable.h mode change 100644 => 100755 NexWaveform.cpp mode change 100644 => 100755 NexWaveform.h mode change 100644 => 100755 Nextion.h diff --git a/NexButton.cpp b/NexButton.cpp index 291471c..3fe7988 100755 --- a/NexButton.cpp +++ b/NexButton.cpp @@ -42,7 +42,7 @@ bool NexButton::setText(const char *buffer) } -uint32_t NexButton::getBco(uint32_t *number) +uint32_t NexButton::Get_background_color_bco(uint32_t *number) { String cmd; cmd += "get "; @@ -52,7 +52,7 @@ uint32_t NexButton::getBco(uint32_t *number) return recvRetNumber(number); } -bool NexButton::setBco(uint32_t number) +bool NexButton::Set_background_color_bco(uint32_t number) { char buf[10] = {0}; String cmd; @@ -70,7 +70,7 @@ bool NexButton::setBco(uint32_t number) return recvRetCommandFinished(); } -uint32_t NexButton::getBco2(uint32_t *number) +uint32_t NexButton::Get_press_background_color_bco2(uint32_t *number) { String cmd; cmd += "get "; @@ -80,7 +80,7 @@ uint32_t NexButton::getBco2(uint32_t *number) return recvRetNumber(number); } -bool NexButton::setBco2(uint32_t number) +bool NexButton::Set_press_background_color_bco2(uint32_t number) { char buf[10] = {0}; String cmd; @@ -98,7 +98,7 @@ bool NexButton::setBco2(uint32_t number) return recvRetCommandFinished(); } -uint32_t NexButton::getPco(uint32_t *number) +uint32_t NexButton::Get_font_color_pco(uint32_t *number) { String cmd; cmd += "get "; @@ -108,7 +108,7 @@ uint32_t NexButton::getPco(uint32_t *number) return recvRetNumber(number); } -bool NexButton::setPco(uint32_t number) +bool NexButton::Set_font_color_pco(uint32_t number) { char buf[10] = {0}; String cmd; @@ -126,7 +126,7 @@ bool NexButton::setPco(uint32_t number) return recvRetCommandFinished(); } -uint32_t NexButton::getPco2(uint32_t *number) +uint32_t NexButton::Get_press_font_color_pco2(uint32_t *number) { String cmd; cmd += "get "; @@ -136,7 +136,7 @@ uint32_t NexButton::getPco2(uint32_t *number) return recvRetNumber(number); } -bool NexButton::setPco2(uint32_t number) +bool NexButton::Set_press_font_color_pco2(uint32_t number) { char buf[10] = {0}; String cmd; @@ -154,7 +154,7 @@ bool NexButton::setPco2(uint32_t number) return recvRetCommandFinished(); } -uint32_t NexButton::getXcen(uint32_t *number) +uint32_t NexButton::Get_place_xcen(uint32_t *number) { String cmd; cmd += "get "; @@ -164,7 +164,7 @@ uint32_t NexButton::getXcen(uint32_t *number) return recvRetNumber(number); } -bool NexButton::setXcen(uint32_t number) +bool NexButton::Set_place_xcen(uint32_t number) { char buf[10] = {0}; String cmd; @@ -182,7 +182,7 @@ bool NexButton::setXcen(uint32_t number) return recvRetCommandFinished(); } -uint32_t NexButton::getYcen(uint32_t *number) +uint32_t NexButton::Get_place_ycen(uint32_t *number) { String cmd; cmd += "get "; @@ -192,7 +192,7 @@ uint32_t NexButton::getYcen(uint32_t *number) return recvRetNumber(number); } -bool NexButton::setYcen(uint32_t number) +bool NexButton::Set_place_ycen(uint32_t number) { char buf[10] = {0}; String cmd; @@ -238,7 +238,7 @@ bool NexButton::setFont(uint32_t number) return recvRetCommandFinished(); } -uint32_t NexButton::getPicc(uint32_t *number) +uint32_t NexButton::Get_background_cropi_picc(uint32_t *number) { String cmd; cmd += "get "; @@ -248,7 +248,7 @@ uint32_t NexButton::getPicc(uint32_t *number) return recvRetNumber(number); } -bool NexButton::setPicc(uint32_t number) +bool NexButton::Set_background_crop_picc(uint32_t number) { char buf[10] = {0}; String cmd; @@ -266,7 +266,7 @@ bool NexButton::setPicc(uint32_t number) return recvRetCommandFinished(); } -uint32_t NexButton::getPicc2(uint32_t *number) +uint32_t NexButton::Get_press_background_crop_picc2(uint32_t *number) { String cmd; cmd += "get "; @@ -276,7 +276,7 @@ uint32_t NexButton::getPicc2(uint32_t *number) return recvRetNumber(number); } -bool NexButton::setPicc2(uint32_t number) +bool NexButton::Set_press_background_crop_picc2(uint32_t number) { char buf[10] = {0}; String cmd; @@ -294,7 +294,7 @@ bool NexButton::setPicc2(uint32_t number) return recvRetCommandFinished(); } -uint32_t NexButton::getPic(uint32_t *number) +uint32_t NexButton::Get_background_image_pic(uint32_t *number) { String cmd; cmd += "get "; @@ -304,7 +304,7 @@ uint32_t NexButton::getPic(uint32_t *number) return recvRetNumber(number); } -bool NexButton::setPic(uint32_t number) +bool NexButton::Set_background_image_pic(uint32_t number) { char buf[10] = {0}; String cmd; @@ -322,7 +322,7 @@ bool NexButton::setPic(uint32_t number) return recvRetCommandFinished(); } -uint32_t NexButton::getPic2(uint32_t *number) +uint32_t NexButton::Get_press_background_image_pic2(uint32_t *number) { String cmd; cmd += "get "; @@ -332,7 +332,7 @@ uint32_t NexButton::getPic2(uint32_t *number) return recvRetNumber(number); } -bool NexButton::setPic2(uint32_t number) +bool NexButton::Set_press_background_image_pic2(uint32_t number) { char buf[10] = {0}; String cmd; diff --git a/NexButton.h b/NexButton.h old mode 100644 new mode 100755 index 8dae2ac..838f246 --- a/NexButton.h +++ b/NexButton.h @@ -56,7 +56,204 @@ 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); }; /** * @} diff --git a/NexCheckbox.cpp b/NexCheckbox.cpp new file mode 100755 index 00000000..3e358d7 --- /dev/null +++ b/NexCheckbox.cpp @@ -0,0 +1,99 @@ +/** + * @file NexCheckbox.cpp + * + * The implementation of class NexCheckbox. + * + * @author huang xiaoming (email:) + * @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(); +} \ No newline at end of file diff --git a/NexCheckbox.h b/NexCheckbox.h new file mode 100755 index 00000000..ec10d00 --- /dev/null +++ b/NexCheckbox.h @@ -0,0 +1,104 @@ +/** + * @file NexCheckbox.h + * + * The definition of class NexCheckbox. + * + * @author huang xiaoming (email:) + * @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__ */ \ No newline at end of file diff --git a/NexCrop.cpp b/NexCrop.cpp old mode 100644 new mode 100755 index 90b6a24..651b915 --- a/NexCrop.cpp +++ b/NexCrop.cpp @@ -20,7 +20,7 @@ NexCrop::NexCrop(uint8_t pid, uint8_t cid, const char *name) { } -bool NexCrop::getPic(uint32_t *number) +bool NexCrop::Get_background_crop_picc(uint32_t *number) { String cmd = String("get "); cmd += getObjName(); @@ -29,7 +29,7 @@ bool NexCrop::getPic(uint32_t *number) return recvRetNumber(number); } -bool NexCrop::setPic(uint32_t number) +bool NexCrop::Set_background_crop_picc(uint32_t number) { char buf[10] = {0}; String cmd; diff --git a/NexCrop.h b/NexCrop.h old mode 100644 new mode 100755 index 4b1d1ea..a1be5ba --- a/NexCrop.h +++ b/NexCrop.h @@ -44,7 +44,7 @@ public: /* methods */ * @retval true - success. * @retval false - failed. */ - bool getPic(uint32_t *number); + bool Get_background_crop_picc(uint32_t *number); /** * Set the number of picture. @@ -54,7 +54,7 @@ public: /* methods */ * @retval true - success. * @retval false - failed. */ - bool setPic(uint32_t number); + bool Set_background_crop_picc(uint32_t number); }; /** diff --git a/NexDualStateButton.cpp b/NexDualStateButton.cpp old mode 100644 new mode 100755 index debf709..e938b9a --- a/NexDualStateButton.cpp +++ b/NexDualStateButton.cpp @@ -43,4 +43,305 @@ bool NexDSButton::setValue(uint32_t number) 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(); +} + diff --git a/NexDualStateButton.h b/NexDualStateButton.h old mode 100644 new mode 100755 index ebda9e7..cd9446b --- a/NexDualStateButton.h +++ b/NexDualStateButton.h @@ -57,6 +57,205 @@ public: /* methods */ * @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); }; /** * @} diff --git a/NexGauge.cpp b/NexGauge.cpp old mode 100644 new mode 100755 index 906f9fe..11e8d21 --- a/NexGauge.cpp +++ b/NexGauge.cpp @@ -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(); +} + diff --git a/NexGauge.h b/NexGauge.h old mode 100644 new mode 100755 index 5abf7f7..ee1d877 --- a/NexGauge.h +++ b/NexGauge.h @@ -54,6 +54,78 @@ 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); }; /** diff --git a/NexNumber.cpp b/NexNumber.cpp old mode 100644 new mode 100755 index c372b7e..dd9e610 --- a/NexNumber.cpp +++ b/NexNumber.cpp @@ -42,3 +42,221 @@ bool NexNumber::setValue(uint32_t number) 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()); + return recvRetCommandFinished(); +} \ No newline at end of file diff --git a/NexNumber.h b/NexNumber.h old mode 100644 new mode 100755 index 7b3cd75..63446ff --- a/NexNumber.h +++ b/NexNumber.h @@ -51,6 +51,150 @@ public: /* methods */ * @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); }; /** diff --git a/NexPicture.cpp b/NexPicture.cpp old mode 100644 new mode 100755 index ad4cd50..1317f01 --- a/NexPicture.cpp +++ b/NexPicture.cpp @@ -20,7 +20,7 @@ NexPicture::NexPicture(uint8_t pid, uint8_t cid, const char *name) { } -bool NexPicture::getPic(uint32_t *number) +bool NexPicture::Get_background_image_pic(uint32_t *number) { String cmd = String("get "); cmd += getObjName(); @@ -29,7 +29,7 @@ bool NexPicture::getPic(uint32_t *number) return recvRetNumber(number); } -bool NexPicture::setPic(uint32_t number) +bool NexPicture::Set_background_image_pic(uint32_t number) { char buf[10] = {0}; String cmd; diff --git a/NexPicture.h b/NexPicture.h old mode 100644 new mode 100755 index 19f86a0..2b04719 --- a/NexPicture.h +++ b/NexPicture.h @@ -43,7 +43,7 @@ public: /* methods */ * @retval true - success. * @retval false - failed. */ - bool getPic(uint32_t *number); + bool Get_background_image_pic(uint32_t *number); /** * Set picture's number. @@ -53,7 +53,7 @@ public: /* methods */ * @retval true - success. * @retval false - failed. */ - bool setPic(uint32_t number); + bool Set_background_image_pic(uint32_t number); }; /** diff --git a/NexProgressBar.cpp b/NexProgressBar.cpp old mode 100644 new mode 100755 index 50c403f..a7c5cf0 --- a/NexProgressBar.cpp +++ b/NexProgressBar.cpp @@ -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(); +} diff --git a/NexProgressBar.h b/NexProgressBar.h old mode 100644 new mode 100755 index af13b95..1b28330 --- a/NexProgressBar.h +++ b/NexProgressBar.h @@ -54,6 +54,42 @@ 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); }; /** diff --git a/NexRadio.cpp b/NexRadio.cpp new file mode 100755 index 00000000..09cb9c4 --- /dev/null +++ b/NexRadio.cpp @@ -0,0 +1,99 @@ +/** + * @file NexRadio.cpp + * + * The implementation of class NexRadio. + * + * @author huang xiaoming (email:) + * @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(); +} \ No newline at end of file diff --git a/NexRadio.h b/NexRadio.h new file mode 100755 index 00000000..f3bf3f7 --- /dev/null +++ b/NexRadio.h @@ -0,0 +1,104 @@ +/** + * @file NexRadio.h + * + * The definition of class NexRadio. + * + * @author huang xiaoming (email:) + * @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__ */ \ No newline at end of file diff --git a/NexScrolltext.cpp b/NexScrolltext.cpp new file mode 100755 index 00000000..7852b5d --- /dev/null +++ b/NexScrolltext.cpp @@ -0,0 +1,351 @@ +/** + * @file NexScrolltext.cpp + * + * The implementation of class NexScrolltext. + * + * @author Wu Pengfei (email:) + * @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(); +} diff --git a/NexScrolltext.h b/NexScrolltext.h new file mode 100755 index 00000000..9b59bd4 --- /dev/null +++ b/NexScrolltext.h @@ -0,0 +1,244 @@ +/** + * @file NexScrolltext.h + * + * The definition of class NexScrolltext. + * + * @author Wu Pengfei (email:) + * @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__ */ \ No newline at end of file diff --git a/NexSlider.cpp b/NexSlider.cpp old mode 100644 new mode 100755 index e714662..d4601e3 --- a/NexSlider.cpp +++ b/NexSlider.cpp @@ -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(); +} \ No newline at end of file diff --git a/NexSlider.h b/NexSlider.h old mode 100644 new mode 100755 index 7b22b6a..a85fa57 --- a/NexSlider.h +++ b/NexSlider.h @@ -54,6 +54,114 @@ 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); }; /** * @} diff --git a/NexText.cpp b/NexText.cpp old mode 100644 new mode 100755 index b59c475..95a05b1 --- a/NexText.cpp +++ b/NexText.cpp @@ -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(); +} + + diff --git a/NexText.h b/NexText.h old mode 100644 new mode 100755 index 44dc7c4..e5afd2d --- a/NexText.h +++ b/NexText.h @@ -51,6 +51,132 @@ 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); }; /** diff --git a/NexTimer.cpp b/NexTimer.cpp old mode 100644 new mode 100755 index 2f2b57e..6e24a9e --- a/NexTimer.cpp +++ b/NexTimer.cpp @@ -30,7 +30,7 @@ void NexTimer::detachTimer(void) NexTouch::detachPop(); } -bool NexTimer::getCycle(uint32_t *number) +bool NexTimer::Get_cycle_tim(uint32_t *number) { String cmd = String("get "); cmd += getObjName(); @@ -39,7 +39,7 @@ bool NexTimer::getCycle(uint32_t *number) return recvRetNumber(number); } -bool NexTimer::setCycle(uint32_t number) +bool NexTimer::Set_cycle_tim(uint32_t number) { char buf[10] = {0}; String cmd; diff --git a/NexTimer.h b/NexTimer.h old mode 100644 new mode 100755 index c37d776..03b714d --- a/NexTimer.h +++ b/NexTimer.h @@ -66,7 +66,7 @@ public: /* methods */ * @retval true - success. * @retval false - failed. */ - bool getCycle(uint32_t *number); + bool Get_cycle_tim(uint32_t *number); /** * Set the value of timer cycle val. @@ -78,7 +78,7 @@ public: /* methods */ * * @warning the cycle value must be greater than 50. */ - bool setCycle(uint32_t number); + bool Set_cycle_tim(uint32_t number); /** * contorl timer enable. diff --git a/NexVariable.cpp b/NexVariable.cpp new file mode 100755 index 00000000..187ba11 --- /dev/null +++ b/NexVariable.cpp @@ -0,0 +1,64 @@ +/** + * @file NexVariable.cpp + * + * The implementation of class NexText. + * + * @author huang xiaoming (email:) + * @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(); +} \ No newline at end of file diff --git a/NexVariable.h b/NexVariable.h new file mode 100755 index 00000000..77f553c --- /dev/null +++ b/NexVariable.h @@ -0,0 +1,85 @@ +/** + * @file NexButton.h + * + * The definition of class NexButton. + * + * @author huang xiaoming (email:) + * @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__*/ diff --git a/NexWaveform.cpp b/NexWaveform.cpp old mode 100644 new mode 100755 index ac868d6..f515f85 --- a/NexWaveform.cpp +++ b/NexWaveform.cpp @@ -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(); +} diff --git a/NexWaveform.h b/NexWaveform.h old mode 100644 new mode 100755 index 02f3a78..f7ac20e --- a/NexWaveform.h +++ b/NexWaveform.h @@ -44,6 +44,96 @@ 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); }; /** diff --git a/Nextion.h b/Nextion.h old mode 100644 new mode 100755 index 16ed1eb..3848db1 --- a/Nextion.h +++ b/Nextion.h @@ -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__ */ From 31096445f9610a530f02844164324fa27f0ec20a Mon Sep 17 00:00:00 2001 From: huangxiaoming Date: Fri, 30 Sep 2016 11:50:27 +0800 Subject: [PATCH 3/7] keep origin API --- NexCrop.cpp | 23 +++++++++++++++++++++++ NexCrop.h | 20 ++++++++++++++++++++ NexPicture.cpp | 22 ++++++++++++++++++++++ NexPicture.h | 20 ++++++++++++++++++++ NexTimer.cpp | 26 ++++++++++++++++++++++++++ NexTimer.h | 22 ++++++++++++++++++++++ 6 files changed, 133 insertions(+) diff --git a/NexCrop.cpp b/NexCrop.cpp index 651b915..d8a3472 100755 --- a/NexCrop.cpp +++ b/NexCrop.cpp @@ -43,3 +43,26 @@ bool NexCrop::Set_background_crop_picc(uint32_t number) return recvRetCommandFinished(); } +bool NexCrop::getPic(uint32_t *number) +{ + String cmd = String("get "); + cmd += getObjName(); + cmd += ".picc"; + sendCommand(cmd.c_str()); + return recvRetNumber(number); +} + +bool NexCrop::setPic(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(); +} + diff --git a/NexCrop.h b/NexCrop.h index a1be5ba..2ce1342 100755 --- a/NexCrop.h +++ b/NexCrop.h @@ -55,6 +55,26 @@ public: /* methods */ * @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); + + /** + * Set the number of picture. + * + * @param number - the number of picture. + * + * @retval true - success. + * @retval false - failed. + */ + bool setPic(uint32_t number); }; /** diff --git a/NexPicture.cpp b/NexPicture.cpp index 1317f01..dc070c5 100755 --- a/NexPicture.cpp +++ b/NexPicture.cpp @@ -43,3 +43,25 @@ bool NexPicture::Set_background_image_pic(uint32_t number) return recvRetCommandFinished(); } +bool NexPicture::getPic(uint32_t *number) +{ + String cmd = String("get "); + cmd += getObjName(); + cmd += ".pic"; + sendCommand(cmd.c_str()); + return recvRetNumber(number); +} + +bool NexPicture::setPic(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(); +} diff --git a/NexPicture.h b/NexPicture.h index 2b04719..efa36a4 100755 --- a/NexPicture.h +++ b/NexPicture.h @@ -54,6 +54,26 @@ public: /* methods */ * @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); + + /** + * Set picture's number. + * + * @param number -the picture number. + * + * @retval true - success. + * @retval false - failed. + */ + bool setPic(uint32_t number); }; /** diff --git a/NexTimer.cpp b/NexTimer.cpp index 6e24a9e..fa70f35 100755 --- a/NexTimer.cpp +++ b/NexTimer.cpp @@ -83,4 +83,30 @@ bool NexTimer::disable(void) return recvRetCommandFinished(); } +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(); +} + diff --git a/NexTimer.h b/NexTimer.h index 03b714d..836a03a 100755 --- a/NexTimer.h +++ b/NexTimer.h @@ -95,6 +95,28 @@ public: /* methods */ * @retval false - failed. */ bool disable(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); }; /** From 820e1cef65d8e3728be087a96f4da6d54e7ab4be Mon Sep 17 00:00:00 2001 From: huangxiaoming Date: Fri, 30 Sep 2016 13:45:29 +0800 Subject: [PATCH 4/7] keep origin API too --- NexTimer.cpp | 19 +++++++++++-------- NexTimer.h | 40 ++++++++++++++++++---------------------- 2 files changed, 29 insertions(+), 30 deletions(-) diff --git a/NexTimer.cpp b/NexTimer.cpp index fa70f35..43744dc 100755 --- a/NexTimer.cpp +++ b/NexTimer.cpp @@ -30,7 +30,7 @@ void NexTimer::detachTimer(void) NexTouch::detachPop(); } -bool NexTimer::Get_cycle_tim(uint32_t *number) +bool NexTimer::getCycle(uint32_t *number) { String cmd = String("get "); cmd += getObjName(); @@ -39,7 +39,7 @@ bool NexTimer::Get_cycle_tim(uint32_t *number) return recvRetNumber(number); } -bool NexTimer::Set_cycle_tim(uint32_t number) +bool NexTimer::setCycle(uint32_t number) { char buf[10] = {0}; String cmd; @@ -83,7 +83,7 @@ bool NexTimer::disable(void) return recvRetCommandFinished(); } -bool NexTimer::getCycle(uint32_t *number) +uint32_t NexTimer::Get_cycle_tim(uint32_t *number) { String cmd = String("get "); cmd += getObjName(); @@ -92,21 +92,24 @@ bool NexTimer::getCycle(uint32_t *number) return recvRetNumber(number); } -bool NexTimer::setCycle(uint32_t number) +bool NexTimer::Set_cycle_tim(uint32_t number) { char buf[10] = {0}; String cmd; - if (number < 50) + if (number < 8) { - number = 50; + 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(); } - diff --git a/NexTimer.h b/NexTimer.h index 836a03a..407a29c 100755 --- a/NexTimer.h +++ b/NexTimer.h @@ -66,7 +66,7 @@ public: /* methods */ * @retval true - success. * @retval false - failed. */ - bool Get_cycle_tim(uint32_t *number); + bool getCycle(uint32_t *number); /** * Set the value of timer cycle val. @@ -78,7 +78,7 @@ public: /* methods */ * * @warning the cycle value must be greater than 50. */ - bool Set_cycle_tim(uint32_t number); + bool setCycle(uint32_t number); /** * contorl timer enable. @@ -95,28 +95,24 @@ public: /* methods */ * @retval false - failed. */ bool disable(void); + + /* + * Get tim attribute of component + * + * @param number - buffer storing data retur + * @return the length of the data + */ - /** - * 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); + uint32_t Get_cycle_tim(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); + /* + * 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); }; /** From 1781d8877db7f05f6b5d62a87f5f9c85a4c3684b Mon Sep 17 00:00:00 2001 From: huangxiaoming Date: Mon, 10 Oct 2016 18:01:30 +0800 Subject: [PATCH 5/7] updata class index --- NexButton.h | 285 +- NexCheckbox.h | 78 +- NexDualStateButton.h | 267 +- NexGauge.h | 104 +- NexNumber.h | 213 +- NexProgressBar.h | 52 +- NexRadio.h | 78 +- NexScrolltext.h | 260 +- NexSlider.h | 156 +- NexText.h | 182 +- NexTimer.h | 26 +- NexUpload.h | 6 +- NexVariable.h | 26 +- NexWaveform.h | 130 +- doc/Documentation/Logo.png | Bin .../_comp_button_8ino-example.html | 2 +- .../_comp_button_8ino_source.html | 2 +- .../_comp_crop_8ino-example.html | 2 +- doc/Documentation/_comp_crop_8ino_source.html | 6 +- .../_comp_dual_state_button_8ino-example.html | 2 +- .../_comp_dual_state_button_8ino_source.html | 2 +- .../_comp_gauge_8ino-example.html | 2 +- .../_comp_gauge_8ino_source.html | 2 +- .../_comp_hotspot_8ino-example.html | 2 +- .../_comp_hotspot_8ino_source.html | 2 +- .../_comp_number_8ino-example.html | 2 +- .../_comp_number_8ino_source.html | 2 +- .../_comp_page_8ino-example.html | 2 +- doc/Documentation/_comp_page_8ino_source.html | 2 +- .../_comp_picture_8ino-example.html | 2 +- .../_comp_picture_8ino_source.html | 6 +- .../_comp_progress_bar_8ino-example.html | 2 +- .../_comp_progress_bar_8ino_source.html | 2 +- .../_comp_slider_8ino-example.html | 2 +- .../_comp_slider_8ino_source.html | 2 +- .../_comp_text_8ino-example.html | 2 +- doc/Documentation/_comp_text_8ino_source.html | 2 +- .../_comp_timer_8ino-example.html | 2 +- .../_comp_timer_8ino_source.html | 2 +- .../_comp_waveform_8ino-example.html | 2 +- .../_comp_waveform_8ino_source.html | 2 +- doc/Documentation/_nex_button_8cpp.html | 9 +- doc/Documentation/_nex_button_8cpp__incl.map | 14 +- doc/Documentation/_nex_button_8cpp__incl.md5 | 2 +- doc/Documentation/_nex_button_8cpp__incl.png | Bin 18617 -> 24618 bytes .../_nex_button_8cpp_source.html | 332 +- doc/Documentation/_nex_button_8h.html | 20 +- .../_nex_button_8h__dep__incl.map | 18 +- .../_nex_button_8h__dep__incl.md5 | 2 +- .../_nex_button_8h__dep__incl.png | Bin 33228 -> 4727 bytes doc/Documentation/_nex_button_8h__incl.map | 12 +- doc/Documentation/_nex_button_8h__incl.md5 | 2 +- doc/Documentation/_nex_button_8h__incl.png | Bin 17597 -> 20438 bytes doc/Documentation/_nex_button_8h_source.html | 74 +- doc/Documentation/_nex_config_8h.html | 11 +- doc/Documentation/_nex_config_8h.js | 0 .../_nex_config_8h__dep__incl.map | 84 +- .../_nex_config_8h__dep__incl.md5 | 2 +- .../_nex_config_8h__dep__incl.png | Bin 153872 -> 203166 bytes doc/Documentation/_nex_config_8h_source.html | 2 +- doc/Documentation/_nex_crop_8cpp.html | 9 +- doc/Documentation/_nex_crop_8cpp__incl.map | 14 +- doc/Documentation/_nex_crop_8cpp__incl.md5 | 2 +- doc/Documentation/_nex_crop_8cpp__incl.png | Bin 18620 -> 24640 bytes doc/Documentation/_nex_crop_8cpp_source.html | 35 +- doc/Documentation/_nex_crop_8h.html | 16 +- doc/Documentation/_nex_crop_8h__dep__incl.map | 18 +- doc/Documentation/_nex_crop_8h__dep__incl.md5 | 2 +- doc/Documentation/_nex_crop_8h__dep__incl.png | Bin 33233 -> 5405 bytes doc/Documentation/_nex_crop_8h__incl.map | 12 +- doc/Documentation/_nex_crop_8h__incl.md5 | 2 +- doc/Documentation/_nex_crop_8h__incl.png | Bin 17595 -> 20481 bytes doc/Documentation/_nex_crop_8h_source.html | 22 +- .../_nex_dual_state_button_8cpp.html | 9 +- .../_nex_dual_state_button_8cpp__incl.dot | 23 - .../_nex_dual_state_button_8cpp__incl.md5 | 2 +- .../_nex_dual_state_button_8cpp_source.html | 327 +- .../_nex_dual_state_button_8h.html | 16 +- .../_nex_dual_state_button_8h__dep__incl.dot | 36 - .../_nex_dual_state_button_8h__dep__incl.md5 | 2 +- .../_nex_dual_state_button_8h__incl.dot | 21 - .../_nex_dual_state_button_8h__incl.md5 | 2 +- .../_nex_dual_state_button_8h_source.html | 78 +- doc/Documentation/_nex_gauge_8cpp.html | 9 +- doc/Documentation/_nex_gauge_8cpp__incl.map | 14 +- doc/Documentation/_nex_gauge_8cpp__incl.md5 | 2 +- doc/Documentation/_nex_gauge_8cpp__incl.png | Bin 18686 -> 24996 bytes doc/Documentation/_nex_gauge_8cpp_source.html | 125 +- doc/Documentation/_nex_gauge_8h.html | 16 +- .../_nex_gauge_8h__dep__incl.map | 18 +- .../_nex_gauge_8h__dep__incl.md5 | 2 +- .../_nex_gauge_8h__dep__incl.png | Bin 33325 -> 5225 bytes doc/Documentation/_nex_gauge_8h__incl.map | 12 +- doc/Documentation/_nex_gauge_8h__incl.md5 | 2 +- doc/Documentation/_nex_gauge_8h__incl.png | Bin 17627 -> 20617 bytes doc/Documentation/_nex_gauge_8h_source.html | 32 +- doc/Documentation/_nex_hardware_8cpp.html | 9 +- doc/Documentation/_nex_hardware_8cpp.js | 0 .../_nex_hardware_8cpp__incl.map | 12 +- .../_nex_hardware_8cpp__incl.md5 | 2 +- .../_nex_hardware_8cpp__incl.png | Bin 15127 -> 18959 bytes .../_nex_hardware_8cpp_source.html | 2 +- doc/Documentation/_nex_hardware_8h.html | 16 +- doc/Documentation/_nex_hardware_8h.js | 0 .../_nex_hardware_8h__dep__incl.map | 74 +- .../_nex_hardware_8h__dep__incl.md5 | 2 +- .../_nex_hardware_8h__dep__incl.png | Bin 85433 -> 107026 bytes doc/Documentation/_nex_hardware_8h__incl.map | 10 +- doc/Documentation/_nex_hardware_8h__incl.md5 | 2 +- doc/Documentation/_nex_hardware_8h__incl.png | Bin 14051 -> 16903 bytes .../_nex_hardware_8h_source.html | 2 +- doc/Documentation/_nex_hotspot_8cpp.html | 9 +- doc/Documentation/_nex_hotspot_8cpp__incl.map | 14 +- doc/Documentation/_nex_hotspot_8cpp__incl.md5 | 2 +- doc/Documentation/_nex_hotspot_8cpp__incl.png | Bin 18671 -> 24618 bytes .../_nex_hotspot_8cpp_source.html | 2 +- doc/Documentation/_nex_hotspot_8h.html | 16 +- .../_nex_hotspot_8h__dep__incl.map | 18 +- .../_nex_hotspot_8h__dep__incl.md5 | 2 +- .../_nex_hotspot_8h__dep__incl.png | Bin 33269 -> 4969 bytes doc/Documentation/_nex_hotspot_8h__incl.map | 12 +- doc/Documentation/_nex_hotspot_8h__incl.md5 | 2 +- doc/Documentation/_nex_hotspot_8h__incl.png | Bin 17607 -> 20467 bytes doc/Documentation/_nex_hotspot_8h_source.html | 2 +- doc/Documentation/_nex_number_8cpp.html | 9 +- doc/Documentation/_nex_number_8cpp__incl.dot | 23 - doc/Documentation/_nex_number_8cpp__incl.md5 | 2 +- .../_nex_number_8cpp_source.html | 236 +- doc/Documentation/_nex_number_8h.html | 16 +- .../_nex_number_8h__dep__incl.dot | 36 - .../_nex_number_8h__dep__incl.md5 | 2 +- doc/Documentation/_nex_number_8h__incl.dot | 21 - doc/Documentation/_nex_number_8h__incl.md5 | 2 +- doc/Documentation/_nex_number_8h_source.html | 62 +- doc/Documentation/_nex_object_8cpp.html | 9 +- doc/Documentation/_nex_object_8cpp__incl.map | 8 +- doc/Documentation/_nex_object_8cpp__incl.md5 | 2 +- doc/Documentation/_nex_object_8cpp__incl.png | Bin 4338 -> 7808 bytes .../_nex_object_8cpp_source.html | 2 +- doc/Documentation/_nex_object_8h.html | 16 +- .../_nex_object_8h__dep__incl.map | 82 +- .../_nex_object_8h__dep__incl.md5 | 2 +- .../_nex_object_8h__dep__incl.png | Bin 133950 -> 187131 bytes doc/Documentation/_nex_object_8h__incl.map | 6 +- doc/Documentation/_nex_object_8h__incl.md5 | 2 +- doc/Documentation/_nex_object_8h__incl.png | Bin 3447 -> 5286 bytes doc/Documentation/_nex_object_8h_source.html | 2 +- doc/Documentation/_nex_page_8cpp.html | 9 +- doc/Documentation/_nex_page_8cpp__incl.map | 14 +- doc/Documentation/_nex_page_8cpp__incl.md5 | 2 +- doc/Documentation/_nex_page_8cpp__incl.png | Bin 18629 -> 24639 bytes doc/Documentation/_nex_page_8cpp_source.html | 2 +- doc/Documentation/_nex_page_8h.html | 16 +- doc/Documentation/_nex_page_8h__dep__incl.map | 18 +- doc/Documentation/_nex_page_8h__dep__incl.md5 | 2 +- doc/Documentation/_nex_page_8h__dep__incl.png | Bin 33254 -> 5172 bytes doc/Documentation/_nex_page_8h__incl.map | 12 +- doc/Documentation/_nex_page_8h__incl.md5 | 2 +- doc/Documentation/_nex_page_8h__incl.png | Bin 17602 -> 20453 bytes doc/Documentation/_nex_page_8h_source.html | 2 +- doc/Documentation/_nex_picture_8cpp.html | 9 +- doc/Documentation/_nex_picture_8cpp__incl.map | 14 +- doc/Documentation/_nex_picture_8cpp__incl.md5 | 2 +- doc/Documentation/_nex_picture_8cpp__incl.png | Bin 18674 -> 24375 bytes .../_nex_picture_8cpp_source.html | 34 +- doc/Documentation/_nex_picture_8h.html | 16 +- .../_nex_picture_8h__dep__incl.map | 18 +- .../_nex_picture_8h__dep__incl.md5 | 2 +- .../_nex_picture_8h__dep__incl.png | Bin 33282 -> 4294 bytes doc/Documentation/_nex_picture_8h__incl.map | 12 +- doc/Documentation/_nex_picture_8h__incl.md5 | 2 +- doc/Documentation/_nex_picture_8h__incl.png | Bin 17608 -> 20391 bytes doc/Documentation/_nex_picture_8h_source.html | 22 +- doc/Documentation/_nex_progress_bar_8cpp.html | 9 +- .../_nex_progress_bar_8cpp__incl.map | 14 +- .../_nex_progress_bar_8cpp__incl.md5 | 2 +- .../_nex_progress_bar_8cpp__incl.png | Bin 18841 -> 25807 bytes .../_nex_progress_bar_8cpp_source.html | 61 +- doc/Documentation/_nex_progress_bar_8h.html | 16 +- .../_nex_progress_bar_8h__dep__incl.map | 18 +- .../_nex_progress_bar_8h__dep__incl.md5 | 2 +- .../_nex_progress_bar_8h__dep__incl.png | Bin 33644 -> 6210 bytes .../_nex_progress_bar_8h__incl.map | 12 +- .../_nex_progress_bar_8h__incl.md5 | 2 +- .../_nex_progress_bar_8h__incl.png | Bin 17676 -> 21003 bytes .../_nex_progress_bar_8h_source.html | 20 +- doc/Documentation/_nex_slider_8cpp.html | 9 +- doc/Documentation/_nex_slider_8cpp__incl.map | 14 +- doc/Documentation/_nex_slider_8cpp__incl.md5 | 2 +- doc/Documentation/_nex_slider_8cpp__incl.png | Bin 18675 -> 24561 bytes .../_nex_slider_8cpp_source.html | 181 +- doc/Documentation/_nex_slider_8h.html | 16 +- .../_nex_slider_8h__dep__incl.map | 18 +- .../_nex_slider_8h__dep__incl.md5 | 2 +- .../_nex_slider_8h__dep__incl.png | Bin 33308 -> 5135 bytes doc/Documentation/_nex_slider_8h__incl.map | 12 +- doc/Documentation/_nex_slider_8h__incl.md5 | 2 +- doc/Documentation/_nex_slider_8h__incl.png | Bin 17606 -> 20434 bytes doc/Documentation/_nex_slider_8h_source.html | 42 +- doc/Documentation/_nex_text_8cpp.html | 9 +- doc/Documentation/_nex_text_8cpp__incl.map | 14 +- doc/Documentation/_nex_text_8cpp__incl.md5 | 2 +- doc/Documentation/_nex_text_8cpp__incl.png | Bin 18600 -> 23873 bytes doc/Documentation/_nex_text_8cpp_source.html | 208 +- doc/Documentation/_nex_text_8h.html | 16 +- doc/Documentation/_nex_text_8h__dep__incl.map | 18 +- doc/Documentation/_nex_text_8h__dep__incl.md5 | 2 +- doc/Documentation/_nex_text_8h__dep__incl.png | Bin 33215 -> 4397 bytes doc/Documentation/_nex_text_8h__incl.map | 12 +- doc/Documentation/_nex_text_8h__incl.md5 | 2 +- doc/Documentation/_nex_text_8h__incl.png | Bin 17573 -> 20083 bytes doc/Documentation/_nex_text_8h_source.html | 50 +- doc/Documentation/_nex_timer_8cpp.html | 9 +- doc/Documentation/_nex_timer_8cpp__incl.dot | 23 - doc/Documentation/_nex_timer_8cpp__incl.md5 | 2 +- doc/Documentation/_nex_timer_8cpp_source.html | 35 +- doc/Documentation/_nex_timer_8h.html | 16 +- .../_nex_timer_8h__dep__incl.dot | 36 - .../_nex_timer_8h__dep__incl.md5 | 2 +- doc/Documentation/_nex_timer_8h__incl.dot | 21 - doc/Documentation/_nex_timer_8h__incl.md5 | 2 +- doc/Documentation/_nex_timer_8h_source.html | 14 +- doc/Documentation/_nex_touch_8cpp.html | 9 +- doc/Documentation/_nex_touch_8cpp__incl.map | 10 +- doc/Documentation/_nex_touch_8cpp__incl.md5 | 2 +- doc/Documentation/_nex_touch_8cpp__incl.png | Bin 8965 -> 13536 bytes doc/Documentation/_nex_touch_8cpp_source.html | 2 +- doc/Documentation/_nex_touch_8h.html | 16 +- doc/Documentation/_nex_touch_8h.js | 0 .../_nex_touch_8h__dep__incl.map | 78 +- .../_nex_touch_8h__dep__incl.md5 | 2 +- .../_nex_touch_8h__dep__incl.png | Bin 129607 -> 182057 bytes doc/Documentation/_nex_touch_8h__incl.map | 8 +- doc/Documentation/_nex_touch_8h__incl.md5 | 2 +- doc/Documentation/_nex_touch_8h__incl.png | Bin 7943 -> 11450 bytes doc/Documentation/_nex_touch_8h_source.html | 2 +- doc/Documentation/_nex_waveform_8cpp.html | 9 +- .../_nex_waveform_8cpp__incl.map | 14 +- .../_nex_waveform_8cpp__incl.md5 | 2 +- .../_nex_waveform_8cpp__incl.png | Bin 18733 -> 25581 bytes .../_nex_waveform_8cpp_source.html | 154 +- doc/Documentation/_nex_waveform_8h.html | 16 +- .../_nex_waveform_8h__dep__incl.map | 18 +- .../_nex_waveform_8h__dep__incl.md5 | 2 +- .../_nex_waveform_8h__dep__incl.png | Bin 33427 -> 6396 bytes doc/Documentation/_nex_waveform_8h__incl.map | 12 +- doc/Documentation/_nex_waveform_8h__incl.md5 | 2 +- doc/Documentation/_nex_waveform_8h__incl.png | Bin 17635 -> 20861 bytes .../_nex_waveform_8h_source.html | 38 +- doc/Documentation/_nextion_8h.html | 20 +- doc/Documentation/_nextion_8h__incl.map | 39 +- doc/Documentation/_nextion_8h__incl.md5 | 2 +- doc/Documentation/_nextion_8h__incl.png | Bin 117500 -> 191398 bytes doc/Documentation/_nextion_8h_source.html | 15 +- doc/Documentation/annotated.html | 37 +- doc/Documentation/annotated.js | 5 + doc/Documentation/bc_s.png | Bin doc/Documentation/bdwn.png | Bin .../class_nex_button-members.html | 36 +- doc/Documentation/class_nex_button.html | 680 ++- doc/Documentation/class_nex_button.js | 22 + .../class_nex_button__coll__graph.map | 8 +- .../class_nex_button__coll__graph.md5 | 2 +- .../class_nex_button__coll__graph.png | Bin 1997 -> 4307 bytes .../class_nex_button__inherit__graph.map | 8 +- .../class_nex_button__inherit__graph.md5 | 2 +- .../class_nex_button__inherit__graph.png | Bin 1997 -> 4307 bytes doc/Documentation/class_nex_crop-members.html | 16 +- doc/Documentation/class_nex_crop.html | 96 +- doc/Documentation/class_nex_crop.js | 2 + .../class_nex_crop__coll__graph.map | 8 +- .../class_nex_crop__coll__graph.md5 | 2 +- .../class_nex_crop__coll__graph.png | Bin 1988 -> 4377 bytes .../class_nex_crop__inherit__graph.map | 8 +- .../class_nex_crop__inherit__graph.md5 | 2 +- .../class_nex_crop__inherit__graph.png | Bin 1988 -> 4377 bytes .../class_nex_d_s_button-members.html | 36 +- doc/Documentation/class_nex_d_s_button.html | 696 ++- doc/Documentation/class_nex_d_s_button.js | 22 + .../class_nex_d_s_button__coll__graph.dot | 10 - .../class_nex_d_s_button__coll__graph.md5 | 2 +- .../class_nex_d_s_button__inherit__graph.dot | 10 - .../class_nex_d_s_button__inherit__graph.md5 | 2 +- .../class_nex_gauge-members.html | 12 +- doc/Documentation/class_nex_gauge.html | 260 +- doc/Documentation/class_nex_gauge.js | 8 + .../class_nex_gauge__coll__graph.map | 6 +- .../class_nex_gauge__coll__graph.md5 | 2 +- .../class_nex_gauge__coll__graph.png | Bin 1350 -> 3248 bytes .../class_nex_gauge__inherit__graph.map | 6 +- .../class_nex_gauge__inherit__graph.md5 | 2 +- .../class_nex_gauge__inherit__graph.png | Bin 1350 -> 3248 bytes .../class_nex_hotspot-members.html | 4 +- doc/Documentation/class_nex_hotspot.html | 20 +- doc/Documentation/class_nex_hotspot.js | 0 .../class_nex_hotspot__coll__graph.map | 8 +- .../class_nex_hotspot__coll__graph.md5 | 2 +- .../class_nex_hotspot__coll__graph.png | Bin 2061 -> 4402 bytes .../class_nex_hotspot__inherit__graph.map | 8 +- .../class_nex_hotspot__inherit__graph.md5 | 2 +- .../class_nex_hotspot__inherit__graph.png | Bin 2061 -> 4402 bytes .../class_nex_number-members.html | 20 +- doc/Documentation/class_nex_number.html | 505 +- doc/Documentation/class_nex_number.js | 16 + .../class_nex_number__coll__graph.dot | 10 - .../class_nex_number__coll__graph.md5 | 2 +- .../class_nex_number__inherit__graph.dot | 10 - .../class_nex_number__inherit__graph.md5 | 2 +- .../class_nex_object-members.html | 4 +- doc/Documentation/class_nex_object.html | 13 +- doc/Documentation/class_nex_object.js | 0 .../class_nex_object__inherit__graph.map | 33 +- .../class_nex_object__inherit__graph.md5 | 2 +- .../class_nex_object__inherit__graph.png | Bin 18231 -> 52519 bytes doc/Documentation/class_nex_page-members.html | 4 +- doc/Documentation/class_nex_page.html | 20 +- doc/Documentation/class_nex_page.js | 0 .../class_nex_page__coll__graph.map | 8 +- .../class_nex_page__coll__graph.md5 | 2 +- .../class_nex_page__coll__graph.png | Bin 2014 -> 4329 bytes .../class_nex_page__inherit__graph.map | 8 +- .../class_nex_page__inherit__graph.md5 | 2 +- .../class_nex_page__inherit__graph.png | Bin 2014 -> 4329 bytes .../class_nex_picture-members.html | 16 +- doc/Documentation/class_nex_picture.html | 96 +- doc/Documentation/class_nex_picture.js | 2 + .../class_nex_picture__coll__graph.map | 8 +- .../class_nex_picture__coll__graph.md5 | 2 +- .../class_nex_picture__coll__graph.png | Bin 2042 -> 4257 bytes .../class_nex_picture__inherit__graph.map | 8 +- .../class_nex_picture__inherit__graph.md5 | 2 +- .../class_nex_picture__inherit__graph.png | Bin 2042 -> 4257 bytes .../class_nex_progress_bar-members.html | 8 +- doc/Documentation/class_nex_progress_bar.html | 140 +- doc/Documentation/class_nex_progress_bar.js | 4 + .../class_nex_progress_bar__coll__graph.map | 6 +- .../class_nex_progress_bar__coll__graph.md5 | 2 +- .../class_nex_progress_bar__coll__graph.png | Bin 1414 -> 3375 bytes ...class_nex_progress_bar__inherit__graph.map | 6 +- ...class_nex_progress_bar__inherit__graph.md5 | 2 +- ...class_nex_progress_bar__inherit__graph.png | Bin 1414 -> 3375 bytes .../class_nex_slider-members.html | 16 +- doc/Documentation/class_nex_slider.html | 380 +- doc/Documentation/class_nex_slider.js | 12 + .../class_nex_slider__coll__graph.map | 8 +- .../class_nex_slider__coll__graph.md5 | 2 +- .../class_nex_slider__coll__graph.png | Bin 2018 -> 4287 bytes .../class_nex_slider__inherit__graph.map | 8 +- .../class_nex_slider__inherit__graph.md5 | 2 +- .../class_nex_slider__inherit__graph.png | Bin 2018 -> 4287 bytes doc/Documentation/class_nex_text-members.html | 28 +- doc/Documentation/class_nex_text.html | 440 +- doc/Documentation/class_nex_text.js | 14 + .../class_nex_text__coll__graph.map | 8 +- .../class_nex_text__coll__graph.md5 | 2 +- .../class_nex_text__coll__graph.png | Bin 1996 -> 3937 bytes .../class_nex_text__inherit__graph.map | 8 +- .../class_nex_text__inherit__graph.md5 | 2 +- .../class_nex_text__inherit__graph.png | Bin 1996 -> 3937 bytes .../class_nex_timer-members.html | 16 +- doc/Documentation/class_nex_timer.html | 98 +- doc/Documentation/class_nex_timer.js | 2 + .../class_nex_timer__coll__graph.dot | 10 - .../class_nex_timer__coll__graph.md5 | 2 +- .../class_nex_timer__inherit__graph.dot | 10 - .../class_nex_timer__inherit__graph.md5 | 2 +- ...65d08df4623ce8a146e73ff9204d5cb_cgraph.dot | 9 - ...65d08df4623ce8a146e73ff9204d5cb_cgraph.md5 | 2 +- ...6f1ae95ef40b8bc6f482185b1ec5175_cgraph.dot | 9 - ...6f1ae95ef40b8bc6f482185b1ec5175_cgraph.md5 | 2 +- .../class_nex_touch-members.html | 4 +- doc/Documentation/class_nex_touch.html | 40 +- doc/Documentation/class_nex_touch.js | 0 .../class_nex_touch__coll__graph.map | 6 +- .../class_nex_touch__coll__graph.md5 | 2 +- .../class_nex_touch__coll__graph.png | Bin 1302 -> 3040 bytes .../class_nex_touch__inherit__graph.map | 27 +- .../class_nex_touch__inherit__graph.md5 | 2 +- .../class_nex_touch__inherit__graph.png | Bin 12967 -> 54013 bytes ...a1c4fcdfadb7eabfb9ccaba9ecad11_icgraph.dot | 9 - ...a1c4fcdfadb7eabfb9ccaba9ecad11_icgraph.md5 | 2 +- ...56640c1078a553287a68bf792dd291_icgraph.dot | 9 - ...56640c1078a553287a68bf792dd291_icgraph.md5 | 2 +- .../class_nex_waveform-members.html | 20 +- doc/Documentation/class_nex_waveform.html | 320 +- doc/Documentation/class_nex_waveform.js | 12 +- .../class_nex_waveform__coll__graph.map | 6 +- .../class_nex_waveform__coll__graph.md5 | 2 +- .../class_nex_waveform__coll__graph.png | Bin 1376 -> 3245 bytes .../class_nex_waveform__inherit__graph.map | 6 +- .../class_nex_waveform__inherit__graph.md5 | 2 +- .../class_nex_waveform__inherit__graph.png | Bin 1376 -> 3245 bytes doc/Documentation/classes.html | 13 +- doc/Documentation/closed.png | Bin .../dir_2af451c22587252d0014dbc596e2e19a.html | 9 +- .../dir_2af451c22587252d0014dbc596e2e19a.js | 0 ...r_2af451c22587252d0014dbc596e2e19a_dep.dot | 9 - .../dir_3a828b7214103d705cc83e20f29bdad9.html | 9 +- .../dir_3a828b7214103d705cc83e20f29bdad9.js | 0 ...r_3a828b7214103d705cc83e20f29bdad9_dep.dot | 9 - .../dir_472f54fb1d9b74971d8e15d62f212bd3.html | 9 +- .../dir_472f54fb1d9b74971d8e15d62f212bd3.js | 0 .../dir_4b43661efaa18af91f213d2681ebd37e.html | 9 +- .../dir_4b43661efaa18af91f213d2681ebd37e.js | 0 .../dir_53835f0dfcb7abf9d97bc46682fab859.html | 9 +- .../dir_53835f0dfcb7abf9d97bc46682fab859.js | 0 ...r_53835f0dfcb7abf9d97bc46682fab859_dep.dot | 9 - .../dir_7962cac16a99e8bbaaea18abede03fcb.html | 9 +- .../dir_7962cac16a99e8bbaaea18abede03fcb.js | 0 .../dir_8dcbebf38b229bfa7bb34d68bf824093.html | 9 +- .../dir_8dcbebf38b229bfa7bb34d68bf824093.js | 0 .../dir_9bbf8342b0f9a157b7af08fe1412fc17.html | 9 +- .../dir_9bbf8342b0f9a157b7af08fe1412fc17.js | 0 .../dir_a48692e2802a027399b146b680655303.html | 9 +- .../dir_a48692e2802a027399b146b680655303.js | 0 .../dir_c918e8bf3fc71f849978cdb0d900e61c.html | 9 +- .../dir_c918e8bf3fc71f849978cdb0d900e61c.js | 0 .../dir_ce36ac18ad3deaf5eae0bd2e09775a7d.html | 9 +- .../dir_ce36ac18ad3deaf5eae0bd2e09775a7d.js | 0 .../dir_d28a4824dc47e487b107a5db32ef43c4.html | 11 +- .../dir_d28a4824dc47e487b107a5db32ef43c4.js | 3 +- ...r_d28a4824dc47e487b107a5db32ef43c4_dep.map | 30 +- ...r_d28a4824dc47e487b107a5db32ef43c4_dep.md5 | 2 +- ...r_d28a4824dc47e487b107a5db32ef43c4_dep.png | Bin 2961 -> 8149 bytes .../dir_f3d39c87bc262720c50d5e3885667b8a.html | 9 +- .../dir_f3d39c87bc262720c50d5e3885667b8a.js | 0 .../dir_f76977d9ffe8ddf3ad01f3d689aa5df4.html | 9 +- .../dir_f76977d9ffe8ddf3ad01f3d689aa5df4.js | 0 doc/Documentation/doxygen.css | 0 doc/Documentation/doxygen.png | Bin doc/Documentation/doxygen_8h.html | 2 +- doc/Documentation/doxygen_8h_source.html | 2 +- doc/Documentation/dynsections.js | 0 doc/Documentation/examples.html | 2 +- doc/Documentation/examples.js | 0 doc/Documentation/files.html | 171 +- doc/Documentation/files.js | 11 + doc/Documentation/ftv2blank.png | Bin doc/Documentation/ftv2doc.png | Bin doc/Documentation/ftv2folderclosed.png | Bin doc/Documentation/ftv2folderopen.png | Bin doc/Documentation/ftv2lastnode.png | Bin doc/Documentation/ftv2link.png | Bin doc/Documentation/ftv2mlastnode.png | Bin doc/Documentation/ftv2mnode.png | Bin doc/Documentation/ftv2node.png | Bin doc/Documentation/ftv2plastnode.png | Bin doc/Documentation/ftv2pnode.png | Bin doc/Documentation/ftv2splitbar.png | Bin doc/Documentation/ftv2vertline.png | Bin doc/Documentation/functions.html | 145 +- doc/Documentation/functions_func.html | 145 +- doc/Documentation/globals.html | 2 +- doc/Documentation/globals_defs.html | 2 +- doc/Documentation/globals_func.html | 2 +- doc/Documentation/globals_type.html | 2 +- doc/Documentation/graph_legend.html | 77 +- doc/Documentation/group___component.html | 14 +- doc/Documentation/group___component.js | 166 +- doc/Documentation/group___configuration.html | 2 +- doc/Documentation/group___configuration.js | 0 doc/Documentation/group___core_a_p_i.html | 13 +- doc/Documentation/group___core_a_p_i.js | 5 + doc/Documentation/group___core_a_p_i.map | 6 +- doc/Documentation/group___core_a_p_i.md5 | 2 +- doc/Documentation/group___core_a_p_i.png | Bin 1115 -> 2776 bytes doc/Documentation/group___get_started.html | 2 +- doc/Documentation/group___touch_event.html | 10 +- doc/Documentation/group___touch_event.js | 0 doc/Documentation/group___touch_event.map | 6 +- doc/Documentation/group___touch_event.md5 | 2 +- doc/Documentation/group___touch_event.png | Bin 1123 -> 2786 bytes doc/Documentation/hierarchy.html | 31 +- doc/Documentation/hierarchy.js | 9 +- doc/Documentation/index.html | 2 +- doc/Documentation/inherit_graph_0.map | 35 +- doc/Documentation/inherit_graph_0.md5 | 2 +- doc/Documentation/inherit_graph_0.png | Bin 17597 -> 52090 bytes doc/Documentation/inherits.html | 15 +- doc/Documentation/jquery.js | 0 doc/Documentation/md_readme.html | 2 +- doc/Documentation/md_release_notes.html | 2 +- doc/Documentation/modules.html | 2 +- doc/Documentation/modules.js | 0 doc/Documentation/nav_f.png | Bin doc/Documentation/nav_g.png | Bin doc/Documentation/nav_h.png | Bin doc/Documentation/navtree.css | 0 doc/Documentation/navtree.js | 7 +- doc/Documentation/navtreeindex0.js | 397 +- doc/Documentation/open.png | Bin doc/Documentation/pages.html | 2 +- doc/Documentation/readme_8md_source.html | 2 +- .../release__notes_8md_source.html | 2 +- doc/Documentation/resize.js | 0 doc/Documentation/sync_off.png | Bin doc/Documentation/sync_on.png | Bin doc/Documentation/tab_a.png | Bin doc/Documentation/tab_b.png | Bin doc/Documentation/tab_h.png | Bin doc/Documentation/tab_s.png | Bin doc/Documentation/tabs.css | 0 doxygen.doxy | 4764 ++++++++--------- 503 files changed, 10580 insertions(+), 6034 deletions(-) mode change 100644 => 100755 NexUpload.h mode change 100644 => 100755 doc/Documentation/Logo.png mode change 100644 => 100755 doc/Documentation/_comp_button_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_button_8ino_source.html mode change 100644 => 100755 doc/Documentation/_comp_crop_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_crop_8ino_source.html mode change 100644 => 100755 doc/Documentation/_comp_dual_state_button_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_dual_state_button_8ino_source.html mode change 100644 => 100755 doc/Documentation/_comp_gauge_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_gauge_8ino_source.html mode change 100644 => 100755 doc/Documentation/_comp_hotspot_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_hotspot_8ino_source.html mode change 100644 => 100755 doc/Documentation/_comp_number_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_number_8ino_source.html mode change 100644 => 100755 doc/Documentation/_comp_page_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_page_8ino_source.html mode change 100644 => 100755 doc/Documentation/_comp_picture_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_picture_8ino_source.html mode change 100644 => 100755 doc/Documentation/_comp_progress_bar_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_progress_bar_8ino_source.html mode change 100644 => 100755 doc/Documentation/_comp_slider_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_slider_8ino_source.html mode change 100644 => 100755 doc/Documentation/_comp_text_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_text_8ino_source.html mode change 100644 => 100755 doc/Documentation/_comp_timer_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_timer_8ino_source.html mode change 100644 => 100755 doc/Documentation/_comp_waveform_8ino-example.html mode change 100644 => 100755 doc/Documentation/_comp_waveform_8ino_source.html mode change 100644 => 100755 doc/Documentation/_nex_button_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_button_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_button_8h.html mode change 100644 => 100755 doc/Documentation/_nex_button_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_config_8h.html mode change 100644 => 100755 doc/Documentation/_nex_config_8h.js mode change 100644 => 100755 doc/Documentation/_nex_config_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_crop_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_crop_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_crop_8h.html mode change 100644 => 100755 doc/Documentation/_nex_crop_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_dual_state_button_8cpp.html delete mode 100644 doc/Documentation/_nex_dual_state_button_8cpp__incl.dot mode change 100644 => 100755 doc/Documentation/_nex_dual_state_button_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_dual_state_button_8h.html delete mode 100644 doc/Documentation/_nex_dual_state_button_8h__dep__incl.dot delete mode 100644 doc/Documentation/_nex_dual_state_button_8h__incl.dot mode change 100644 => 100755 doc/Documentation/_nex_dual_state_button_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_gauge_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_gauge_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_gauge_8h.html mode change 100644 => 100755 doc/Documentation/_nex_gauge_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_hardware_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_hardware_8cpp.js mode change 100644 => 100755 doc/Documentation/_nex_hardware_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_hardware_8h.html mode change 100644 => 100755 doc/Documentation/_nex_hardware_8h.js mode change 100644 => 100755 doc/Documentation/_nex_hardware_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_hotspot_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_hotspot_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_hotspot_8h.html mode change 100644 => 100755 doc/Documentation/_nex_hotspot_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_number_8cpp.html delete mode 100644 doc/Documentation/_nex_number_8cpp__incl.dot mode change 100644 => 100755 doc/Documentation/_nex_number_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_number_8h.html delete mode 100644 doc/Documentation/_nex_number_8h__dep__incl.dot delete mode 100644 doc/Documentation/_nex_number_8h__incl.dot mode change 100644 => 100755 doc/Documentation/_nex_number_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_object_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_object_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_object_8h.html mode change 100644 => 100755 doc/Documentation/_nex_object_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_page_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_page_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_page_8h.html mode change 100644 => 100755 doc/Documentation/_nex_page_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_picture_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_picture_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_picture_8h.html mode change 100644 => 100755 doc/Documentation/_nex_picture_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_progress_bar_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_progress_bar_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_progress_bar_8h.html mode change 100644 => 100755 doc/Documentation/_nex_progress_bar_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_slider_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_slider_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_slider_8h.html mode change 100644 => 100755 doc/Documentation/_nex_slider_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_text_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_text_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_text_8h.html mode change 100644 => 100755 doc/Documentation/_nex_text_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_timer_8cpp.html delete mode 100644 doc/Documentation/_nex_timer_8cpp__incl.dot mode change 100644 => 100755 doc/Documentation/_nex_timer_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_timer_8h.html delete mode 100644 doc/Documentation/_nex_timer_8h__dep__incl.dot delete mode 100644 doc/Documentation/_nex_timer_8h__incl.dot mode change 100644 => 100755 doc/Documentation/_nex_timer_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_touch_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_touch_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_touch_8h.html mode change 100644 => 100755 doc/Documentation/_nex_touch_8h.js mode change 100644 => 100755 doc/Documentation/_nex_touch_8h_source.html mode change 100644 => 100755 doc/Documentation/_nex_waveform_8cpp.html mode change 100644 => 100755 doc/Documentation/_nex_waveform_8cpp_source.html mode change 100644 => 100755 doc/Documentation/_nex_waveform_8h.html mode change 100644 => 100755 doc/Documentation/_nex_waveform_8h_source.html mode change 100644 => 100755 doc/Documentation/_nextion_8h.html mode change 100644 => 100755 doc/Documentation/_nextion_8h_source.html mode change 100644 => 100755 doc/Documentation/annotated.html mode change 100644 => 100755 doc/Documentation/annotated.js mode change 100644 => 100755 doc/Documentation/bc_s.png mode change 100644 => 100755 doc/Documentation/bdwn.png mode change 100644 => 100755 doc/Documentation/class_nex_button-members.html mode change 100644 => 100755 doc/Documentation/class_nex_button.html mode change 100644 => 100755 doc/Documentation/class_nex_button.js mode change 100644 => 100755 doc/Documentation/class_nex_crop-members.html mode change 100644 => 100755 doc/Documentation/class_nex_crop.html mode change 100644 => 100755 doc/Documentation/class_nex_crop.js mode change 100644 => 100755 doc/Documentation/class_nex_d_s_button-members.html mode change 100644 => 100755 doc/Documentation/class_nex_d_s_button.html mode change 100644 => 100755 doc/Documentation/class_nex_d_s_button.js delete mode 100644 doc/Documentation/class_nex_d_s_button__coll__graph.dot delete mode 100644 doc/Documentation/class_nex_d_s_button__inherit__graph.dot mode change 100644 => 100755 doc/Documentation/class_nex_gauge-members.html mode change 100644 => 100755 doc/Documentation/class_nex_gauge.html mode change 100644 => 100755 doc/Documentation/class_nex_gauge.js mode change 100644 => 100755 doc/Documentation/class_nex_hotspot-members.html mode change 100644 => 100755 doc/Documentation/class_nex_hotspot.html mode change 100644 => 100755 doc/Documentation/class_nex_hotspot.js mode change 100644 => 100755 doc/Documentation/class_nex_number-members.html mode change 100644 => 100755 doc/Documentation/class_nex_number.html mode change 100644 => 100755 doc/Documentation/class_nex_number.js delete mode 100644 doc/Documentation/class_nex_number__coll__graph.dot delete mode 100644 doc/Documentation/class_nex_number__inherit__graph.dot mode change 100644 => 100755 doc/Documentation/class_nex_object-members.html mode change 100644 => 100755 doc/Documentation/class_nex_object.html mode change 100644 => 100755 doc/Documentation/class_nex_object.js mode change 100644 => 100755 doc/Documentation/class_nex_page-members.html mode change 100644 => 100755 doc/Documentation/class_nex_page.html mode change 100644 => 100755 doc/Documentation/class_nex_page.js mode change 100644 => 100755 doc/Documentation/class_nex_picture-members.html mode change 100644 => 100755 doc/Documentation/class_nex_picture.html mode change 100644 => 100755 doc/Documentation/class_nex_picture.js mode change 100644 => 100755 doc/Documentation/class_nex_progress_bar-members.html mode change 100644 => 100755 doc/Documentation/class_nex_progress_bar.html mode change 100644 => 100755 doc/Documentation/class_nex_progress_bar.js mode change 100644 => 100755 doc/Documentation/class_nex_slider-members.html mode change 100644 => 100755 doc/Documentation/class_nex_slider.html mode change 100644 => 100755 doc/Documentation/class_nex_slider.js mode change 100644 => 100755 doc/Documentation/class_nex_text-members.html mode change 100644 => 100755 doc/Documentation/class_nex_text.html mode change 100644 => 100755 doc/Documentation/class_nex_text.js mode change 100644 => 100755 doc/Documentation/class_nex_timer-members.html mode change 100644 => 100755 doc/Documentation/class_nex_timer.html mode change 100644 => 100755 doc/Documentation/class_nex_timer.js delete mode 100644 doc/Documentation/class_nex_timer__coll__graph.dot delete mode 100644 doc/Documentation/class_nex_timer__inherit__graph.dot delete mode 100644 doc/Documentation/class_nex_timer_a365d08df4623ce8a146e73ff9204d5cb_cgraph.dot delete mode 100644 doc/Documentation/class_nex_timer_ae6f1ae95ef40b8bc6f482185b1ec5175_cgraph.dot mode change 100644 => 100755 doc/Documentation/class_nex_touch-members.html mode change 100644 => 100755 doc/Documentation/class_nex_touch.html mode change 100644 => 100755 doc/Documentation/class_nex_touch.js delete mode 100644 doc/Documentation/class_nex_touch_a4da1c4fcdfadb7eabfb9ccaba9ecad11_icgraph.dot delete mode 100644 doc/Documentation/class_nex_touch_af656640c1078a553287a68bf792dd291_icgraph.dot mode change 100644 => 100755 doc/Documentation/class_nex_waveform-members.html mode change 100644 => 100755 doc/Documentation/class_nex_waveform.html mode change 100644 => 100755 doc/Documentation/class_nex_waveform.js mode change 100644 => 100755 doc/Documentation/classes.html mode change 100644 => 100755 doc/Documentation/closed.png mode change 100644 => 100755 doc/Documentation/dir_2af451c22587252d0014dbc596e2e19a.html mode change 100644 => 100755 doc/Documentation/dir_2af451c22587252d0014dbc596e2e19a.js delete mode 100644 doc/Documentation/dir_2af451c22587252d0014dbc596e2e19a_dep.dot mode change 100644 => 100755 doc/Documentation/dir_3a828b7214103d705cc83e20f29bdad9.html mode change 100644 => 100755 doc/Documentation/dir_3a828b7214103d705cc83e20f29bdad9.js delete mode 100644 doc/Documentation/dir_3a828b7214103d705cc83e20f29bdad9_dep.dot mode change 100644 => 100755 doc/Documentation/dir_472f54fb1d9b74971d8e15d62f212bd3.html mode change 100644 => 100755 doc/Documentation/dir_472f54fb1d9b74971d8e15d62f212bd3.js mode change 100644 => 100755 doc/Documentation/dir_4b43661efaa18af91f213d2681ebd37e.html mode change 100644 => 100755 doc/Documentation/dir_4b43661efaa18af91f213d2681ebd37e.js mode change 100644 => 100755 doc/Documentation/dir_53835f0dfcb7abf9d97bc46682fab859.html mode change 100644 => 100755 doc/Documentation/dir_53835f0dfcb7abf9d97bc46682fab859.js delete mode 100644 doc/Documentation/dir_53835f0dfcb7abf9d97bc46682fab859_dep.dot mode change 100644 => 100755 doc/Documentation/dir_7962cac16a99e8bbaaea18abede03fcb.html mode change 100644 => 100755 doc/Documentation/dir_7962cac16a99e8bbaaea18abede03fcb.js mode change 100644 => 100755 doc/Documentation/dir_8dcbebf38b229bfa7bb34d68bf824093.html mode change 100644 => 100755 doc/Documentation/dir_8dcbebf38b229bfa7bb34d68bf824093.js mode change 100644 => 100755 doc/Documentation/dir_9bbf8342b0f9a157b7af08fe1412fc17.html mode change 100644 => 100755 doc/Documentation/dir_9bbf8342b0f9a157b7af08fe1412fc17.js mode change 100644 => 100755 doc/Documentation/dir_a48692e2802a027399b146b680655303.html mode change 100644 => 100755 doc/Documentation/dir_a48692e2802a027399b146b680655303.js mode change 100644 => 100755 doc/Documentation/dir_c918e8bf3fc71f849978cdb0d900e61c.html mode change 100644 => 100755 doc/Documentation/dir_c918e8bf3fc71f849978cdb0d900e61c.js mode change 100644 => 100755 doc/Documentation/dir_ce36ac18ad3deaf5eae0bd2e09775a7d.html mode change 100644 => 100755 doc/Documentation/dir_ce36ac18ad3deaf5eae0bd2e09775a7d.js mode change 100644 => 100755 doc/Documentation/dir_d28a4824dc47e487b107a5db32ef43c4.html mode change 100644 => 100755 doc/Documentation/dir_d28a4824dc47e487b107a5db32ef43c4.js mode change 100644 => 100755 doc/Documentation/dir_f3d39c87bc262720c50d5e3885667b8a.html mode change 100644 => 100755 doc/Documentation/dir_f3d39c87bc262720c50d5e3885667b8a.js mode change 100644 => 100755 doc/Documentation/dir_f76977d9ffe8ddf3ad01f3d689aa5df4.html mode change 100644 => 100755 doc/Documentation/dir_f76977d9ffe8ddf3ad01f3d689aa5df4.js mode change 100644 => 100755 doc/Documentation/doxygen.css mode change 100644 => 100755 doc/Documentation/doxygen.png mode change 100644 => 100755 doc/Documentation/doxygen_8h.html mode change 100644 => 100755 doc/Documentation/doxygen_8h_source.html mode change 100644 => 100755 doc/Documentation/dynsections.js mode change 100644 => 100755 doc/Documentation/examples.html mode change 100644 => 100755 doc/Documentation/examples.js mode change 100644 => 100755 doc/Documentation/files.html mode change 100644 => 100755 doc/Documentation/files.js mode change 100644 => 100755 doc/Documentation/ftv2blank.png mode change 100644 => 100755 doc/Documentation/ftv2doc.png mode change 100644 => 100755 doc/Documentation/ftv2folderclosed.png mode change 100644 => 100755 doc/Documentation/ftv2folderopen.png mode change 100644 => 100755 doc/Documentation/ftv2lastnode.png mode change 100644 => 100755 doc/Documentation/ftv2link.png mode change 100644 => 100755 doc/Documentation/ftv2mlastnode.png mode change 100644 => 100755 doc/Documentation/ftv2mnode.png mode change 100644 => 100755 doc/Documentation/ftv2node.png mode change 100644 => 100755 doc/Documentation/ftv2plastnode.png mode change 100644 => 100755 doc/Documentation/ftv2pnode.png mode change 100644 => 100755 doc/Documentation/ftv2splitbar.png mode change 100644 => 100755 doc/Documentation/ftv2vertline.png mode change 100644 => 100755 doc/Documentation/functions.html mode change 100644 => 100755 doc/Documentation/functions_func.html mode change 100644 => 100755 doc/Documentation/globals.html mode change 100644 => 100755 doc/Documentation/globals_defs.html mode change 100644 => 100755 doc/Documentation/globals_func.html mode change 100644 => 100755 doc/Documentation/globals_type.html mode change 100644 => 100755 doc/Documentation/group___component.html mode change 100644 => 100755 doc/Documentation/group___component.js mode change 100644 => 100755 doc/Documentation/group___configuration.html mode change 100644 => 100755 doc/Documentation/group___configuration.js mode change 100644 => 100755 doc/Documentation/group___core_a_p_i.html mode change 100644 => 100755 doc/Documentation/group___core_a_p_i.js mode change 100644 => 100755 doc/Documentation/group___get_started.html mode change 100644 => 100755 doc/Documentation/group___touch_event.html mode change 100644 => 100755 doc/Documentation/group___touch_event.js mode change 100644 => 100755 doc/Documentation/hierarchy.html mode change 100644 => 100755 doc/Documentation/hierarchy.js mode change 100644 => 100755 doc/Documentation/index.html mode change 100644 => 100755 doc/Documentation/jquery.js mode change 100644 => 100755 doc/Documentation/md_readme.html mode change 100644 => 100755 doc/Documentation/md_release_notes.html mode change 100644 => 100755 doc/Documentation/modules.html mode change 100644 => 100755 doc/Documentation/modules.js mode change 100644 => 100755 doc/Documentation/nav_f.png mode change 100644 => 100755 doc/Documentation/nav_g.png mode change 100644 => 100755 doc/Documentation/nav_h.png mode change 100644 => 100755 doc/Documentation/navtree.css mode change 100644 => 100755 doc/Documentation/navtree.js mode change 100644 => 100755 doc/Documentation/navtreeindex0.js mode change 100644 => 100755 doc/Documentation/open.png mode change 100644 => 100755 doc/Documentation/pages.html mode change 100644 => 100755 doc/Documentation/readme_8md_source.html mode change 100644 => 100755 doc/Documentation/release__notes_8md_source.html mode change 100644 => 100755 doc/Documentation/resize.js mode change 100644 => 100755 doc/Documentation/sync_off.png mode change 100644 => 100755 doc/Documentation/sync_on.png mode change 100644 => 100755 doc/Documentation/tab_a.png mode change 100644 => 100755 doc/Documentation/tab_b.png mode change 100644 => 100755 doc/Documentation/tab_h.png mode change 100644 => 100755 doc/Documentation/tab_s.png mode change 100644 => 100755 doc/Documentation/tabs.css mode change 100644 => 100755 doxygen.doxy diff --git a/NexButton.h b/NexButton.h index 838f246..853c1d8 100755 --- a/NexButton.h +++ b/NexButton.h @@ -58,201 +58,180 @@ public: /* methods */ */ bool setText(const char *buffer); - /* - * Get bco attribute of component - * - * @param number - buffer storing data return - * @return the length of the data - */ - + /** + * 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 - */ - + /** + * 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 - */ + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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); }; /** diff --git a/NexCheckbox.h b/NexCheckbox.h index ec10d00..dbde242 100755 --- a/NexCheckbox.h +++ b/NexCheckbox.h @@ -41,58 +41,52 @@ public: /* methods */ */ 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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); }; diff --git a/NexDualStateButton.h b/NexDualStateButton.h index cd9446b..6c70d91 100755 --- a/NexDualStateButton.h +++ b/NexDualStateButton.h @@ -44,8 +44,7 @@ public: /* methods */ /** * Get number attribute of component. * - * @param buffer - buffer storing text returned. - * @param len - length of buffer. + * @param number - buffer storing text returned. * @return The real length of text returned. */ bool getValue(uint32_t *number); @@ -53,7 +52,7 @@ public: /* methods */ /** * Set number attribute of component. * - * @param buffer - number buffer. + * @param number - number buffer. * @return true if success, false for failure. */ bool setValue(uint32_t number); @@ -65,7 +64,6 @@ public: /* methods */ * @param len - length of buffer. * @return The real length of text returned. */ - uint16_t getText(char *buffer, uint16_t len); /** @@ -74,187 +72,166 @@ public: /* methods */ * @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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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); }; /** diff --git a/NexGauge.h b/NexGauge.h index ee1d877..ed8a868 100755 --- a/NexGauge.h +++ b/NexGauge.h @@ -55,76 +55,68 @@ public: /* methods */ */ bool setValue(uint32_t number); - /* - * Get bco attribute of component - * - * @param number - buffer storing data retur - * @return the length of the data - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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); }; diff --git a/NexNumber.h b/NexNumber.h index 63446ff..e2b47d8 100755 --- a/NexNumber.h +++ b/NexNumber.h @@ -38,8 +38,7 @@ public: /* methods */ /** * Get number attribute of component. * - * @param buffer - buffer storing text returned. - * @param len - length of buffer. + * @param number - buffer storing text returned. * @return The real length of text returned. */ bool getValue(uint32_t *number); @@ -47,153 +46,137 @@ public: /* methods */ /** * Set number attribute of component. * - * @param buffer - number buffer. + * @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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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); }; diff --git a/NexProgressBar.h b/NexProgressBar.h index 1b28330..0568609 100755 --- a/NexProgressBar.h +++ b/NexProgressBar.h @@ -55,40 +55,36 @@ public: /* methods */ */ bool setValue(uint32_t number); - /* - * Get bco attribute of component - * - * @param number - buffer storing data retur - * @return the length of the data - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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); }; diff --git a/NexRadio.h b/NexRadio.h index f3bf3f7..073937e 100755 --- a/NexRadio.h +++ b/NexRadio.h @@ -41,58 +41,52 @@ public: /* methods */ */ 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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); }; diff --git a/NexScrolltext.h b/NexScrolltext.h index 9b59bd4..35ffbeb 100755 --- a/NexScrolltext.h +++ b/NexScrolltext.h @@ -52,184 +52,164 @@ public: /* methods */ */ bool setText(const char *buffer); - /* - * Get bco attribute of component - * - * @param number - buffer storing data retur - * @return the length of the data - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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); diff --git a/NexSlider.h b/NexSlider.h index a85fa57..2404323 100755 --- a/NexSlider.h +++ b/NexSlider.h @@ -55,112 +55,100 @@ public: /* methods */ */ bool setValue(uint32_t number); - /* - * Get bco attribute of component - * - * @param number - buffer storing data retur - * @return the length of the data - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * Set minval attribute of component + * + * @param number - To set up the data + * @return true if success, false for failure + */ bool setMinval(uint32_t number); }; /** diff --git a/NexText.h b/NexText.h index e5afd2d..12b6b69 100755 --- a/NexText.h +++ b/NexText.h @@ -52,130 +52,116 @@ public: /* methods */ */ bool setText(const char *buffer); - /* - * Get bco attribute of component - * - * @param number - buffer storing data retur - * @return the length of the data - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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); }; diff --git a/NexTimer.h b/NexTimer.h index 407a29c..62f6333 100755 --- a/NexTimer.h +++ b/NexTimer.h @@ -96,22 +96,20 @@ public: /* methods */ */ bool disable(void); - /* - * Get tim attribute of component - * - * @param number - buffer storing data retur - * @return the length of the data - */ - + /** + * 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 - */ - + /** + * 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); }; diff --git a/NexUpload.h b/NexUpload.h old mode 100644 new mode 100755 index c3c57b1..7129128 --- a/NexUpload.h +++ b/NexUpload.h @@ -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); diff --git a/NexVariable.h b/NexVariable.h index 77f553c..60e6bf9 100755 --- a/NexVariable.h +++ b/NexVariable.h @@ -58,22 +58,20 @@ public: /* methods */ */ bool setText(const char *buffer); - /* - * Get val attribute of component - * - * @param number - buffer storing data retur - * @return the length of the data - */ - + /** + * 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 - */ - + /** + * Set val attribute of component + * + * @param number - To set up the data + * @return true if success, false for failure + */ bool setValue(uint32_t number); }; diff --git a/NexWaveform.h b/NexWaveform.h index f7ac20e..499026b 100755 --- a/NexWaveform.h +++ b/NexWaveform.h @@ -45,94 +45,84 @@ public: /* methods */ */ 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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 - */ - + /** + * 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); }; diff --git a/doc/Documentation/Logo.png b/doc/Documentation/Logo.png old mode 100644 new mode 100755 diff --git a/doc/Documentation/_comp_button_8ino-example.html b/doc/Documentation/_comp_button_8ino-example.html old mode 100644 new mode 100755 index 8bd9847..c305f54 --- a/doc/Documentation/_comp_button_8ino-example.html +++ b/doc/Documentation/_comp_button_8ino-example.html @@ -152,7 +152,7 @@ This program is free software; you can redistribute it and/or modify it under th @@ -81,20 +81,8 @@ $(document).ready(function(){initNavTree('class_nex_number.html','');}); More...

#include <NexNumber.h>

-
-Inheritance diagram for NexNumber:
-
-
Inheritance graph
- - -
[legend]
-
-Collaboration diagram for NexNumber:
-
-
Collaboration graph
- - -
[legend]
+ +

Inherits NexTouch.

@@ -107,6 +95,54 @@ Public Member Functions + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -182,6 +218,222 @@ Public Member Functions

Member Function Documentation

+ +
+
+

Public Member Functions

bool setValue (uint32_t number)
 Set number attribute of component. More...
 
uint32_t Get_background_color_bco (uint32_t *number)
 Get bco attribute of component. More...
 
bool Set_background_color_bco (uint32_t number)
 Set bco attribute of component. More...
 
uint32_t Get_font_color_pco (uint32_t *number)
 Get pco attribute of component. More...
 
bool Set_font_color_pco (uint32_t number)
 Set pco attribute of component. More...
 
uint32_t Get_place_xcen (uint32_t *number)
 Get xcen attribute of component. More...
 
bool Set_place_xcen (uint32_t number)
 Set xcen attribute of component. More...
 
uint32_t Get_place_ycen (uint32_t *number)
 Get ycen attribute of component. More...
 
bool Set_place_ycen (uint32_t number)
 Set ycen attribute of component. More...
 
uint32_t getFont (uint32_t *number)
 Get font attribute of component. More...
 
bool setFont (uint32_t number)
 Set font attribute of component. More...
 
uint32_t Get_number_lenth (uint32_t *number)
 Get lenth attribute of component. More...
 
bool Set_number_lenth (uint32_t number)
 Set lenth attribute of component. More...
 
uint32_t Get_background_crop_picc (uint32_t *number)
 Get picc attribute of component. More...
 
bool Set_background_crop_picc (uint32_t number)
 Set picc attribute of component. More...
 
uint32_t Get_background_image_pic (uint32_t *number)
 Get pic attribute of component. More...
 
bool Set_background_image_pic (uint32_t number)
 Set pic attribute of component. More...
 
- Public Member Functions inherited from NexTouch
 NexTouch (uint8_t pid, uint8_t cid, const char *name)
 Constructor. More...
+ + + + + + + +
uint32_t NexNumber::Get_background_color_bco (uint32_t * number)
+
+ +

Get bco attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 45 of file NexNumber.cpp.

+ +
+ + +
+
+ + + + + + + + +
uint32_t NexNumber::Get_background_crop_picc (uint32_t * number)
+
+ +

Get picc attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 213 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexNumber::Get_background_image_pic (uint32_t * number)
+
+ +

Get pic attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 241 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexNumber::Get_font_color_pco (uint32_t * number)
+
+ +

Get pco attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 73 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexNumber::Get_number_lenth (uint32_t * number)
+
+ +

Get lenth attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 185 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexNumber::Get_place_xcen (uint32_t * number)
+
+ +

Get xcen attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 101 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexNumber::Get_place_ycen (uint32_t * number)
+
+ +

Get ycen attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 129 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexNumber::getFont (uint32_t * number)
+
+ +

Get font attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 157 of file NexNumber.cpp.

+ +
+
@@ -199,8 +451,7 @@ Public Member Functions

Get number attribute of component.

Parameters
- - +
buffer- buffer storing text returned.
len- length of buffer.
number- buffer storing text returned.
@@ -209,6 +460,222 @@ Public Member Functions

Definition at line 22 of file NexNumber.cpp.

+
+
+ +
+
+ + + + + + + + +
bool NexNumber::Set_background_color_bco (uint32_t number)
+
+ +

Set bco attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 55 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexNumber::Set_background_crop_picc (uint32_t number)
+
+ +

Set picc attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 223 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexNumber::Set_background_image_pic (uint32_t number)
+
+ +

Set pic attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 250 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexNumber::Set_font_color_pco (uint32_t number)
+
+ +

Set pco attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 83 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexNumber::Set_number_lenth (uint32_t number)
+
+ +

Set lenth attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 195 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexNumber::Set_place_xcen (uint32_t number)
+
+ +

Set xcen attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 111 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexNumber::Set_place_ycen (uint32_t number)
+
+ +

Set ycen attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 139 of file NexNumber.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexNumber::setFont (uint32_t number)
+
+ +

Set font attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 167 of file NexNumber.cpp.

+
@@ -228,7 +695,7 @@ Public Member Functions

Set number attribute of component.

Parameters
- +
buffer- number buffer.
number- number buffer.
@@ -249,7 +716,7 @@ Public Member Functions @@ -83,7 +83,7 @@ $(document).ready(function(){initNavTree('class_nex_object.html','');}); @@ -81,13 +81,8 @@ $(document).ready(function(){initNavTree('class_nex_object.html','');}); More...

#include <NexObject.h>

-
-Inheritance diagram for NexObject:
-
-
Inheritance graph
- - -
[legend]
+ +

Inherited by NexGauge, NexProgressBar, NexTouch, and NexWaveform.

@@ -180,7 +175,7 @@ Public Member Functions @@ -90,7 +90,7 @@ $(document).ready(function(){initNavTree('class_nex_page.html','');}); @@ -81,20 +81,8 @@ $(document).ready(function(){initNavTree('class_nex_page.html','');}); More...

#include <NexPage.h>

-
-Inheritance diagram for NexPage:
-
-
Inheritance graph
- - -
[legend]
-
-Collaboration diagram for NexPage:
-
-
Collaboration graph
- - -
[legend]
+ +

Inherits NexTouch.

Public Member Functions

@@ -211,7 +199,7 @@ Public Member Functions @@ -80,18 +80,20 @@ $(document).ready(function(){initNavTree('class_nex_picture.html','');}); - - - - - + + + + + + +

Public Member Functions

attachPush(NexTouchEventCb push, void *ptr=NULL)NexTouch
detachPop(void)NexTouch
detachPush(void)NexTouch
getPic(uint32_t *number)NexPicture
NexObject(uint8_t pid, uint8_t cid, const char *name)NexObject
NexPicture(uint8_t pid, uint8_t cid, const char *name)NexPicture
NexTouch(uint8_t pid, uint8_t cid, const char *name)NexTouch
printObjInfo(void)NexObject
Get_background_image_pic(uint32_t *number)NexPicture
getPic(uint32_t *number)NexPicture
NexObject(uint8_t pid, uint8_t cid, const char *name)NexObject
NexPicture(uint8_t pid, uint8_t cid, const char *name)NexPicture
NexTouch(uint8_t pid, uint8_t cid, const char *name)NexTouch
printObjInfo(void)NexObject
Set_background_image_pic(uint32_t number)NexPicture
setPic(uint32_t number)NexPicture
@@ -81,26 +81,20 @@ $(document).ready(function(){initNavTree('class_nex_picture.html','');}); More...

#include <NexPicture.h>

-
-Inheritance diagram for NexPicture:
-
-
Inheritance graph
- - -
[legend]
-
-Collaboration diagram for NexPicture:
-
-
Collaboration graph
- - -
[legend]
+ +

Inherits NexTouch.

+ + + + + + @@ -182,6 +176,39 @@ Public Member Functions

Member Function Documentation

+ +
+
+

Public Member Functions

 NexPicture (uint8_t pid, uint8_t cid, const char *name)
 Constructor. More...
 
bool Get_background_image_pic (uint32_t *number)
 Get picture's number. More...
 
bool Set_background_image_pic (uint32_t number)
 Set picture's number. More...
 
bool getPic (uint32_t *number)
 Get picture's number. More...
 
+ + + + + + + +
bool NexPicture::Get_background_image_pic (uint32_t * number)
+
+ +

Get picture's number.

+
Parameters
+ + +
number- an output parameter to save picture number.
+
+
+
Return values
+ + + +
true- success.
false- failed.
+
+
+ +

Definition at line 23 of file NexPicture.cpp.

+ +
+
@@ -212,7 +239,40 @@ Public Member Functions
Examples:
CompPicture.ino.
-

Definition at line 23 of file NexPicture.cpp.

+

Definition at line 46 of file NexPicture.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexPicture::Set_background_image_pic (uint32_t number)
+
+ +

Set picture's number.

+
Parameters
+ + +
number-the picture number.
+
+
+
Return values
+ + + +
true- success.
false- failed.
+
+
+ +

Definition at line 32 of file NexPicture.cpp.

@@ -246,7 +306,7 @@ Public Member Functions
Examples:
CompPicture.ino.
-

Definition at line 32 of file NexPicture.cpp.

+

Definition at line 55 of file NexPicture.cpp.

@@ -260,7 +320,7 @@ Public Member Functions @@ -76,17 +76,21 @@ $(document).ready(function(){initNavTree('class_nex_progress_bar.html','');});

This is the complete list of members for NexProgressBar, including all inherited members.

+ + + +
Get_background_color_bco(uint32_t *number)NexProgressBar
Get_font_color_pco(uint32_t *number)NexProgressBar
getValue(uint32_t *number)NexProgressBar
NexObject(uint8_t pid, uint8_t cid, const char *name)NexObject
NexProgressBar(uint8_t pid, uint8_t cid, const char *name)NexProgressBar
printObjInfo(void)NexObject
Set_background_color_bco(uint32_t number)NexProgressBar
Set_font_color_pco(uint32_t number)NexProgressBar
setValue(uint32_t number)NexProgressBar
@@ -81,20 +81,8 @@ $(document).ready(function(){initNavTree('class_nex_progress_bar.html','');}); More...

#include <NexProgressBar.h>

-
-Inheritance diagram for NexProgressBar:
-
-
Inheritance graph
- - -
[legend]
-
-Collaboration diagram for NexProgressBar:
-
-
Collaboration graph
- - -
[legend]
+ +

Inherits NexObject.

@@ -107,6 +95,18 @@ Public Member Functions + + + + + + + + + + + + @@ -166,6 +166,60 @@ Public Member Functions

Member Function Documentation

+ +
+
+

Public Member Functions

bool setValue (uint32_t number)
 Set the value of progress bar. More...
 
uint32_t Get_background_color_bco (uint32_t *number)
 Get bco attribute of component. More...
 
bool Set_background_color_bco (uint32_t number)
 Set bco attribute of component. More...
 
uint32_t Get_font_color_pco (uint32_t *number)
 Get pco attribute of component. More...
 
bool Set_font_color_pco (uint32_t number)
 Set pco attribute of component. More...
 
- Public Member Functions inherited from NexObject
 NexObject (uint8_t pid, uint8_t cid, const char *name)
 Constructor. More...
+ + + + + + + +
uint32_t NexProgressBar::Get_background_color_bco (uint32_t * number)
+
+ +

Get bco attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 46 of file NexProgressBar.cpp.

+ +
+ + +
+
+ + + + + + + + +
uint32_t NexProgressBar::Get_font_color_pco (uint32_t * number)
+
+ +

Get pco attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 74 of file NexProgressBar.cpp.

+ +
+
@@ -198,6 +252,60 @@ Public Member Functions

Definition at line 23 of file NexProgressBar.cpp.

+
+
+ +
+
+ + + + + + + + +
bool NexProgressBar::Set_background_color_bco (uint32_t number)
+
+ +

Set bco attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 56 of file NexProgressBar.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexProgressBar::Set_font_color_pco (uint32_t number)
+
+ +

Set pco attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 84 of file NexProgressBar.cpp.

+
@@ -244,7 +352,7 @@ Public Member Functions @@ -80,18 +80,30 @@ $(document).ready(function(){initNavTree('class_nex_slider.html','');}); attachPush(NexTouchEventCb push, void *ptr=NULL)NexTouch detachPop(void)NexTouch detachPush(void)NexTouch + Get_background_color_bco(uint32_t *number)NexSlider + Get_cursor_height_hig(uint32_t *number)NexSlider + Get_font_color_pco(uint32_t *number)NexSlider + Get_pointer_thickness_wid(uint32_t *number)NexSlider + getMaxval(uint32_t *number)NexSlider + getMinval(uint32_t *number)NexSlider getValue(uint32_t *number)NexSlider NexObject(uint8_t pid, uint8_t cid, const char *name)NexObject NexSlider(uint8_t pid, uint8_t cid, const char *name)NexSlider NexTouch(uint8_t pid, uint8_t cid, const char *name)NexTouch printObjInfo(void)NexObject + Set_background_color_bco(uint32_t number)NexSlider + Set_cursor_height_hig(uint32_t number)NexSlider + Set_font_color_pco(uint32_t number)NexSlider + Set_pointer_thickness_wid(uint32_t number)NexSlider + setMaxval(uint32_t number)NexSlider + setMinval(uint32_t number)NexSlider setValue(uint32_t number)NexSlider @@ -81,20 +81,8 @@ $(document).ready(function(){initNavTree('class_nex_slider.html','');}); More...

#include <NexSlider.h>

-
-Inheritance diagram for NexSlider:
-
-
Inheritance graph
- - -
[legend]
-
-Collaboration diagram for NexSlider:
-
-
Collaboration graph
- - -
[legend]
+ +

Inherits NexTouch.

@@ -107,6 +95,42 @@ Public Member Functions + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -182,6 +206,168 @@ Public Member Functions

Member Function Documentation

+ +
+
+

Public Member Functions

bool setValue (uint32_t number)
 Set the value of slider. More...
 
uint32_t Get_background_color_bco (uint32_t *number)
 Get bco attribute of component. More...
 
bool Set_background_color_bco (uint32_t number)
 Set bco attribute of component. More...
 
uint32_t Get_font_color_pco (uint32_t *number)
 Get pco attribute of component. More...
 
bool Set_font_color_pco (uint32_t number)
 Set pco attribute of component. More...
 
uint32_t Get_pointer_thickness_wid (uint32_t *number)
 Get wid attribute of component. More...
 
bool Set_pointer_thickness_wid (uint32_t number)
 Set wid attribute of component. More...
 
uint32_t Get_cursor_height_hig (uint32_t *number)
 Get hig attribute of component. More...
 
bool Set_cursor_height_hig (uint32_t number)
 Set hig attribute of component. More...
 
uint32_t getMaxval (uint32_t *number)
 Get maxval attribute of component. More...
 
bool setMaxval (uint32_t number)
 Set maxval attribute of component. More...
 
uint32_t getMinval (uint32_t *number)
 Get minval attribute of component. More...
 
bool setMinval (uint32_t number)
 Set minval attribute of component. More...
 
- Public Member Functions inherited from NexTouch
 NexTouch (uint8_t pid, uint8_t cid, const char *name)
 Constructor. More...
+ + + + + + + +
uint32_t NexSlider::Get_background_color_bco (uint32_t * number)
+
+ +

Get bco attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 45 of file NexSlider.cpp.

+ +
+ + +
+
+ + + + + + + + +
uint32_t NexSlider::Get_cursor_height_hig (uint32_t * number)
+
+ +

Get hig attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 129 of file NexSlider.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexSlider::Get_font_color_pco (uint32_t * number)
+
+ +

Get pco attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 73 of file NexSlider.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexSlider::Get_pointer_thickness_wid (uint32_t * number)
+
+ +

Get wid attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 101 of file NexSlider.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexSlider::getMaxval (uint32_t * number)
+
+ +

Get maxval attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 157 of file NexSlider.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexSlider::getMinval (uint32_t * number)
+
+ +

Get minval attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 185 of file NexSlider.cpp.

+ +
+
@@ -214,6 +400,168 @@ Public Member Functions

Definition at line 22 of file NexSlider.cpp.

+
+
+ +
+
+ + + + + + + + +
bool NexSlider::Set_background_color_bco (uint32_t number)
+
+ +

Set bco attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 55 of file NexSlider.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexSlider::Set_cursor_height_hig (uint32_t number)
+
+ +

Set hig attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 139 of file NexSlider.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexSlider::Set_font_color_pco (uint32_t number)
+
+ +

Set pco attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 83 of file NexSlider.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexSlider::Set_pointer_thickness_wid (uint32_t number)
+
+ +

Set wid attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 111 of file NexSlider.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexSlider::setMaxval (uint32_t number)
+
+ +

Set maxval attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 167 of file NexSlider.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexSlider::setMinval (uint32_t number)
+
+ +

Set minval attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 195 of file NexSlider.cpp.

+
@@ -259,7 +607,7 @@ Public Member Functions @@ -80,18 +80,32 @@ $(document).ready(function(){initNavTree('class_nex_text.html','');}); attachPush(NexTouchEventCb push, void *ptr=NULL)NexTouch detachPop(void)NexTouch detachPush(void)NexTouch - getText(char *buffer, uint16_t len)NexText - NexObject(uint8_t pid, uint8_t cid, const char *name)NexObject - NexText(uint8_t pid, uint8_t cid, const char *name)NexText - NexTouch(uint8_t pid, uint8_t cid, const char *name)NexTouch - printObjInfo(void)NexObject + Get_background_color_bco(uint32_t *number)NexText + Get_background_crop_picc(uint32_t *number)NexText + Get_background_image_pic(uint32_t *number)NexText + Get_font_color_pco(uint32_t *number)NexText + Get_place_xcen(uint32_t *number)NexText + Get_place_ycen(uint32_t *number)NexText + getFont(uint32_t *number)NexText + getText(char *buffer, uint16_t len)NexText + NexObject(uint8_t pid, uint8_t cid, const char *name)NexObject + NexText(uint8_t pid, uint8_t cid, const char *name)NexText + NexTouch(uint8_t pid, uint8_t cid, const char *name)NexTouch + printObjInfo(void)NexObject + Set_background_color_bco(uint32_t number)NexText + Set_background_crop_picc(uint32_t number)NexText + Set_background_image_pic(uint32_t number)NexText + Set_font_color_pco(uint32_t number)NexText + Set_place_xcen(uint32_t number)NexText + Set_place_ycen(uint32_t number)NexText + setFont(uint32_t number)NexText setText(const char *buffer)NexText @@ -81,20 +81,8 @@ $(document).ready(function(){initNavTree('class_nex_text.html','');}); More...

#include <NexText.h>

-
-Inheritance diagram for NexText:
-
-
Inheritance graph
- - -
[legend]
-
-Collaboration diagram for NexText:
-
-
Collaboration graph
- - -
[legend]
+ +

Inherits NexTouch.

@@ -107,6 +95,48 @@ Public Member Functions + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -182,6 +212,195 @@ Public Member Functions

Member Function Documentation

+ +
+
+

Public Member Functions

bool setText (const char *buffer)
 Set text attribute of component. More...
 
uint32_t Get_background_color_bco (uint32_t *number)
 Get bco attribute of component. More...
 
bool Set_background_color_bco (uint32_t number)
 Set bco attribute of component. More...
 
uint32_t Get_font_color_pco (uint32_t *number)
 Get pco attribute of component. More...
 
bool Set_font_color_pco (uint32_t number)
 Set pco attribute of component. More...
 
uint32_t Get_place_xcen (uint32_t *number)
 Get xcen attribute of component. More...
 
bool Set_place_xcen (uint32_t number)
 Set xcen attribute of component. More...
 
uint32_t Get_place_ycen (uint32_t *number)
 Get ycen attribute of component. More...
 
bool Set_place_ycen (uint32_t number)
 Set ycen attribute of component. More...
 
uint32_t getFont (uint32_t *number)
 Get font attribute of component. More...
 
bool setFont (uint32_t number)
 Set font attribute of component. More...
 
uint32_t Get_background_crop_picc (uint32_t *number)
 Get picc attribute of component. More...
 
bool Set_background_crop_picc (uint32_t number)
 Set picc attribute of component. More...
 
uint32_t Get_background_image_pic (uint32_t *number)
 Get pic attribute of component. More...
 
bool Set_background_image_pic (uint32_t number)
 Set pic attribute of component. More...
 
- Public Member Functions inherited from NexTouch
 NexTouch (uint8_t pid, uint8_t cid, const char *name)
 Constructor. More...
+ + + + + + + +
uint32_t NexText::Get_background_color_bco (uint32_t * number)
+
+ +

Get bco attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 43 of file NexText.cpp.

+ +
+ + +
+
+ + + + + + + + +
uint32_t NexText::Get_background_crop_picc (uint32_t * number)
+
+ +

Get picc attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 183 of file NexText.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexText::Get_background_image_pic (uint32_t * number)
+
+ +

Get pic attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 211 of file NexText.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexText::Get_font_color_pco (uint32_t * number)
+
+ +

Get pco attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 71 of file NexText.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexText::Get_place_xcen (uint32_t * number)
+
+ +

Get xcen attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 99 of file NexText.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexText::Get_place_ycen (uint32_t * number)
+
+ +

Get ycen attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 127 of file NexText.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexText::getFont (uint32_t * number)
+
+ +

Get font attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 155 of file NexText.cpp.

+ +
+
@@ -219,6 +438,195 @@ Public Member Functions

Definition at line 22 of file NexText.cpp.

+
+
+ +
+
+ + + + + + + + +
bool NexText::Set_background_color_bco (uint32_t number)
+
+ +

Set bco attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 53 of file NexText.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexText::Set_background_crop_picc (uint32_t number)
+
+ +

Set picc attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 193 of file NexText.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexText::Set_background_image_pic (uint32_t number)
+
+ +

Set pic attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 220 of file NexText.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexText::Set_font_color_pco (uint32_t number)
+
+ +

Set pco attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 81 of file NexText.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexText::Set_place_xcen (uint32_t number)
+
+ +

Set xcen attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 109 of file NexText.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexText::Set_place_ycen (uint32_t number)
+
+ +

Set ycen attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 137 of file NexText.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexText::setFont (uint32_t number)
+
+ +

Set font attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 165 of file NexText.cpp.

+
@@ -259,7 +667,7 @@ Public Member Functions @@ -84,18 +84,20 @@ $(document).ready(function(){initNavTree('class_nex_timer.html','');}); detachTimer(void)NexTimer disable(void)NexTimer enable(void)NexTimer - getCycle(uint32_t *number)NexTimer - NexObject(uint8_t pid, uint8_t cid, const char *name)NexObject - NexTimer(uint8_t pid, uint8_t cid, const char *name)NexTimer - NexTouch(uint8_t pid, uint8_t cid, const char *name)NexTouch - printObjInfo(void)NexObject + Get_cycle_tim(uint32_t *number)NexTimer + getCycle(uint32_t *number)NexTimer + NexObject(uint8_t pid, uint8_t cid, const char *name)NexObject + NexTimer(uint8_t pid, uint8_t cid, const char *name)NexTimer + NexTouch(uint8_t pid, uint8_t cid, const char *name)NexTouch + printObjInfo(void)NexObject + Set_cycle_tim(uint32_t number)NexTimer setCycle(uint32_t number)NexTimer @@ -81,20 +81,8 @@ $(document).ready(function(){initNavTree('class_nex_timer.html','');}); More...

#include <NexTimer.h>

-
-Inheritance diagram for NexTimer:
-
-
Inheritance graph
- - -
[legend]
-
-Collaboration diagram for NexTimer:
-
-
Collaboration graph
- - -
[legend]
+ +

Inherits NexTouch.

@@ -119,6 +107,12 @@ Public Member Functions + + + + + + @@ -233,15 +227,6 @@ Public Member Functions

Definition at line 23 of file NexTimer.cpp.

-

-Here is the call graph for this function:
-
-
- - -
-

- @@ -263,15 +248,6 @@ Here is the call graph for this function:

Definition at line 28 of file NexTimer.cpp.

-

-Here is the call graph for this function:
-
-
- - -
-

- @@ -328,6 +304,33 @@ Here is the call graph for this function:

Definition at line 60 of file NexTimer.cpp.

+ + + +
+
+

Public Member Functions

bool disable (void)
 contorl timer disable. More...
 
uint32_t Get_cycle_tim (uint32_t *number)
 Get tim attribute of component. More...
 
bool Set_cycle_tim (uint32_t number)
 Set tim attribute of component. More...
 
- Public Member Functions inherited from NexTouch
 NexTouch (uint8_t pid, uint8_t cid, const char *name)
 Constructor. More...
+ + + + + + + +
uint32_t NexTimer::Get_cycle_tim (uint32_t * number)
+
+ +

Get tim attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 86 of file NexTimer.cpp.

+
@@ -362,6 +365,33 @@ Here is the call graph for this function:

Definition at line 33 of file NexTimer.cpp.

+ + + +
+
+ + + + + + + + +
bool NexTimer::Set_cycle_tim (uint32_t number)
+
+ +

Set tim attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 95 of file NexTimer.cpp.

+
@@ -409,7 +439,7 @@ Here is the call graph for this function: @@ -88,7 +88,7 @@ $(document).ready(function(){initNavTree('class_nex_touch.html','');}); @@ -81,20 +81,10 @@ $(document).ready(function(){initNavTree('class_nex_touch.html','');}); More...

#include <NexTouch.h>

-
-Inheritance diagram for NexTouch:
-
-
Inheritance graph
- - -
[legend]
-
-Collaboration diagram for NexTouch:
-
-
Collaboration graph
- - -
[legend]
+ +

Inherits NexObject.

+ +

Inherited by NexButton, NexCheckbox, NexCrop, NexDSButton, NexHotspot, NexNumber, NexPage, NexPicture, NexRadio, NexScrolltext, NexSlider, NexText, NexTimer, and NexVariable.

@@ -211,15 +201,6 @@ Public Member Functions

Definition at line 39 of file NexTouch.cpp.

-

-Here is the caller graph for this function:
-
-
- - -
-

- @@ -281,15 +262,6 @@ Here is the caller graph for this function:

Definition at line 45 of file NexTouch.cpp.

-

-Here is the caller graph for this function:
-
-
- - -
-

- @@ -323,7 +295,7 @@ Here is the caller graph for this function: @@ -77,15 +77,25 @@ $(document).ready(function(){initNavTree('class_nex_waveform.html','');});

This is the complete list of members for NexWaveform, including all inherited members.

Public Member Functions

- - - + + + + + + + + + + + + +
addValue(uint8_t ch, uint8_t number)NexWaveform
NexObject(uint8_t pid, uint8_t cid, const char *name)NexObject
NexWaveform(uint8_t pid, uint8_t cid, const char *name)NexWaveform
printObjInfo(void)NexObject
Get_background_color_bco(uint32_t *number)NexWaveform
Get_channel_0_color_pco0(uint32_t *number)NexWaveform
Get_grid_color_gdc(uint32_t *number)NexWaveform
Get_grid_height_gdh(uint32_t *number)NexWaveform
Get_grid_width_gdw(uint32_t *number)NexWaveform
NexObject(uint8_t pid, uint8_t cid, const char *name)NexObject
NexWaveform(uint8_t pid, uint8_t cid, const char *name)NexWaveform
printObjInfo(void)NexObject
Set_background_color_bco(uint32_t number)NexWaveform
Set_channel_0_color_pco0(uint32_t number)NexWaveform
Set_grid_color_gdc(uint32_t number)NexWaveform
Set_grid_height_gdh(uint32_t number)NexWaveform
Set_grid_width_gdw(uint32_t number)NexWaveform
@@ -81,20 +81,8 @@ $(document).ready(function(){initNavTree('class_nex_waveform.html','');}); More...

#include <NexWaveform.h>

-
-Inheritance diagram for NexWaveform:
-
-
Inheritance graph
- - -
[legend]
-
-Collaboration diagram for NexWaveform:
-
-
Collaboration graph
- - -
[legend]
+ +

Inherits NexObject.

@@ -104,6 +92,36 @@ Public Member Functions + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -206,6 +224,276 @@ Public Member Functions

Definition at line 22 of file NexWaveform.cpp.

+ + + +
+
+

Public Member Functions

bool addValue (uint8_t ch, uint8_t number)
 Add value to show. More...
 
uint32_t Get_background_color_bco (uint32_t *number)
 Get bco attribute of component. More...
 
bool Set_background_color_bco (uint32_t number)
 Set bco attribute of component. More...
 
uint32_t Get_grid_color_gdc (uint32_t *number)
 Get gdc attribute of component. More...
 
bool Set_grid_color_gdc (uint32_t number)
 Set gdc attribute of component. More...
 
uint32_t Get_grid_width_gdw (uint32_t *number)
 Get gdw attribute of component. More...
 
bool Set_grid_width_gdw (uint32_t number)
 Set gdw attribute of component. More...
 
uint32_t Get_grid_height_gdh (uint32_t *number)
 Get gdh attribute of component. More...
 
bool Set_grid_height_gdh (uint32_t number)
 Set gdh attribute of component. More...
 
uint32_t Get_channel_0_color_pco0 (uint32_t *number)
 Get pco0 attribute of component. More...
 
bool Set_channel_0_color_pco0 (uint32_t number)
 Set pco0 attribute of component. More...
 
- Public Member Functions inherited from NexObject
 NexObject (uint8_t pid, uint8_t cid, const char *name)
 Constructor. More...
+ + + + + + + +
uint32_t NexWaveform::Get_background_color_bco (uint32_t * number)
+
+ +

Get bco attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 37 of file NexWaveform.cpp.

+ +
+ + +
+
+ + + + + + + + +
uint32_t NexWaveform::Get_channel_0_color_pco0 (uint32_t * number)
+
+ +

Get pco0 attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 149 of file NexWaveform.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexWaveform::Get_grid_color_gdc (uint32_t * number)
+
+ +

Get gdc attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 65 of file NexWaveform.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexWaveform::Get_grid_height_gdh (uint32_t * number)
+
+ +

Get gdh attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 121 of file NexWaveform.cpp.

+ +
+
+ +
+
+ + + + + + + + +
uint32_t NexWaveform::Get_grid_width_gdw (uint32_t * number)
+
+ +

Get gdw attribute of component.

+
Parameters
+ + +
number- buffer storing data retur
+
+
+
Returns
the length of the data
+ +

Definition at line 93 of file NexWaveform.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexWaveform::Set_background_color_bco (uint32_t number)
+
+ +

Set bco attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 47 of file NexWaveform.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexWaveform::Set_channel_0_color_pco0 (uint32_t number)
+
+ +

Set pco0 attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 159 of file NexWaveform.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexWaveform::Set_grid_color_gdc (uint32_t number)
+
+ +

Set gdc attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 75 of file NexWaveform.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexWaveform::Set_grid_height_gdh (uint32_t number)
+
+ +

Set gdh attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 131 of file NexWaveform.cpp.

+ +
+
+ +
+
+ + + + + + + + +
bool NexWaveform::Set_grid_width_gdw (uint32_t number)
+
+ +

Set gdw attribute of component.

+
Parameters
+ + +
number- To set up the data
+
+
+
Returns
true if success, false for failure
+ +

Definition at line 103 of file NexWaveform.cpp.

+

The documentation for this class was generated from the following files:
    @@ -218,7 +506,7 @@ Public Member Functions
@@ -76,10 +76,11 @@ $(document).ready(function(){initNavTree('classes.html','');}); - - - + + + + +
  N  
-
NexDSButton   NexObject   NexSlider   NexWaveform   
NexGauge   NexPage   NexText   
NexButton   NexHotspot   NexPicture   NexTimer   
NexCrop   NexNumber   NexProgressBar   NexTouch   
NexDSButton   NexPage   NexSlider   NexVariable   
NexGauge   NexPicture   NexText   NexWaveform   
NexButton   NexHotspot   NexProgressBar   NexTimer   
NexCheckbox   NexNumber   NexRadio   NexTouch   
NexCrop   NexObject   NexScrolltext   NexUpload   
@@ -88,7 +89,7 @@ $(document).ready(function(){initNavTree('classes.html','');});
-
-Directory dependency graph for CompNumber:
-
-
examples/CompNumber
- - -
@@ -84,7 +77,7 @@ Files
-
-Directory dependency graph for CompDualStateButton:
-
-
examples/CompDualStateButton
- - -

Files

@@ -84,7 +77,7 @@ Files
-
-Directory dependency graph for CompSlider:
-
-
examples/CompSlider
- - -

Files

@@ -84,7 +77,7 @@ Files
-
-Directory dependency graph for CompWaveform:
-
-
examples/CompWaveform
- - -

Files

@@ -84,7 +77,7 @@ Files
-
-Directory dependency graph for CompTimer:
-
-
examples/CompTimer
- - -

Files

@@ -84,7 +77,7 @@ Files
-
-Directory dependency graph for CompProgressBar:
-
-
examples/CompProgressBar
- - -

Files

@@ -84,7 +77,7 @@ Files
-
-Directory dependency graph for CompCrop:
-
-
examples/CompCrop
- - -

Files

@@ -84,7 +77,7 @@ Files
-
-Directory dependency graph for CompButton:
-
-
examples/CompButton
- - -

Files

@@ -84,7 +77,7 @@ Files
-
-Directory dependency graph for CompGauge:
-
-
examples/CompGauge
- - -

Files

@@ -84,7 +77,7 @@ Files
-
-Directory dependency graph for CompText:
-
-
examples/CompText
- - -

Files

@@ -84,7 +77,7 @@ Files
-
-Directory dependency graph for CompPicture:
-
-
examples/CompPicture
- - -

Files

@@ -84,7 +77,7 @@ Files
-
-Directory dependency graph for examples:
-
-
examples
- - -

Files

@@ -101,6 +94,8 @@ Directories + +

Directories

 
directory  CompWaveform
 
directory  Upload
 
@@ -108,7 +103,7 @@ Directories
-
-Directory dependency graph for CompHotspot:
-
-
examples/CompHotspot
- - -
@@ -84,7 +77,7 @@ Files
-
-Directory dependency graph for CompPage:
-
-
examples/CompPage
- - -

Files

@@ -84,7 +77,7 @@ Files

Files

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  examples
  CompButton
 CompButton.ino
  CompCrop
 CompCrop.ino
  CompDualStateButton
 CompDualStateButton.ino
  CompGauge
 CompGauge.ino
  CompHotspot
 CompHotspot.ino
  CompNumber
 CompNumber.ino
  CompPage
 CompPage.ino
  CompPicture
 CompPicture.ino
  CompProgressBar
 CompProgressBar.ino
  CompSlider
 CompSlider.ino
  CompText
 CompText.ino
  CompTimer
 CompTimer.ino
  CompWaveform
 CompWaveform.ino
 doxygen.hDefine modules in API doc
 NexButton.cppThe implementation of class NexButton
 NexButton.hThe definition of class NexButton
 NexConfig.hOptions for user can be found here
 NexCrop.cppThe implementation of class NexCrop
 NexCrop.hThe definition of class NexCrop
 NexDualStateButton.cppThe implementation of class NexDSButton
 NexDualStateButton.hThe definition of class NexDSButton
 NexGauge.cppThe implementation of class NexGauge
 NexGauge.hThe definition of class NexGauge
 NexHardware.cppThe implementation of base API for using Nextion
 NexHardware.hThe definition of base API for using Nextion
 NexHotspot.cppThe implementation of class NexHotspot
 NexHotspot.hThe definition of class NexHotspot
 NexNumber.cppThe implementation of class NexNumber
 NexNumber.hThe definition of class NexNumber
 NexObject.cppThe implementation of class NexObject
 NexObject.hThe definition of class NexObject
 NexPage.cppThe implementation of class NexPage
 NexPage.hThe definition of class NexPage
 NexPicture.cppThe implementation of class NexPicture
 NexPicture.hThe definition of class NexPicture
 NexProgressBar.cppThe implementation of class NexProgressBar
 NexProgressBar.hThe definition of class NexProgressBar
 NexSlider.cppThe implementation of class NexSlider
 NexSlider.hThe definition of class NexSlider
 NexText.cppThe implementation of class NexText
 NexText.hThe definition of class NexText
 NexTimer.cppThe implementation of class NexTimer
 NexTimer.hThe definition of class NexTimer
 Nextion.hThe header file including all other header files provided by this library
 NexTouch.cppThe implementation of class NexTouch
 NexTouch.hThe definition of class NexTouch
 NexWaveform.cppThe implementation of class NexWaveform
 NexWaveform.hThe definition of class NexWaveform
  CompButton
  CompCrop
  CompDualStateButton
  CompGauge
  CompHotspot
  CompNumber
  CompPage
  CompPicture
  CompProgressBar
  CompSlider
  CompText
  CompTimer
  CompWaveform
  Upload
  html
  search
 dynsections.js
 jquery.js
 doxygen.hDefine modules in API doc
 NexButton.cppThe implementation of class NexButton
 NexButton.hThe definition of class NexButton
 NexCheckbox.cppThe implementation of class NexCheckbox
 NexCheckbox.hThe definition of class NexCheckbox
 NexConfig.hOptions for user can be found here
 NexCrop.cppThe implementation of class NexCrop
 NexCrop.hThe definition of class NexCrop
 NexDualStateButton.cppThe implementation of class NexDSButton
 NexDualStateButton.hThe definition of class NexDSButton
 NexGauge.cppThe implementation of class NexGauge
 NexGauge.hThe definition of class NexGauge
 NexHardware.cppThe implementation of base API for using Nextion
 NexHardware.hThe definition of base API for using Nextion
 NexHotspot.cppThe implementation of class NexHotspot
 NexHotspot.hThe definition of class NexHotspot
 NexNumber.cppThe implementation of class NexNumber
 NexNumber.hThe definition of class NexNumber
 NexObject.cppThe implementation of class NexObject
 NexObject.hThe definition of class NexObject
 NexPage.cppThe implementation of class NexPage
 NexPage.hThe definition of class NexPage
 NexPicture.cppThe implementation of class NexPicture
 NexPicture.hThe definition of class NexPicture
 NexProgressBar.cppThe implementation of class NexProgressBar
 NexProgressBar.hThe definition of class NexProgressBar
 NexRadio.cppThe implementation of class NexRadio
 NexRadio.hThe definition of class NexRadio
 NexScrolltext.cppThe implementation of class NexScrolltext
 NexScrolltext.hThe definition of class NexScrolltext
 NexSlider.cppThe implementation of class NexSlider
 NexSlider.hThe definition of class NexSlider
 NexText.cppThe implementation of class NexText
 NexText.hThe definition of class NexText
 NexTimer.cppThe implementation of class NexTimer
 NexTimer.hThe definition of class NexTimer
 Nextion.hThe header file including all other header files provided by this library
 NexTouch.cppThe implementation of class NexTouch
 NexTouch.hThe definition of class NexTouch
 NexUpload.cppThe implementation of download tft file for nextion
 NexUpload.hThe definition of class NexUpload
 NexVariable.cppThe implementation of class NexText
 NexVariable.h
 NexWaveform.cppThe implementation of class NexWaveform
 NexWaveform.hThe definition of class NexWaveform
@@ -142,7 +189,7 @@ $(document).ready(function(){initNavTree('files.html','');}); @@ -61,13 +61,14 @@ @@ -102,138 +103,12 @@ $(document).ready(function(){initNavTree('functions.html','');}); : NexTimer - - -

- d -

- - -

- e -

- - -

- g -

- - -

- n -

- - -

- p -

- - -

- s -

@@ -61,13 +61,14 @@ @@ -102,138 +103,12 @@ $(document).ready(function(){initNavTree('functions_func.html','');}); : NexTimer - - -

- d -

- - -

- e -

- - -

- g -

- - -

- n -

- - -

- p -

- - -

- s -