Merge pull request #29 from hxming123456/update_items_based_on_ide

Update items based on ide
This commit is contained in:
神农民
2017-01-05 11:15:22 +08:00
committed by GitHub
966 changed files with 73322 additions and 676 deletions

105
NexGpio.cpp Executable file
View File

@@ -0,0 +1,105 @@
/**
* @file NexGpio.cpp
*
* The implementation of class NexGpio.
*
* @author Wu Pengfei (email:<pengfei.wu@itead.cc>)
* @date 2015/8/13
* @copyright
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*/
#include "NexGpio.h"
bool NexGpio::pin_mode(uint32_t port,uint32_t mode,uint32_t control_id)
{
char buf;
String cmd;
cmd += "cfgpio ";
buf = port + '0';
cmd += buf;
cmd += ',';
buf = mode + '0';
cmd += buf;
cmd += ',';
buf = control_id = '0';
cmd += buf;
sendCommand(cmd.c_str());
return recvRetCommandFinished();
}
bool NexGpio::digital_write(uint32_t port,uint32_t value)
{
String cmd;
char buf;
cmd += "pio";
buf = port + '0';
cmd += buf;
cmd += '=';
buf = value + '0';
cmd += buf;
sendCommand(cmd.c_str());
return recvRetCommandFinished();
}
uint32_t NexGpio::digital_read(uint32_t port)
{
uint32_t number;
char buf;
String cmd = String("get ");
cmd += "pio";
buf = port + '0';
cmd += buf;
sendCommand(cmd.c_str());
recvRetNumber(&number);
return number;
}
bool NexGpio::analog_write(uint32_t port,uint32_t value)
{
char buf[10] = {0};
char c;
String cmd;
utoa(value, buf, 10);
cmd += "pwm";
c = port + '0';
cmd += c;
cmd += '=';
cmd += buf;
Serial.print(cmd);
sendCommand(cmd.c_str());
return recvRetCommandFinished();
}
bool NexGpio::set_pwmfreq(uint32_t value)
{
char buf[10] = {0};
String cmd;
utoa(value, buf, 10);
cmd += "pwmf";
cmd += '=';
cmd += buf;
sendCommand(cmd.c_str());
return recvRetCommandFinished();
}
uint32_t NexGpio::get_pwmfreq(uint32_t *number)
{
String cmd = String("get pwmf");
sendCommand(cmd.c_str());
return recvRetNumber(number);
}

102
NexGpio.h Executable file
View File

@@ -0,0 +1,102 @@
/**
* @file NexGpio.h
*
* The definition of class NexGpio.
*
* @author Wu Pengfei (email:<pengfei.wu@itead.cc>)
* @date 2015/8/13
*
* @copyright
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*/
#ifndef _NEXGPIO_H
#define _NEXGPIO_H
#include "NexTouch.h"
#include "NexHardware.h"
/**
* @addtogroup Component
* @{
*/
/**
* NexGpio component.
*/
class NexGpio
{
public:
/**
* Set gpio mode
*
* @param port - the gpio port number
* @param mode - set gpio port mode(0--Pull on the input
* 1--the control input binding
* 2--Push-pull output
* 3--pwm output
* 4--open mode leakage)
* @param control_id - nextion controls id ,when the modeel is 1 to be valid
* @return true if success, false for failure
*/
bool pin_mode(uint32_t port,uint32_t mode,uint32_t control_id);
/**
* write a HIGH or a LOW value to a digital pin
*
* @param port - the gpio port number
* @param value - HIGH or LOW
* @return true if success, false for failure
*/
bool digital_write(uint32_t port,uint32_t value);
/**
* read a HIGH or a LOW value to a digital pin
*
* @param port - the gpio port number
* @return the value from a specified digital pin, either high or low
*/
uint32_t digital_read(uint32_t port);
/**
* writes an analog value (PWM wave) to a pin
*
* @param port - the gpio port number
* @param value - the duty cycle: between 0 (always off) and 100 (always on).
* @return true if success, false for failure
*/
bool analog_write(uint32_t port,uint32_t value);
/**
* writes pwm output frequency
*
* @param value - the frequency: between 1 and 65535
* @return true if success, false for failure
*/
bool set_pwmfreq(uint32_t value);
/**
* read pwm output frequency
*
* @param number - the frequency
* @return true if success, false for failure
*/
uint32_t get_pwmfreq(uint32_t *number);
};
/**
* @}
*/
#endif /* #ifndef __NEXGPIO_H__ */

327
NexRtc.cpp Executable file
View File

@@ -0,0 +1,327 @@
/**
* @file NexRtc.cpp
*
* The implementation of class NexRtc.
*
* @author Wu Pengfei (email:<pengfei.wu@itead.cc>)
* @date 2015/8/13
* @copyright
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*/
#include "NexRtc.h"
bool NexRtc::write_rtc_time(char *time)
{
char year[5],mon[3],day[3],hour[3],min[3],sec[3];
String cmd = String("rtc");
int i;
if(strlen(time) >= 19)
{
year[0]=time[0];year[1]=time[1];year[2]=time[2];year[3]=time[3];year[4]='\0';
mon[0]=time[5];mon[1]=time[6];mon[2]='\0';
day[0]=time[8];day[1]=time[9];day[2]='\0';
hour[0]=time[11];hour[1]=time[12];hour[2]='\0';
min[0]=time[14];min[1]=time[15];min[2]='\0';
sec[0]=time[17];sec[1]=time[18];sec[2]='\0';
cmd += "0=";
cmd += year;
sendCommand(cmd.c_str());
recvRetCommandFinished();
cmd = "";
cmd += "rtc1=";
cmd += mon;
sendCommand(cmd.c_str());
recvRetCommandFinished();
cmd = "";
cmd += "rtc2=";
cmd += day;
sendCommand(cmd.c_str());
recvRetCommandFinished();
cmd = "";
cmd += "rtc3=";
cmd += hour;
sendCommand(cmd.c_str());
recvRetCommandFinished();
cmd = "";
cmd += "rtc4=";
cmd += min;
sendCommand(cmd.c_str());
recvRetCommandFinished();
cmd = "";
cmd += "rtc5=";
cmd += sec;
sendCommand(cmd.c_str());
recvRetCommandFinished();
}
else
{
return false;
}
}
bool NexRtc::write_rtc_time(uint32_t *time)
{
char year[5],mon[3],day[3],hour[3],min[3],sec[3];
String cmd = String("rtc");
int i;
utoa(time[0],year,10);
utoa(time[1],mon, 10);
utoa(time[2],day, 10);
utoa(time[3],hour,10);
utoa(time[4],min, 10);
utoa(time[5],sec, 10);
cmd += "0=";
cmd += year;
sendCommand(cmd.c_str());
recvRetCommandFinished();
cmd = "";
cmd += "rtc1=";
cmd += mon;
sendCommand(cmd.c_str());
recvRetCommandFinished();
cmd = "";
cmd += "rtc2=";
cmd += day;
sendCommand(cmd.c_str());
recvRetCommandFinished();
cmd = "";
cmd += "rtc3=";
cmd += hour;
sendCommand(cmd.c_str());
recvRetCommandFinished();
cmd = "";
cmd += "rtc4=";
cmd += min;
sendCommand(cmd.c_str());
recvRetCommandFinished();
cmd = "";
cmd += "rtc5=";
cmd += sec;
sendCommand(cmd.c_str());
recvRetCommandFinished();
}
bool NexRtc::write_rtc_time(char *time_type,uint32_t number)
{
String cmd = String("rtc");
char buf[10] = {0};
utoa(number, buf, 10);
if(strstr(time_type,"year"))
{
cmd += "0=";
cmd += buf;
}
if(strstr(time_type,"mon"))
{
cmd += "1=";
cmd += buf;
}
if(strstr(time_type,"day"))
{
cmd += "2=";
cmd += buf;
}
if(strstr(time_type,"hour"))
{
cmd += "3=";
cmd += buf;
}
if(strstr(time_type,"min"))
{
cmd += "4=";
cmd += buf;
}
if(strstr(time_type,"sec"))
{
cmd += "5=";
cmd += buf;
}
sendCommand(cmd.c_str());
return recvRetCommandFinished();
}
uint32_t NexRtc::read_rtc_time(char *time,uint32_t len)
{
char time_buf[22] = {"0000/00/00 00:00:00 0"};
uint32_t year,mon,day,hour,min,sec,week;
String cmd;
cmd = "get rtc0";
sendCommand(cmd.c_str());
recvRetNumber(&year);
cmd = "";
cmd = "get rtc1";
sendCommand(cmd.c_str());
recvRetNumber(&mon);
cmd = "";
cmd = "get rtc2";
sendCommand(cmd.c_str());
recvRetNumber(&day);
cmd = "";
cmd = "get rtc3";
sendCommand(cmd.c_str());
recvRetNumber(&hour);
cmd = "";
cmd = "get rtc4";
sendCommand(cmd.c_str());
recvRetNumber(&min);
cmd = "";
cmd = "get rtc5";
sendCommand(cmd.c_str());
recvRetNumber(&sec);
cmd = "";
cmd = "get rtc6";
sendCommand(cmd.c_str());
recvRetNumber(&week);
time_buf[0] = year/1000 + '0';
time_buf[1] = (year/100)%10 + '0';
time_buf[2] = (year/10)%10 + '0';
time_buf[3] = year%10 + '0';
time_buf[5] = mon/10 + '0';
time_buf[6] = mon%10 + '0';
time_buf[8] = day/10 + '0';
time_buf[9] = day%10 + '0';
time_buf[11] = hour/10 + '0';
time_buf[12] = hour%10 + '0';
time_buf[14] = min/10 + '0';
time_buf[15] = min%10 + '0';
time_buf[17] = sec/10 + '0';
time_buf[18] = sec%10 + '0';
time_buf[20] = week + '0';
time_buf[21] = '\0';
if(len >= 22)
{
for(int i=0;i<22;i++)
{
time[i] = time_buf[i];
}
}
else{
for(int i=0;i<len;i++)
{
time[i] = time_buf[i];
}
}
}
uint32_t NexRtc::read_rtc_time(uint32_t *time,uint32_t len)
{
uint32_t time_buf[7] = {0};
String cmd;
cmd = "get rtc0";
sendCommand(cmd.c_str());
recvRetNumber(&time_buf[0]);
cmd = "";
cmd = "get rtc1";
sendCommand(cmd.c_str());
recvRetNumber(&time_buf[1]);
cmd = "";
cmd = "get rtc2";
sendCommand(cmd.c_str());
recvRetNumber(&time_buf[2]);
cmd = "";
cmd = "get rtc3";
sendCommand(cmd.c_str());
recvRetNumber(&time_buf[3]);
cmd = "";
cmd = "get rtc4";
sendCommand(cmd.c_str());
recvRetNumber(&time_buf[4]);
cmd = "";
cmd = "get rtc5";
sendCommand(cmd.c_str());
recvRetNumber(&time_buf[5]);
cmd = "";
cmd = "get rtc6";
sendCommand(cmd.c_str());
recvRetNumber(&time_buf[6]);
for(int i=0;i<len;i++)
{
time[i] = time_buf[i];
}
}
uint32_t NexRtc::read_rtc_time(char *time_type,uint32_t *number)
{
String cmd = String("get rtc");
char buf[10] = {0};
if(strstr(time_type,"year"))
{
cmd += '0';
}
else if(strstr(time_type,"mon"))
{
cmd += '1';
}
else if(strstr(time_type,"day"))
{
cmd += '2';
}
else if(strstr(time_type,"hour"))
{
cmd += '3';
}
else if(strstr(time_type,"min"))
{
cmd += '4';
}
else if(strstr(time_type,"sec"))
{
cmd += '5';
}
else if(strstr(time_type,"week"))
{
cmd += '6';
}
else{
return false;
}
sendCommand(cmd.c_str());
return recvRetNumber(number);
}

93
NexRtc.h Executable file
View File

@@ -0,0 +1,93 @@
/**
* @file NexRtc.h
*
* The definition of class NexRtc.
*
* @author Wu Pengfei (email:<pengfei.wu@itead.cc>)
* @date 2015/8/13
*
* @copyright
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*/
#ifndef _NEXRTC_H
#define _NEXRTC_H
#include "NexTouch.h"
#include "NexHardware.h"
/**
* @addtogroup Component
* @{
*/
/**
* NexRtc component.
*/
class NexRtc
{
public:
bool write_rtc_time(char *time);
/**
* write rtc times
*
* @param time_type - To type in time (example:write_rtc_time("year",2016))
* @param number - the time value
* @return true if success, false for failure
*/
bool write_rtc_time(char *time_type,uint32_t number);
/**
* write rtc times
*
* @param time - Time to write to the array
* @return true if success, false for failure
*/
bool write_rtc_time(uint32_t *time);
/**
* read rtc time
*
* @param time - Access data array
* @param len - len of array
* @return true if success, false for failure
*/
uint32_t read_rtc_time(char *time,uint32_t len);
/**
* read rtc times
*
* @param time_type - To type in time
* @param number - the time value
* @return true if success, false for failure
*/
uint32_t read_rtc_time(char *time_type,uint32_t *number);
/**
* read rtc time
*
* @param time - Access data array
* @param len - len of array
* @return true if success, false for failure
*/
uint32_t read_rtc_time(uint32_t *time,uint32_t len);
};
/**
* @}
*/
#endif /* #ifndef __NEXRTC_H__ */

View File

@@ -232,3 +232,5 @@ bool NexText::Set_background_image_pic(uint32_t number)
}

View File

@@ -162,7 +162,8 @@ public: /* methods */
* @param number - To set up the data
* @return true if success, false for failure
*/
bool Set_background_image_pic(uint32_t number);
bool Set_background_image_pic(uint32_t number);
};
/**

View File

@@ -39,6 +39,7 @@
#include "NexCheckbox.h"
#include "NexRadio.h"
#include "NexScrolltext.h"
#include "NexGpio.h"
#include "NexRtc.h"
#endif /* #ifndef __NEXTION_H__ */

View File

@@ -152,7 +152,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -161,8 +161,8 @@ $(document).ready(function(){initNavTree('_comp_button_8ino_source.html','');});
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_9bbf8342b0f9a157b7af08fe1412fc17.html">CompButton</a></li><li class="navelem"><b>CompButton.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_a6c6ee996e64a0a9573e0623ecba0f92.html">CompButton</a></li><li class="navelem"><b>CompButton.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -118,7 +118,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -127,8 +127,8 @@ $(document).ready(function(){initNavTree('_comp_crop_8ino_source.html','');});
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_8dcbebf38b229bfa7bb34d68bf824093.html">CompCrop</a></li><li class="navelem"><b>CompCrop.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_78dd7a2fe86fb9861d4d5f2b99877d05.html">CompCrop</a></li><li class="navelem"><b>CompCrop.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -153,7 +153,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -163,8 +163,8 @@ $(document).ready(function(){initNavTree('_comp_dual_state_button_8ino_source.ht
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_3a828b7214103d705cc83e20f29bdad9.html">CompDualStateButton</a></li><li class="navelem"><b>CompDualStateButton.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_56b2cc69259505f347a71fbc57576a27.html">CompDualStateButton</a></li><li class="navelem"><b>CompDualStateButton.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -134,7 +134,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -144,8 +144,8 @@ $(document).ready(function(){initNavTree('_comp_gauge_8ino_source.html','');});
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_a48692e2802a027399b146b680655303.html">CompGauge</a></li><li class="navelem"><b>CompGauge.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_d3f8111a063a965b5243b82006fc3654.html">CompGauge</a></li><li class="navelem"><b>CompGauge.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -0,0 +1,133 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Documentation: CompGpio.ino</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Documentation
</div>
<div id="projectbrief">For Arduino users</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_comp_gpio_8ino-example.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">CompGpio.ino</div> </div>
</div><!--header-->
<div class="contents">
<dl class="section user"><dt>How to Use</dt><dd>This example shows that In nextion screen displays the current IO mouth level change, to show how to use the API.</dd></dl>
<dl class="section author"><dt>Author</dt><dd>huangxiaoming (email:<a href="#" onclick="location.href='mai'+'lto:'+'xia'+'om'+'ing'+'.h'+'uan'+'g@'+'ite'+'ad'+'.cc'; return false;">xiaom<span style="display: none;">.nosp@m.</span>ing.<span style="display: none;">.nosp@m.</span>huang<span style="display: none;">.nosp@m.</span>@ite<span style="display: none;">.nosp@m.</span>ad.cc</a>) </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2016/12/8 </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. <br />
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.</dd></dl>
<div class="fragment"><div class="line"></div>
<div class="line"><span class="preprocessor">#include &quot;<a class="code" href="_nextion_8h.html">Nextion.h</a>&quot;</span></div>
<div class="line"></div>
<div class="line"><a name="_a0"></a><a class="code" href="class_nex_gpio.html">NexGpio</a> gpio;</div>
<div class="line"><a name="_a1"></a><a class="code" href="class_nex_number.html">NexNumber</a> n0 = <a class="code" href="class_nex_number.html">NexNumber</a>(0,1,<span class="stringliteral">&quot;n0&quot;</span>);</div>
<div class="line"><a class="code" href="class_nex_number.html">NexNumber</a> n1 = <a class="code" href="class_nex_number.html">NexNumber</a>(0,3,<span class="stringliteral">&quot;n1&quot;</span>);</div>
<div class="line"></div>
<div class="line"><span class="preprocessor">#define GPIO_PUSH_PORT 1</span></div>
<div class="line"><span class="preprocessor">#define GPIO_PWM_PORT 2</span></div>
<div class="line"><span class="preprocessor">#define GPIO_PUSH_OUTPUT_MODE 2</span></div>
<div class="line"><span class="preprocessor">#define GPIO_PWM_OUT_MODE 3</span></div>
<div class="line"><span class="preprocessor">#define CONTROLS_ID 0 //when the modeel is 1 to be valid</span></div>
<div class="line"></div>
<div class="line">uint32_t pwm_value = 0;</div>
<div class="line"></div>
<div class="line"><span class="keywordtype">void</span> setup() </div>
<div class="line">{ </div>
<div class="line"> <a name="a2"></a><a class="code" href="group___configuration.html#ga2738b05a77cd5052e440af5b00b0ecbd">nexSerial</a>.begin(115200);</div>
<div class="line"> gpio.<a name="a3"></a><a class="code" href="class_nex_gpio.html#adbe08eb11827d75c6b2e9c935d9da19a">pin_mode</a>(GPIO_PUSH_PORT,GPIO_PUSH_OUTPUT_MODE,CONTROLS_ID);</div>
<div class="line"> gpio.<a class="code" href="class_nex_gpio.html#adbe08eb11827d75c6b2e9c935d9da19a">pin_mode</a>(GPIO_PWM_PORT,GPIO_PWM_OUT_MODE,CONTROLS_ID);</div>
<div class="line">}</div>
<div class="line"></div>
<div class="line"><span class="keywordtype">void</span> loop() </div>
<div class="line">{</div>
<div class="line"> <span class="keywordflow">if</span>(gpio.<a name="a4"></a><a class="code" href="class_nex_gpio.html#a36386b97898f0960abda51c6010378eb">digital_read</a>(1) == 0)</div>
<div class="line"> {</div>
<div class="line"> gpio.<a name="a5"></a><a class="code" href="class_nex_gpio.html#aaea4cb428fa0a2e26927073c20ed64ac">digital_write</a>(GPIO_PUSH_PORT,HIGH);</div>
<div class="line"> n0.<a name="a6"></a><a class="code" href="class_nex_number.html#a9cef51f6b76b4ba03a31b2427ffd4526">setValue</a>(1);</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> gpio.<a class="code" href="class_nex_gpio.html#aaea4cb428fa0a2e26927073c20ed64ac">digital_write</a>(GPIO_PUSH_PORT,LOW);</div>
<div class="line"> n0.<a class="code" href="class_nex_number.html#a9cef51f6b76b4ba03a31b2427ffd4526">setValue</a>(0);</div>
<div class="line"> }</div>
<div class="line"></div>
<div class="line"> </div>
<div class="line"> gpio.<a name="a7"></a><a class="code" href="class_nex_gpio.html#af21eb91b041d149193bc716202d4a462">analog_write</a>(GPIO_PWM_PORT,pwm_value);</div>
<div class="line"> n1.<a class="code" href="class_nex_number.html#a9cef51f6b76b4ba03a31b2427ffd4526">setValue</a>(pwm_value);</div>
<div class="line"> <span class="keywordflow">if</span>(pwm_value == 100)</div>
<div class="line"> {</div>
<div class="line"> pwm_value = 0;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> pwm_value += 20;</div>
<div class="line"> }</div>
<div class="line"></div>
<div class="line"> delay(1000);</div>
<div class="line">}</div>
</div><!-- fragment --> </div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,144 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Documentation: examples/CompGpio/CompGpio.ino Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Documentation
</div>
<div id="projectbrief">For Arduino users</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_comp_gpio_8ino_source.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">CompGpio.ino</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_nextion_8h.html">Nextion.h</a>&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<a class="code" href="class_nex_gpio.html">NexGpio</a> gpio;</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<a class="code" href="class_nex_number.html">NexNumber</a> n0 = <a class="code" href="class_nex_number.html">NexNumber</a>(0,1,<span class="stringliteral">&quot;n0&quot;</span>);</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<a class="code" href="class_nex_number.html">NexNumber</a> n1 = <a class="code" href="class_nex_number.html">NexNumber</a>(0,3,<span class="stringliteral">&quot;n1&quot;</span>);</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#define GPIO_PUSH_PORT 1</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#define GPIO_PWM_PORT 2</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#define GPIO_PUSH_OUTPUT_MODE 2</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#define GPIO_PWM_OUT_MODE 3</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#define CONTROLS_ID 0 //when the modeel is 1 to be valid</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;uint32_t pwm_value = 0;</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keywordtype">void</span> setup() </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;{ </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <a class="code" href="group___configuration.html#ga2738b05a77cd5052e440af5b00b0ecbd">nexSerial</a>.begin(115200);</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; gpio.<a class="code" href="class_nex_gpio.html#adbe08eb11827d75c6b2e9c935d9da19a">pin_mode</a>(GPIO_PUSH_PORT,GPIO_PUSH_OUTPUT_MODE,CONTROLS_ID);</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; gpio.<a class="code" href="class_nex_gpio.html#adbe08eb11827d75c6b2e9c935d9da19a">pin_mode</a>(GPIO_PWM_PORT,GPIO_PWM_OUT_MODE,CONTROLS_ID);</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;}</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keywordtype">void</span> loop() </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;{</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keywordflow">if</span>(gpio.<a class="code" href="class_nex_gpio.html#a36386b97898f0960abda51c6010378eb">digital_read</a>(1) == 0)</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; {</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; gpio.<a class="code" href="class_nex_gpio.html#aaea4cb428fa0a2e26927073c20ed64ac">digital_write</a>(GPIO_PUSH_PORT,HIGH);</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; n0.<a class="code" href="class_nex_number.html#a9cef51f6b76b4ba03a31b2427ffd4526">setValue</a>(1);</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; }</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; {</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; gpio.<a class="code" href="class_nex_gpio.html#aaea4cb428fa0a2e26927073c20ed64ac">digital_write</a>(GPIO_PUSH_PORT,LOW);</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; n0.<a class="code" href="class_nex_number.html#a9cef51f6b76b4ba03a31b2427ffd4526">setValue</a>(0);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; }</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; gpio.<a class="code" href="class_nex_gpio.html#af21eb91b041d149193bc716202d4a462">analog_write</a>(GPIO_PWM_PORT,pwm_value);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; n1.<a class="code" href="class_nex_number.html#a9cef51f6b76b4ba03a31b2427ffd4526">setValue</a>(pwm_value);</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keywordflow">if</span>(pwm_value == 100)</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; {</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; pwm_value = 0;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; }</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; {</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; pwm_value += 20;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; }</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; delay(1000);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;}</div>
<div class="ttc" id="class_nex_number_html"><div class="ttname"><a href="class_nex_number.html">NexNumber</a></div><div class="ttdoc">NexNumber component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_number_8h_source.html#l00030">NexNumber.h:30</a></div></div>
<div class="ttc" id="group___configuration_html_ga2738b05a77cd5052e440af5b00b0ecbd"><div class="ttname"><a href="group___configuration.html#ga2738b05a77cd5052e440af5b00b0ecbd">nexSerial</a></div><div class="ttdeci">#define nexSerial</div><div class="ttdoc">Define nexSerial for communicate with Nextion touch panel. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_config_8h_source.html#l00037">NexConfig.h:37</a></div></div>
<div class="ttc" id="class_nex_gpio_html_aaea4cb428fa0a2e26927073c20ed64ac"><div class="ttname"><a href="class_nex_gpio.html#aaea4cb428fa0a2e26927073c20ed64ac">NexGpio::digital_write</a></div><div class="ttdeci">bool digital_write(uint32_t port, uint32_t value)</div><div class="ttdoc">write a HIGH or a LOW value to a digital pin </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00037">NexGpio.cpp:37</a></div></div>
<div class="ttc" id="class_nex_gpio_html_adbe08eb11827d75c6b2e9c935d9da19a"><div class="ttname"><a href="class_nex_gpio.html#adbe08eb11827d75c6b2e9c935d9da19a">NexGpio::pin_mode</a></div><div class="ttdeci">bool pin_mode(uint32_t port, uint32_t mode, uint32_t control_id)</div><div class="ttdoc">Set gpio mode. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00017">NexGpio.cpp:17</a></div></div>
<div class="ttc" id="_nextion_8h_html"><div class="ttname"><a href="_nextion_8h.html">Nextion.h</a></div><div class="ttdoc">The header file including all other header files provided by this library. </div></div>
<div class="ttc" id="class_nex_gpio_html"><div class="ttname"><a href="class_nex_gpio.html">NexGpio</a></div><div class="ttdoc">NexGpio component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8h_source.html#l00031">NexGpio.h:31</a></div></div>
<div class="ttc" id="class_nex_number_html_a9cef51f6b76b4ba03a31b2427ffd4526"><div class="ttname"><a href="class_nex_number.html#a9cef51f6b76b4ba03a31b2427ffd4526">NexNumber::setValue</a></div><div class="ttdeci">bool setValue(uint32_t number)</div><div class="ttdoc">Set number attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_number_8cpp_source.html#l00031">NexNumber.cpp:31</a></div></div>
<div class="ttc" id="class_nex_gpio_html_af21eb91b041d149193bc716202d4a462"><div class="ttname"><a href="class_nex_gpio.html#af21eb91b041d149193bc716202d4a462">NexGpio::analog_write</a></div><div class="ttdeci">bool analog_write(uint32_t port, uint32_t value)</div><div class="ttdoc">writes an analog value (PWM wave) to a pin </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00068">NexGpio.cpp:68</a></div></div>
<div class="ttc" id="class_nex_gpio_html_a36386b97898f0960abda51c6010378eb"><div class="ttname"><a href="class_nex_gpio.html#a36386b97898f0960abda51c6010378eb">NexGpio::digital_read</a></div><div class="ttdeci">uint32_t digital_read(uint32_t port)</div><div class="ttdoc">read a HIGH or a LOW value to a digital pin </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00053">NexGpio.cpp:53</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_67a124841349777013960f48b4ca08cd.html">CompGpio</a></li><li class="navelem"><b>CompGpio.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -130,7 +130,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -138,8 +138,8 @@ $(document).ready(function(){initNavTree('_comp_hotspot_8ino_source.html','');})
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_f3d39c87bc262720c50d5e3885667b8a.html">CompHotspot</a></li><li class="navelem"><b>CompHotspot.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_44a14d16127103fb968497cef18e2651.html">CompHotspot</a></li><li class="navelem"><b>CompHotspot.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -180,7 +180,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -190,8 +190,8 @@ $(document).ready(function(){initNavTree('_comp_number_8ino_source.html','');});
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_2af451c22587252d0014dbc596e2e19a.html">CompNumber</a></li><li class="navelem"><b>CompNumber.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_a121929b9544fab6b74c5c8052ef2940.html">CompNumber</a></li><li class="navelem"><b>CompNumber.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -133,7 +133,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -141,8 +141,8 @@ $(document).ready(function(){initNavTree('_comp_page_8ino_source.html','');});
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_f76977d9ffe8ddf3ad01f3d689aa5df4.html">CompPage</a></li><li class="navelem"><b>CompPage.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_88b085927d35ec3e069c44673959ea9f.html">CompPage</a></li><li class="navelem"><b>CompPage.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -121,7 +121,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -130,8 +130,8 @@ $(document).ready(function(){initNavTree('_comp_picture_8ino_source.html','');})
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_ce36ac18ad3deaf5eae0bd2e09775a7d.html">CompPicture</a></li><li class="navelem"><b>CompPicture.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_a1532c81ac7ffe94cd7af0c8adbf41fd.html">CompPicture</a></li><li class="navelem"><b>CompPicture.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -133,7 +133,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -143,8 +143,8 @@ $(document).ready(function(){initNavTree('_comp_progress_bar_8ino_source.html','
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_7962cac16a99e8bbaaea18abede03fcb.html">CompProgressBar</a></li><li class="navelem"><b>CompProgressBar.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_b3d36b9fee6f94e0e9351d3ce179e46a.html">CompProgressBar</a></li><li class="navelem"><b>CompProgressBar.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -0,0 +1,104 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Documentation: CompRtc.ino</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Documentation
</div>
<div id="projectbrief">For Arduino users</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_comp_rtc_8ino-example.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">CompRtc.ino</div> </div>
</div><!--header-->
<div class="contents">
<dl class="section user"><dt>How to Use</dt><dd>This example shows that in nextion screen displays the current read the RTC time and show how to use the API.</dd></dl>
<dl class="section author"><dt>Author</dt><dd>huangxiaoming (email:<a href="#" onclick="location.href='mai'+'lto:'+'xia'+'om'+'ing'+'.h'+'uan'+'g@'+'ite'+'ad'+'.cc'; return false;">xiaom<span style="display: none;">.nosp@m.</span>ing.<span style="display: none;">.nosp@m.</span>huang<span style="display: none;">.nosp@m.</span>@ite<span style="display: none;">.nosp@m.</span>ad.cc</a>) </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2016/12/8 </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. <br />
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.</dd></dl>
<div class="fragment"><div class="line"></div>
<div class="line"><span class="preprocessor">#include &quot;<a class="code" href="_nextion_8h.html">Nextion.h</a>&quot;</span></div>
<div class="line"></div>
<div class="line"><a name="_a0"></a><a class="code" href="class_nex_text.html">NexText</a> t0 = <a class="code" href="class_nex_text.html">NexText</a>(0,1,<span class="stringliteral">&quot;t0&quot;</span>);</div>
<div class="line"><a name="_a1"></a><a class="code" href="class_nex_rtc.html">NexRtc</a> rtc;</div>
<div class="line">uint32_t time[7] = {2016,11,25,12,34,50};</div>
<div class="line">uint8_t time_buf[30] = {0};</div>
<div class="line"></div>
<div class="line"><span class="keywordtype">void</span> setup() </div>
<div class="line">{</div>
<div class="line"> <a name="a2"></a><a class="code" href="group___configuration.html#ga2738b05a77cd5052e440af5b00b0ecbd">nexSerial</a>.begin(115200);</div>
<div class="line"> rtc.<a name="a3"></a>write_rtc_time(time);</div>
<div class="line">}</div>
<div class="line"></div>
<div class="line"><span class="keywordtype">void</span> loop() </div>
<div class="line">{</div>
<div class="line"> rtc.<a name="a4"></a><a class="code" href="class_nex_rtc.html#a17230cd9342a905778fa4ee2e8609f02">read_rtc_time</a>(time_buf,30);</div>
<div class="line"> t0.<a name="a5"></a><a class="code" href="class_nex_text.html#a19589b32c981436a1bbcfe407bc766e3">setText</a>(time_buf);</div>
<div class="line"> delay(1000);</div>
<div class="line">}</div>
</div><!-- fragment --> </div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,112 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Documentation: examples/CompRtc/CompRtc.ino Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Documentation
</div>
<div id="projectbrief">For Arduino users</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_comp_rtc_8ino_source.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">CompRtc.ino</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_nextion_8h.html">Nextion.h</a>&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<a class="code" href="class_nex_text.html">NexText</a> t0 = <a class="code" href="class_nex_text.html">NexText</a>(0,1,<span class="stringliteral">&quot;t0&quot;</span>);</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<a class="code" href="class_nex_rtc.html">NexRtc</a> rtc;</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;uint32_t time[7] = {2016,11,25,12,34,50};</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;uint8_t time_buf[30] = {0};</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="keywordtype">void</span> setup() </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <a class="code" href="group___configuration.html#ga2738b05a77cd5052e440af5b00b0ecbd">nexSerial</a>.begin(115200);</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; rtc.write_rtc_time(time);</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;}</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keywordtype">void</span> loop() </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; rtc.<a class="code" href="class_nex_rtc.html#a17230cd9342a905778fa4ee2e8609f02">read_rtc_time</a>(time_buf,30);</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; t0.<a class="code" href="class_nex_text.html#a19589b32c981436a1bbcfe407bc766e3">setText</a>(time_buf);</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; delay(1000);</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;}</div>
<div class="ttc" id="class_nex_rtc_html"><div class="ttname"><a href="class_nex_rtc.html">NexRtc</a></div><div class="ttdoc">NexRtc component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_rtc_8h_source.html#l00031">NexRtc.h:31</a></div></div>
<div class="ttc" id="class_nex_text_html_a19589b32c981436a1bbcfe407bc766e3"><div class="ttname"><a href="class_nex_text.html#a19589b32c981436a1bbcfe407bc766e3">NexText::setText</a></div><div class="ttdeci">bool setText(const char *buffer)</div><div class="ttdoc">Set text attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_text_8cpp_source.html#l00032">NexText.cpp:32</a></div></div>
<div class="ttc" id="group___configuration_html_ga2738b05a77cd5052e440af5b00b0ecbd"><div class="ttname"><a href="group___configuration.html#ga2738b05a77cd5052e440af5b00b0ecbd">nexSerial</a></div><div class="ttdeci">#define nexSerial</div><div class="ttdoc">Define nexSerial for communicate with Nextion touch panel. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_config_8h_source.html#l00037">NexConfig.h:37</a></div></div>
<div class="ttc" id="_nextion_8h_html"><div class="ttname"><a href="_nextion_8h.html">Nextion.h</a></div><div class="ttdoc">The header file including all other header files provided by this library. </div></div>
<div class="ttc" id="class_nex_rtc_html_a17230cd9342a905778fa4ee2e8609f02"><div class="ttname"><a href="class_nex_rtc.html#a17230cd9342a905778fa4ee2e8609f02">NexRtc::read_rtc_time</a></div><div class="ttdeci">uint32_t read_rtc_time(char *time, uint32_t len)</div><div class="ttdoc">read rtc time </div><div class="ttdef"><b>Definition:</b> <a href="_nex_rtc_8cpp_source.html#l00166">NexRtc.cpp:166</a></div></div>
<div class="ttc" id="class_nex_text_html"><div class="ttname"><a href="class_nex_text.html">NexText</a></div><div class="ttdoc">NexText component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_text_8h_source.html#l00030">NexText.h:30</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_2c7bb7af606a816dc5d12b9c9f93cdb0.html">CompRtc</a></li><li class="navelem"><b>CompRtc.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -111,7 +111,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -121,8 +121,8 @@ $(document).ready(function(){initNavTree('_comp_slider_8ino_source.html','');});
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_472f54fb1d9b74971d8e15d62f212bd3.html">CompSlider</a></li><li class="navelem"><b>CompSlider.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_362f30179229d7166f5b27ed31213abf.html">CompSlider</a></li><li class="navelem"><b>CompSlider.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -191,7 +191,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:05 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -201,8 +201,8 @@ $(document).ready(function(){initNavTree('_comp_text_8ino_source.html','');});
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_c918e8bf3fc71f849978cdb0d900e61c.html">CompText</a></li><li class="navelem"><b>CompText.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_e79857bc4faa7405ea054e9dea791d5c.html">CompText</a></li><li class="navelem"><b>CompText.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -181,7 +181,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -197,8 +197,8 @@ $(document).ready(function(){initNavTree('_comp_timer_8ino_source.html','');});
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_53835f0dfcb7abf9d97bc46682fab859.html">CompTimer</a></li><li class="navelem"><b>CompTimer.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_ca98f8e97468ceedc413f5dac34c5fa4.html">CompTimer</a></li><li class="navelem"><b>CompTimer.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -127,7 +127,7 @@ This program is free software; you can redistribute it and/or modify it under th
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated on Tue Oct 11 2016 14:29:34 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -132,8 +132,8 @@ $(document).ready(function(){initNavTree('_comp_waveform_8ino_source.html','');}
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_4b43661efaa18af91f213d2681ebd37e.html">CompWaveform</a></li><li class="navelem"><b>CompWaveform.ino</b></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="navelem"><a class="el" href="dir_13cb27e7707bad7dfc51e3225831c378.html">examples</a></li><li class="navelem"><a class="el" href="dir_fcb17c1a6a78f3a510af094d9b07469a.html">CompWaveform</a></li><li class="navelem"><b>CompWaveform.ino</b></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:06 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -91,7 +91,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_button_8cpp.html">NexButton.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -441,7 +441,7 @@ $(document).ready(function(){initNavTree('_nex_button_8cpp_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_button_8cpp.html">NexButton.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -105,7 +105,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_button_8h.html">NexButton.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -167,7 +167,7 @@ $(document).ready(function(){initNavTree('_nex_button_8h_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_button_8h.html">NexButton.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -0,0 +1,100 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Documentation: NexCheckbox.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Documentation
</div>
<div id="projectbrief">For Arduino users</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_nex_checkbox_8cpp.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">NexCheckbox.cpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>The implementation of class <a class="el" href="class_nex_checkbox.html" title="NexButton component. ">NexCheckbox</a>.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="_nex_checkbox_8h_source.html">NexCheckbox.h</a>&quot;</code><br />
</div>
<p><a href="_nex_checkbox_8cpp_source.html">Go to the source code of this file.</a></p>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The implementation of class <a class="el" href="class_nex_checkbox.html" title="NexButton component. ">NexCheckbox</a>. </p>
<dl class="section author"><dt>Author</dt><dd>huang xiaoming (email:<a href="#" onclick="location.href='mai'+'lto:'+'xia'+'om'+'ing'+'.h'+'uan'+'g@'+'ite'+'ad'+'.cc'; return false;">xiaom<span style="display: none;">.nosp@m.</span>ing.<span style="display: none;">.nosp@m.</span>huang<span style="display: none;">.nosp@m.</span>@ite<span style="display: none;">.nosp@m.</span>ad.cc</a>) </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2016/9/13 </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. <br />
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. </dd></dl>
<p>Definition in file <a class="el" href="_nex_checkbox_8cpp_source.html">NexCheckbox.cpp</a>.</p>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_checkbox_8cpp.html">NexCheckbox.cpp</a></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,7 @@
<map id="NexCheckbox.cpp" name="NexCheckbox.cpp">
<area shape="rect" id="node2" href="$_nex_checkbox_8h.html" title="The definition of class NexCheckbox. " alt="" coords="71,80,187,107"/>
<area shape="rect" id="node3" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="83,229,176,256"/>
<area shape="rect" id="node7" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,155,234,181"/>
<area shape="rect" id="node5" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="167,379,262,405"/>
<area shape="rect" id="node6" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,304,177,331"/>
</map>

View File

@@ -0,0 +1 @@
ddb4e8097a6c6bb3c64d1cfaf1060ae8

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -0,0 +1,181 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Documentation: NexCheckbox.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Documentation
</div>
<div id="projectbrief">For Arduino users</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_nex_checkbox_8cpp_source.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">NexCheckbox.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="_nex_checkbox_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_nex_checkbox_8h.html">NexCheckbox.h</a>&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_nex_checkbox.html#a8aa4ea60796bdce0de0de3dd675ef56a"> 17</a></span>&#160;<a class="code" href="class_nex_checkbox.html#a8aa4ea60796bdce0de0de3dd675ef56a">NexCheckbox::NexCheckbox</a>(uint8_t pid, uint8_t cid, <span class="keyword">const</span> <span class="keywordtype">char</span> *name)</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; :<a class="code" href="class_nex_touch.html">NexTouch</a>(pid, cid, name)</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;{</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;}</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_nex_checkbox.html#a6832110a49f9bbbb14a54f36db020d44"> 22</a></span>&#160;uint32_t <a class="code" href="class_nex_checkbox.html#a6832110a49f9bbbb14a54f36db020d44">NexCheckbox::getValue</a>(uint32_t *number)</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;{</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; String cmd = String(<span class="stringliteral">&quot;get &quot;</span>);</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; cmd += getObjName();</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; cmd += <span class="stringliteral">&quot;.val&quot;</span>;</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keywordflow">return</span> recvRetNumber(number);</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;}</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="class_nex_checkbox.html#aa932e7c45765400618dce1804766264b"> 31</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_nex_checkbox.html#aa932e7c45765400618dce1804766264b">NexCheckbox::setValue</a>(uint32_t number)</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <span class="keywordtype">char</span> buf[10] = {0};</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; String cmd;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; utoa(number, buf, 10);</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; cmd += getObjName();</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; cmd += <span class="stringliteral">&quot;.val=&quot;</span>;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; cmd += buf;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordflow">return</span> recvRetCommandFinished();</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;}</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="class_nex_checkbox.html#abca30f46ecb7a4c88d816af85fa7f777"> 45</a></span>&#160;uint32_t <a class="code" href="class_nex_checkbox.html#abca30f46ecb7a4c88d816af85fa7f777">NexCheckbox::Get_background_color_bco</a>(uint32_t *number)</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;{</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; String cmd;</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; cmd += <span class="stringliteral">&quot;get &quot;</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; cmd += getObjName();</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; cmd += <span class="stringliteral">&quot;.bco&quot;</span>;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordflow">return</span> recvRetNumber(number);</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;}</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_nex_checkbox.html#ab430ba5908c84fea8ab910002581350a"> 55</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_nex_checkbox.html#ab430ba5908c84fea8ab910002581350a">NexCheckbox::Set_background_color_bco</a>(uint32_t number)</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;{</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordtype">char</span> buf[10] = {0};</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; String cmd;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; utoa(number, buf, 10);</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; cmd += getObjName();</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; cmd += <span class="stringliteral">&quot;.bco=&quot;</span>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; cmd += buf;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; cmd=<span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; cmd += <span class="stringliteral">&quot;ref &quot;</span>;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; cmd += getObjName();</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keywordflow">return</span> recvRetCommandFinished();</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;}</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_nex_checkbox.html#a93fbcf8796f156e6700ebf3e13abfce6"> 73</a></span>&#160;uint32_t <a class="code" href="class_nex_checkbox.html#a93fbcf8796f156e6700ebf3e13abfce6">NexCheckbox::Get_font_color_pco</a>(uint32_t *number)</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;{</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; String cmd;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; cmd += <span class="stringliteral">&quot;get &quot;</span>;</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; cmd += getObjName();</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; cmd += <span class="stringliteral">&quot;.pco&quot;</span>;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordflow">return</span> recvRetNumber(number);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;}</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_nex_checkbox.html#aa1d52cc0170f11ec85263770fe77db2a"> 83</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_nex_checkbox.html#aa1d52cc0170f11ec85263770fe77db2a">NexCheckbox::Set_font_color_pco</a>(uint32_t number)</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;{</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordtype">char</span> buf[10] = {0};</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; String cmd;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; utoa(number, buf, 10);</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; cmd += getObjName();</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; cmd += <span class="stringliteral">&quot;.pco=&quot;</span>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; cmd += buf;</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; cmd = <span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; cmd += <span class="stringliteral">&quot;ref &quot;</span>;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; cmd += getObjName();</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordflow">return</span> recvRetCommandFinished();</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;}</div>
<div class="ttc" id="class_nex_checkbox_html_aa932e7c45765400618dce1804766264b"><div class="ttname"><a href="class_nex_checkbox.html#aa932e7c45765400618dce1804766264b">NexCheckbox::setValue</a></div><div class="ttdeci">bool setValue(uint32_t number)</div><div class="ttdoc">Set val attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00031">NexCheckbox.cpp:31</a></div></div>
<div class="ttc" id="class_nex_checkbox_html_ab430ba5908c84fea8ab910002581350a"><div class="ttname"><a href="class_nex_checkbox.html#ab430ba5908c84fea8ab910002581350a">NexCheckbox::Set_background_color_bco</a></div><div class="ttdeci">bool Set_background_color_bco(uint32_t number)</div><div class="ttdoc">Set bco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00055">NexCheckbox.cpp:55</a></div></div>
<div class="ttc" id="class_nex_checkbox_html_aa1d52cc0170f11ec85263770fe77db2a"><div class="ttname"><a href="class_nex_checkbox.html#aa1d52cc0170f11ec85263770fe77db2a">NexCheckbox::Set_font_color_pco</a></div><div class="ttdeci">bool Set_font_color_pco(uint32_t number)</div><div class="ttdoc">Set pco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00083">NexCheckbox.cpp:83</a></div></div>
<div class="ttc" id="class_nex_checkbox_html_abca30f46ecb7a4c88d816af85fa7f777"><div class="ttname"><a href="class_nex_checkbox.html#abca30f46ecb7a4c88d816af85fa7f777">NexCheckbox::Get_background_color_bco</a></div><div class="ttdeci">uint32_t Get_background_color_bco(uint32_t *number)</div><div class="ttdoc">Get bco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00045">NexCheckbox.cpp:45</a></div></div>
<div class="ttc" id="class_nex_checkbox_html_a93fbcf8796f156e6700ebf3e13abfce6"><div class="ttname"><a href="class_nex_checkbox.html#a93fbcf8796f156e6700ebf3e13abfce6">NexCheckbox::Get_font_color_pco</a></div><div class="ttdeci">uint32_t Get_font_color_pco(uint32_t *number)</div><div class="ttdoc">Get pco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00073">NexCheckbox.cpp:73</a></div></div>
<div class="ttc" id="_nex_checkbox_8h_html"><div class="ttname"><a href="_nex_checkbox_8h.html">NexCheckbox.h</a></div><div class="ttdoc">The definition of class NexCheckbox. </div></div>
<div class="ttc" id="class_nex_checkbox_html_a6832110a49f9bbbb14a54f36db020d44"><div class="ttname"><a href="class_nex_checkbox.html#a6832110a49f9bbbb14a54f36db020d44">NexCheckbox::getValue</a></div><div class="ttdeci">uint32_t getValue(uint32_t *number)</div><div class="ttdoc">Get val attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00022">NexCheckbox.cpp:22</a></div></div>
<div class="ttc" id="class_nex_checkbox_html_a8aa4ea60796bdce0de0de3dd675ef56a"><div class="ttname"><a href="class_nex_checkbox.html#a8aa4ea60796bdce0de0de3dd675ef56a">NexCheckbox::NexCheckbox</a></div><div class="ttdeci">NexCheckbox(uint8_t pid, uint8_t cid, const char *name)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00017">NexCheckbox.cpp:17</a></div></div>
<div class="ttc" id="class_nex_touch_html"><div class="ttname"><a href="class_nex_touch.html">NexTouch</a></div><div class="ttdoc">Father class of the components with touch events. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_touch_8h_source.html#l00053">NexTouch.h:53</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_checkbox_8cpp.html">NexCheckbox.cpp</a></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,110 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Documentation: NexCheckbox.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Documentation
</div>
<div id="projectbrief">For Arduino users</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_nex_checkbox_8h.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> </div>
<div class="headertitle">
<div class="title">NexCheckbox.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>The definition of class <a class="el" href="class_nex_checkbox.html" title="NexButton component. ">NexCheckbox</a>.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="_nex_touch_8h_source.html">NexTouch.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_nex_hardware_8h_source.html">NexHardware.h</a>&quot;</code><br />
</div>
<p><a href="_nex_checkbox_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nex_checkbox.html">NexCheckbox</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_nex_button.html" title="NexButton component. ">NexButton</a> component. <a href="class_nex_checkbox.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The definition of class <a class="el" href="class_nex_checkbox.html" title="NexButton component. ">NexCheckbox</a>. </p>
<dl class="section author"><dt>Author</dt><dd>huang xiaoming (email:<a href="#" onclick="location.href='mai'+'lto:'+'xia'+'om'+'ing'+'.h'+'uan'+'g@'+'ite'+'ad'+'.cc'; return false;">xiaom<span style="display: none;">.nosp@m.</span>ing.<span style="display: none;">.nosp@m.</span>huang<span style="display: none;">.nosp@m.</span>@ite<span style="display: none;">.nosp@m.</span>ad.cc</a>) </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2016/9/13</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. <br />
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. </dd></dl>
<p>Definition in file <a class="el" href="_nex_checkbox_8h_source.html">NexCheckbox.h</a>.</p>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_checkbox_8h.html">NexCheckbox.h</a></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,4 @@
<map id="NexCheckbox.h" name="NexCheckbox.h">
<area shape="rect" id="node2" href="$_nex_checkbox_8cpp.html" title="The implementation of class NexCheckbox. " alt="" coords="5,80,136,107"/>
<area shape="rect" id="node3" href="$_nextion_8h.html" title="The header file including all other header files provided by this library. " alt="" coords="161,80,239,107"/>
</map>

View File

@@ -0,0 +1 @@
0fac01178c8aa0891c549d5523037075

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@@ -0,0 +1,6 @@
<map id="NexCheckbox.h" name="NexCheckbox.h">
<area shape="rect" id="node2" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="83,155,176,181"/>
<area shape="rect" id="node6" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,80,234,107"/>
<area shape="rect" id="node4" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="167,304,262,331"/>
<area shape="rect" id="node5" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,229,177,256"/>
</map>

View File

@@ -0,0 +1 @@
59130d9f175fc8bd281df18986305a35

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -0,0 +1,122 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Documentation: NexCheckbox.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Documentation
</div>
<div id="projectbrief">For Arduino users</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_nex_checkbox_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">NexCheckbox.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="_nex_checkbox_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#ifndef __NEXCHECKBOX_H__</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#define __NEXCHECKBOX_H__</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_nex_touch_8h.html">NexTouch.h</a>&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_nex_hardware_8h.html">NexHardware.h</a>&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_nex_checkbox.html"> 35</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_nex_checkbox.html">NexCheckbox</a>: <span class="keyword">public</span> <a class="code" href="class_nex_touch.html">NexTouch</a></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;{</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">public</span>: <span class="comment">/* methods */</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <a class="code" href="class_nex_checkbox.html#a8aa4ea60796bdce0de0de3dd675ef56a">NexCheckbox</a>(uint8_t pid, uint8_t cid, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; uint32_t <a class="code" href="class_nex_checkbox.html#a6832110a49f9bbbb14a54f36db020d44">getValue</a>(uint32_t *number);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nex_checkbox.html#aa932e7c45765400618dce1804766264b">setValue</a>(uint32_t number);</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; uint32_t <a class="code" href="class_nex_checkbox.html#abca30f46ecb7a4c88d816af85fa7f777">Get_background_color_bco</a>(uint32_t *number); </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nex_checkbox.html#ab430ba5908c84fea8ab910002581350a">Set_background_color_bco</a>(uint32_t number); </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; uint32_t <a class="code" href="class_nex_checkbox.html#a93fbcf8796f156e6700ebf3e13abfce6">Get_font_color_pco</a>(uint32_t *number); </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nex_checkbox.html#aa1d52cc0170f11ec85263770fe77db2a">Set_font_color_pco</a>(uint32_t number); </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;};</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* #ifndef __NEXCHECKBOX_H__ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_nex_checkbox_html_aa932e7c45765400618dce1804766264b"><div class="ttname"><a href="class_nex_checkbox.html#aa932e7c45765400618dce1804766264b">NexCheckbox::setValue</a></div><div class="ttdeci">bool setValue(uint32_t number)</div><div class="ttdoc">Set val attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00031">NexCheckbox.cpp:31</a></div></div>
<div class="ttc" id="class_nex_checkbox_html_ab430ba5908c84fea8ab910002581350a"><div class="ttname"><a href="class_nex_checkbox.html#ab430ba5908c84fea8ab910002581350a">NexCheckbox::Set_background_color_bco</a></div><div class="ttdeci">bool Set_background_color_bco(uint32_t number)</div><div class="ttdoc">Set bco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00055">NexCheckbox.cpp:55</a></div></div>
<div class="ttc" id="class_nex_checkbox_html_aa1d52cc0170f11ec85263770fe77db2a"><div class="ttname"><a href="class_nex_checkbox.html#aa1d52cc0170f11ec85263770fe77db2a">NexCheckbox::Set_font_color_pco</a></div><div class="ttdeci">bool Set_font_color_pco(uint32_t number)</div><div class="ttdoc">Set pco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00083">NexCheckbox.cpp:83</a></div></div>
<div class="ttc" id="class_nex_checkbox_html_abca30f46ecb7a4c88d816af85fa7f777"><div class="ttname"><a href="class_nex_checkbox.html#abca30f46ecb7a4c88d816af85fa7f777">NexCheckbox::Get_background_color_bco</a></div><div class="ttdeci">uint32_t Get_background_color_bco(uint32_t *number)</div><div class="ttdoc">Get bco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00045">NexCheckbox.cpp:45</a></div></div>
<div class="ttc" id="class_nex_checkbox_html_a93fbcf8796f156e6700ebf3e13abfce6"><div class="ttname"><a href="class_nex_checkbox.html#a93fbcf8796f156e6700ebf3e13abfce6">NexCheckbox::Get_font_color_pco</a></div><div class="ttdeci">uint32_t Get_font_color_pco(uint32_t *number)</div><div class="ttdoc">Get pco attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00073">NexCheckbox.cpp:73</a></div></div>
<div class="ttc" id="_nex_touch_8h_html"><div class="ttname"><a href="_nex_touch_8h.html">NexTouch.h</a></div><div class="ttdoc">The definition of class NexTouch. </div></div>
<div class="ttc" id="class_nex_checkbox_html_a6832110a49f9bbbb14a54f36db020d44"><div class="ttname"><a href="class_nex_checkbox.html#a6832110a49f9bbbb14a54f36db020d44">NexCheckbox::getValue</a></div><div class="ttdeci">uint32_t getValue(uint32_t *number)</div><div class="ttdoc">Get val attribute of component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00022">NexCheckbox.cpp:22</a></div></div>
<div class="ttc" id="_nex_hardware_8h_html"><div class="ttname"><a href="_nex_hardware_8h.html">NexHardware.h</a></div><div class="ttdoc">The definition of base API for using Nextion. </div></div>
<div class="ttc" id="class_nex_checkbox_html"><div class="ttname"><a href="class_nex_checkbox.html">NexCheckbox</a></div><div class="ttdoc">NexButton component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8h_source.html#l00035">NexCheckbox.h:35</a></div></div>
<div class="ttc" id="class_nex_checkbox_html_a8aa4ea60796bdce0de0de3dd675ef56a"><div class="ttname"><a href="class_nex_checkbox.html#a8aa4ea60796bdce0de0de3dd675ef56a">NexCheckbox::NexCheckbox</a></div><div class="ttdeci">NexCheckbox(uint8_t pid, uint8_t cid, const char *name)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_checkbox_8cpp_source.html#l00017">NexCheckbox.cpp:17</a></div></div>
<div class="ttc" id="class_nex_touch_html"><div class="ttname"><a href="class_nex_touch.html">NexTouch</a></div><div class="ttdoc">Father class of the components with touch events. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_touch_8h_source.html#l00053">NexTouch.h:53</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_checkbox_8h.html">NexCheckbox.h</a></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -107,7 +107,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_config_8h.html">NexConfig.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -99,7 +99,7 @@ $(document).ready(function(){initNavTree('_nex_config_8h_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_config_8h.html">NexConfig.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -91,7 +91,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_crop_8cpp.html">NexCrop.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -138,7 +138,7 @@ $(document).ready(function(){initNavTree('_nex_crop_8cpp_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_crop_8cpp.html">NexCrop.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -101,7 +101,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_crop_8h.html">NexCrop.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -108,7 +108,7 @@ $(document).ready(function(){initNavTree('_nex_crop_8h_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_crop_8h.html">NexCrop.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -91,7 +91,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_dual_state_button_8cpp.html">NexDualStateButton.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -0,0 +1,7 @@
<map id="NexDualStateButton.cpp" name="NexDualStateButton.cpp">
<area shape="rect" id="node2" href="$_nex_dual_state_button_8h.html" title="The definition of class NexDSButton. " alt="" coords="53,80,206,107"/>
<area shape="rect" id="node3" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="83,229,176,256"/>
<area shape="rect" id="node7" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,155,234,181"/>
<area shape="rect" id="node5" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="167,379,262,405"/>
<area shape="rect" id="node6" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,304,177,331"/>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -437,7 +437,7 @@ $(document).ready(function(){initNavTree('_nex_dual_state_button_8cpp_source.htm
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_dual_state_button_8cpp.html">NexDualStateButton.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -101,7 +101,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_dual_state_button_8h.html">NexDualStateButton.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -0,0 +1,4 @@
<map id="NexDualStateButton.h" name="NexDualStateButton.h">
<area shape="rect" id="node2" href="$_nex_dual_state_button_8cpp.html" title="The implementation of class NexDSButton. " alt="" coords="5,80,172,107"/>
<area shape="rect" id="node3" href="$_nextion_8h.html" title="The header file including all other header files provided by this library. " alt="" coords="196,80,275,107"/>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@@ -0,0 +1,6 @@
<map id="NexDualStateButton.h" name="NexDualStateButton.h">
<area shape="rect" id="node2" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="83,155,176,181"/>
<area shape="rect" id="node6" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,80,234,107"/>
<area shape="rect" id="node4" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="167,304,262,331"/>
<area shape="rect" id="node5" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,229,177,256"/>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -166,7 +166,7 @@ $(document).ready(function(){initNavTree('_nex_dual_state_button_8h_source.html'
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_dual_state_button_8h.html">NexDualStateButton.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -91,7 +91,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_gauge_8cpp.html">NexGauge.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -234,7 +234,7 @@ $(document).ready(function(){initNavTree('_nex_gauge_8cpp_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_gauge_8cpp.html">NexGauge.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -101,7 +101,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_gauge_8h.html">NexGauge.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -125,7 +125,7 @@ $(document).ready(function(){initNavTree('_nex_gauge_8h_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_gauge_8h.html">NexGauge.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -0,0 +1,100 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Documentation: NexGpio.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Documentation
</div>
<div id="projectbrief">For Arduino users</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_nex_gpio_8cpp.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">NexGpio.cpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>The implementation of class <a class="el" href="class_nex_gpio.html" title="NexGpio component. ">NexGpio</a>.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="_nex_gpio_8h_source.html">NexGpio.h</a>&quot;</code><br />
</div>
<p><a href="_nex_gpio_8cpp_source.html">Go to the source code of this file.</a></p>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The implementation of class <a class="el" href="class_nex_gpio.html" title="NexGpio component. ">NexGpio</a>. </p>
<dl class="section author"><dt>Author</dt><dd>Wu Pengfei (email:<a href="#" onclick="location.href='mai'+'lto:'+'pen'+'gf'+'ei.'+'wu'+'@it'+'ea'+'d.c'+'c'; return false;">pengf<span style="display: none;">.nosp@m.</span>ei.w<span style="display: none;">.nosp@m.</span>u@ite<span style="display: none;">.nosp@m.</span>ad.c<span style="display: none;">.nosp@m.</span>c</a>) </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2015/8/13 </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. <br />
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. </dd></dl>
<p>Definition in file <a class="el" href="_nex_gpio_8cpp_source.html">NexGpio.cpp</a>.</p>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_gpio_8cpp.html">NexGpio.cpp</a></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,185 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Documentation: NexGpio.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Documentation
</div>
<div id="projectbrief">For Arduino users</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_nex_gpio_8cpp_source.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">NexGpio.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="_nex_gpio_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_nex_gpio_8h.html">NexGpio.h</a>&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_nex_gpio.html#adbe08eb11827d75c6b2e9c935d9da19a"> 17</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_nex_gpio.html#adbe08eb11827d75c6b2e9c935d9da19a">NexGpio::pin_mode</a>(uint32_t port,uint32_t mode,uint32_t control_id)</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;{</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; <span class="keywordtype">char</span> buf;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; String cmd;</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; cmd += <span class="stringliteral">&quot;cfgpio &quot;</span>;</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; buf = port + <span class="charliteral">&#39;0&#39;</span>;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; cmd += buf;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; cmd += <span class="charliteral">&#39;,&#39;</span>;</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; buf = mode + <span class="charliteral">&#39;0&#39;</span>;</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; cmd += buf;</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; cmd += <span class="charliteral">&#39;,&#39;</span>;</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; buf = control_id = <span class="charliteral">&#39;0&#39;</span>;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; cmd += buf;</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <span class="keywordflow">return</span> recvRetCommandFinished();</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;}</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="class_nex_gpio.html#aaea4cb428fa0a2e26927073c20ed64ac"> 37</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_nex_gpio.html#aaea4cb428fa0a2e26927073c20ed64ac">NexGpio::digital_write</a>(uint32_t port,uint32_t value)</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;{</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; String cmd;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordtype">char</span> buf;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; cmd += <span class="stringliteral">&quot;pio&quot;</span>;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; buf = port + <span class="charliteral">&#39;0&#39;</span>;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; cmd += buf;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; cmd += <span class="charliteral">&#39;=&#39;</span>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; buf = value + <span class="charliteral">&#39;0&#39;</span>;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; cmd += buf;</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordflow">return</span> recvRetCommandFinished();</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;}</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="class_nex_gpio.html#a36386b97898f0960abda51c6010378eb"> 53</a></span>&#160;uint32_t <a class="code" href="class_nex_gpio.html#a36386b97898f0960abda51c6010378eb">NexGpio::digital_read</a>(uint32_t port)</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;{</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; uint32_t number;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordtype">char</span> buf;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; String cmd = String(<span class="stringliteral">&quot;get &quot;</span>);</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; cmd += <span class="stringliteral">&quot;pio&quot;</span>;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; buf = port + <span class="charliteral">&#39;0&#39;</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; cmd += buf;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; recvRetNumber(&amp;number);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">return</span> number;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;}</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="class_nex_gpio.html#af21eb91b041d149193bc716202d4a462"> 68</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_nex_gpio.html#af21eb91b041d149193bc716202d4a462">NexGpio::analog_write</a>(uint32_t port,uint32_t value)</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;{</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keywordtype">char</span> buf[10] = {0};</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keywordtype">char</span> c;</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; String cmd;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; utoa(value, buf, 10);</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; cmd += <span class="stringliteral">&quot;pwm&quot;</span>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; c = port + <span class="charliteral">&#39;0&#39;</span>;</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; cmd += c;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; cmd += <span class="charliteral">&#39;=&#39;</span>;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; cmd += buf;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; Serial.print(cmd);</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordflow">return</span> recvRetCommandFinished(); </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;}</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="class_nex_gpio.html#a62c2cb633e321ef2273eb3a7af6a5b47"> 86</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_nex_gpio.html#a62c2cb633e321ef2273eb3a7af6a5b47">NexGpio::set_pwmfreq</a>(uint32_t value)</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;{</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordtype">char</span> buf[10] = {0};</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; String cmd;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; utoa(value, buf, 10);</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; cmd += <span class="stringliteral">&quot;pwmf&quot;</span>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; cmd += <span class="charliteral">&#39;=&#39;</span>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; cmd += buf;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordflow">return</span> recvRetCommandFinished(); </div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;}</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="class_nex_gpio.html#a8fca87ac0cdfbc8a62dec807b949c36d"> 100</a></span>&#160;uint32_t <a class="code" href="class_nex_gpio.html#a8fca87ac0cdfbc8a62dec807b949c36d">NexGpio::get_pwmfreq</a>(uint32_t *number)</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;{</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; String cmd = String(<span class="stringliteral">&quot;get pwmf&quot;</span>);</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; sendCommand(cmd.c_str());</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keywordflow">return</span> recvRetNumber(number);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;}</div>
<div class="ttc" id="class_nex_gpio_html_aaea4cb428fa0a2e26927073c20ed64ac"><div class="ttname"><a href="class_nex_gpio.html#aaea4cb428fa0a2e26927073c20ed64ac">NexGpio::digital_write</a></div><div class="ttdeci">bool digital_write(uint32_t port, uint32_t value)</div><div class="ttdoc">write a HIGH or a LOW value to a digital pin </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00037">NexGpio.cpp:37</a></div></div>
<div class="ttc" id="class_nex_gpio_html_a62c2cb633e321ef2273eb3a7af6a5b47"><div class="ttname"><a href="class_nex_gpio.html#a62c2cb633e321ef2273eb3a7af6a5b47">NexGpio::set_pwmfreq</a></div><div class="ttdeci">bool set_pwmfreq(uint32_t value)</div><div class="ttdoc">writes pwm output frequency </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00086">NexGpio.cpp:86</a></div></div>
<div class="ttc" id="class_nex_gpio_html_adbe08eb11827d75c6b2e9c935d9da19a"><div class="ttname"><a href="class_nex_gpio.html#adbe08eb11827d75c6b2e9c935d9da19a">NexGpio::pin_mode</a></div><div class="ttdeci">bool pin_mode(uint32_t port, uint32_t mode, uint32_t control_id)</div><div class="ttdoc">Set gpio mode. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00017">NexGpio.cpp:17</a></div></div>
<div class="ttc" id="class_nex_gpio_html_a8fca87ac0cdfbc8a62dec807b949c36d"><div class="ttname"><a href="class_nex_gpio.html#a8fca87ac0cdfbc8a62dec807b949c36d">NexGpio::get_pwmfreq</a></div><div class="ttdeci">uint32_t get_pwmfreq(uint32_t *number)</div><div class="ttdoc">read pwm output frequency </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00100">NexGpio.cpp:100</a></div></div>
<div class="ttc" id="_nex_gpio_8h_html"><div class="ttname"><a href="_nex_gpio_8h.html">NexGpio.h</a></div><div class="ttdoc">The definition of class NexGpio. </div></div>
<div class="ttc" id="class_nex_gpio_html_af21eb91b041d149193bc716202d4a462"><div class="ttname"><a href="class_nex_gpio.html#af21eb91b041d149193bc716202d4a462">NexGpio::analog_write</a></div><div class="ttdeci">bool analog_write(uint32_t port, uint32_t value)</div><div class="ttdoc">writes an analog value (PWM wave) to a pin </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00068">NexGpio.cpp:68</a></div></div>
<div class="ttc" id="class_nex_gpio_html_a36386b97898f0960abda51c6010378eb"><div class="ttname"><a href="class_nex_gpio.html#a36386b97898f0960abda51c6010378eb">NexGpio::digital_read</a></div><div class="ttdeci">uint32_t digital_read(uint32_t port)</div><div class="ttdoc">read a HIGH or a LOW value to a digital pin </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00053">NexGpio.cpp:53</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_gpio_8cpp.html">NexGpio.cpp</a></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,110 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Documentation: NexGpio.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Documentation
</div>
<div id="projectbrief">For Arduino users</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_nex_gpio_8h.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> </div>
<div class="headertitle">
<div class="title">NexGpio.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>The definition of class <a class="el" href="class_nex_gpio.html" title="NexGpio component. ">NexGpio</a>.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="_nex_touch_8h_source.html">NexTouch.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_nex_hardware_8h_source.html">NexHardware.h</a>&quot;</code><br />
</div>
<p><a href="_nex_gpio_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nex_gpio.html">NexGpio</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_nex_gpio.html" title="NexGpio component. ">NexGpio</a> component. <a href="class_nex_gpio.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The definition of class <a class="el" href="class_nex_gpio.html" title="NexGpio component. ">NexGpio</a>. </p>
<dl class="section author"><dt>Author</dt><dd>Wu Pengfei (email:<a href="#" onclick="location.href='mai'+'lto:'+'pen'+'gf'+'ei.'+'wu'+'@it'+'ea'+'d.c'+'c'; return false;">pengf<span style="display: none;">.nosp@m.</span>ei.w<span style="display: none;">.nosp@m.</span>u@ite<span style="display: none;">.nosp@m.</span>ad.c<span style="display: none;">.nosp@m.</span>c</a>) </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2015/8/13</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. <br />
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. </dd></dl>
<p>Definition in file <a class="el" href="_nex_gpio_8h_source.html">NexGpio.h</a>.</p>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_gpio_8h.html">NexGpio.h</a></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,119 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Documentation: NexGpio.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Documentation
</div>
<div id="projectbrief">For Arduino users</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_nex_gpio_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">NexGpio.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="_nex_gpio_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#ifndef _NEXGPIO_H</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#define _NEXGPIO_H</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_nex_touch_8h.html">NexTouch.h</a>&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_nex_hardware_8h.html">NexHardware.h</a>&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="class_nex_gpio.html"> 31</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_nex_gpio.html">NexGpio</a></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nex_gpio.html#adbe08eb11827d75c6b2e9c935d9da19a">pin_mode</a>(uint32_t port,uint32_t mode,uint32_t control_id);</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nex_gpio.html#aaea4cb428fa0a2e26927073c20ed64ac">digital_write</a>(uint32_t port,uint32_t value);</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; uint32_t <a class="code" href="class_nex_gpio.html#a36386b97898f0960abda51c6010378eb">digital_read</a>(uint32_t port);</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nex_gpio.html#af21eb91b041d149193bc716202d4a462">analog_write</a>(uint32_t port,uint32_t value);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nex_gpio.html#a62c2cb633e321ef2273eb3a7af6a5b47">set_pwmfreq</a>(uint32_t value);</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; uint32_t <a class="code" href="class_nex_gpio.html#a8fca87ac0cdfbc8a62dec807b949c36d">get_pwmfreq</a>(uint32_t *number);</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;};</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* #ifndef __NEXGPIO_H__ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_nex_gpio_html_aaea4cb428fa0a2e26927073c20ed64ac"><div class="ttname"><a href="class_nex_gpio.html#aaea4cb428fa0a2e26927073c20ed64ac">NexGpio::digital_write</a></div><div class="ttdeci">bool digital_write(uint32_t port, uint32_t value)</div><div class="ttdoc">write a HIGH or a LOW value to a digital pin </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00037">NexGpio.cpp:37</a></div></div>
<div class="ttc" id="class_nex_gpio_html_a62c2cb633e321ef2273eb3a7af6a5b47"><div class="ttname"><a href="class_nex_gpio.html#a62c2cb633e321ef2273eb3a7af6a5b47">NexGpio::set_pwmfreq</a></div><div class="ttdeci">bool set_pwmfreq(uint32_t value)</div><div class="ttdoc">writes pwm output frequency </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00086">NexGpio.cpp:86</a></div></div>
<div class="ttc" id="class_nex_gpio_html_adbe08eb11827d75c6b2e9c935d9da19a"><div class="ttname"><a href="class_nex_gpio.html#adbe08eb11827d75c6b2e9c935d9da19a">NexGpio::pin_mode</a></div><div class="ttdeci">bool pin_mode(uint32_t port, uint32_t mode, uint32_t control_id)</div><div class="ttdoc">Set gpio mode. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00017">NexGpio.cpp:17</a></div></div>
<div class="ttc" id="_nex_touch_8h_html"><div class="ttname"><a href="_nex_touch_8h.html">NexTouch.h</a></div><div class="ttdoc">The definition of class NexTouch. </div></div>
<div class="ttc" id="class_nex_gpio_html_a8fca87ac0cdfbc8a62dec807b949c36d"><div class="ttname"><a href="class_nex_gpio.html#a8fca87ac0cdfbc8a62dec807b949c36d">NexGpio::get_pwmfreq</a></div><div class="ttdeci">uint32_t get_pwmfreq(uint32_t *number)</div><div class="ttdoc">read pwm output frequency </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00100">NexGpio.cpp:100</a></div></div>
<div class="ttc" id="_nex_hardware_8h_html"><div class="ttname"><a href="_nex_hardware_8h.html">NexHardware.h</a></div><div class="ttdoc">The definition of base API for using Nextion. </div></div>
<div class="ttc" id="class_nex_gpio_html"><div class="ttname"><a href="class_nex_gpio.html">NexGpio</a></div><div class="ttdoc">NexGpio component. </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8h_source.html#l00031">NexGpio.h:31</a></div></div>
<div class="ttc" id="class_nex_gpio_html_af21eb91b041d149193bc716202d4a462"><div class="ttname"><a href="class_nex_gpio.html#af21eb91b041d149193bc716202d4a462">NexGpio::analog_write</a></div><div class="ttdeci">bool analog_write(uint32_t port, uint32_t value)</div><div class="ttdoc">writes an analog value (PWM wave) to a pin </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00068">NexGpio.cpp:68</a></div></div>
<div class="ttc" id="class_nex_gpio_html_a36386b97898f0960abda51c6010378eb"><div class="ttname"><a href="class_nex_gpio.html#a36386b97898f0960abda51c6010378eb">NexGpio::digital_read</a></div><div class="ttdeci">uint32_t digital_read(uint32_t port)</div><div class="ttdoc">read a HIGH or a LOW value to a digital pin </div><div class="ttdef"><b>Definition:</b> <a href="_nex_gpio_8cpp_source.html#l00053">NexGpio.cpp:53</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_gpio_8h.html">NexGpio.h</a></li>
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -103,7 +103,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_hardware_8cpp.html">NexHardware.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -124,7 +124,7 @@ $(document).ready(function(){initNavTree('_nex_hardware_8cpp_source.html','');})
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; &amp;&amp; temp[7] == 0xFF</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; )</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; {</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; *number = (temp[4] &lt;&lt; 24) | (temp[3] &lt;&lt; 16) | (temp[2] &lt;&lt; 8) | (temp[1]);</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; *number = ((uint32_t)temp[4] &lt;&lt; 24) | ((uint32_t)temp[3] &lt;&lt; 16) | (temp[2] &lt;&lt; 8) | (temp[1]);</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; ret = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; }</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;</div>
@@ -336,7 +336,7 @@ $(document).ready(function(){initNavTree('_nex_hardware_8cpp_source.html','');})
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_hardware_8cpp.html">NexHardware.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -105,7 +105,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_hardware_8h.html">NexHardware.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -99,7 +99,7 @@ $(document).ready(function(){initNavTree('_nex_hardware_8h_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_hardware_8h.html">NexHardware.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:35 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -91,7 +91,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_hotspot_8cpp.html">NexHotspot.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -88,7 +88,7 @@ $(document).ready(function(){initNavTree('_nex_hotspot_8cpp_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_hotspot_8cpp.html">NexHotspot.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -101,7 +101,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_hotspot_8h.html">NexHotspot.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -94,7 +94,7 @@ $(document).ready(function(){initNavTree('_nex_hotspot_8h_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_hotspot_8h.html">NexHotspot.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -91,7 +91,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_number_8cpp.html">NexNumber.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -0,0 +1,7 @@
<map id="NexNumber.cpp" name="NexNumber.cpp">
<area shape="rect" id="node2" href="$_nex_number_8h.html" title="The definition of class NexNumber. " alt="" coords="78,80,181,107"/>
<area shape="rect" id="node3" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="83,229,176,256"/>
<area shape="rect" id="node7" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,155,234,181"/>
<area shape="rect" id="node5" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="167,379,262,405"/>
<area shape="rect" id="node6" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,304,177,331"/>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -351,7 +351,7 @@ $(document).ready(function(){initNavTree('_nex_number_8cpp_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_number_8cpp.html">NexNumber.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -101,7 +101,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_number_8h.html">NexNumber.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -0,0 +1,4 @@
<map id="NexNumber.h" name="NexNumber.h">
<area shape="rect" id="node2" href="$_nex_number_8cpp.html" title="The implementation of class NexNumber. " alt="" coords="5,80,123,107"/>
<area shape="rect" id="node3" href="$_nextion_8h.html" title="The header file including all other header files provided by this library. " alt="" coords="147,80,226,107"/>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -0,0 +1,6 @@
<map id="NexNumber.h" name="NexNumber.h">
<area shape="rect" id="node2" href="$_nex_touch_8h.html" title="The definition of class NexTouch. " alt="" coords="83,155,176,181"/>
<area shape="rect" id="node6" href="$_nex_hardware_8h.html" title="The definition of base API for using Nextion. " alt="" coords="121,80,234,107"/>
<area shape="rect" id="node4" href="$_nex_config_8h.html" title="Options for user can be found here. " alt="" coords="167,304,262,331"/>
<area shape="rect" id="node5" href="$_nex_object_8h.html" title="The definition of class NexObject. " alt="" coords="82,229,177,256"/>
</map>

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -149,7 +149,7 @@ $(document).ready(function(){initNavTree('_nex_number_8h_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_number_8h.html">NexNumber.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -91,7 +91,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_object_8cpp.html">NexObject.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -125,7 +125,7 @@ $(document).ready(function(){initNavTree('_nex_object_8cpp_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_object_8cpp.html">NexObject.cpp</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -101,7 +101,7 @@ This program is free software; you can redistribute it and/or modify it under th
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_object_8h.html">NexObject.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:08 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

View File

@@ -123,7 +123,7 @@ $(document).ready(function(){initNavTree('_nex_object_8h_source.html','');});
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="_nex_object_8h.html">NexObject.h</a></li>
<li class="footer">Generated on Tue Oct 11 2016 14:29:36 for Documentation by
<li class="footer">Generated on Thu Dec 8 2016 14:46:07 for Documentation by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
</ul>

Some files were not shown because too many files have changed in this diff Show More