forked from itead/ITEADLIB_Arduino_Nextion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee26de2
commit 1b3afa9
Showing
395 changed files
with
7,014 additions
and
3,286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,36 @@ | ||
/** | ||
* @file NexGpio.h | ||
* | ||
* The definition of class NexGpio. | ||
* | ||
* @author Wu Pengfei (email:<[email protected]>) | ||
* @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: | ||
public: | ||
/** | ||
* Set gpio mode | ||
* | ||
|
@@ -24,17 +47,17 @@ class NexGpio | |
bool pin_mode(uint32_t port,uint32_t mode,uint32_t control_id); | ||
|
||
/** | ||
* write a high or a LOW value to a digital pin | ||
* write a HIGH or a LOW value to a digital pin | ||
* | ||
* @param port - the gpio port number | ||
* @param mode - 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 | ||
* 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 | ||
|
@@ -69,14 +92,11 @@ class NexGpio | |
*/ | ||
|
||
uint32_t get_pwmfreq(uint32_t *number); | ||
|
||
/** | ||
* write rtc times | ||
* | ||
* @param time - Time to write to the array | ||
* @return true if success, false for failure | ||
*/ | ||
|
||
}; | ||
|
||
#endif | ||
/** | ||
* @} | ||
*/ | ||
|
||
#endif /* #ifndef __NEXGPIO_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,32 @@ | ||
/** | ||
* @file NexRtc.h | ||
* | ||
* The definition of class NexRtc. | ||
* | ||
* @author Wu Pengfei (email:<[email protected]>) | ||
* @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 | ||
{ | ||
|
@@ -35,7 +58,7 @@ class NexRtc | |
* read rtc time | ||
* | ||
* @param time - Access data array | ||
* @param time - len of array | ||
* @param len - len of array | ||
* @return true if success, false for failure | ||
*/ | ||
|
||
|
@@ -55,12 +78,16 @@ class NexRtc | |
* read rtc time | ||
* | ||
* @param time - Access data array | ||
* @param time - len of 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 | ||
/** | ||
* @} | ||
*/ | ||
|
||
#endif /* #ifndef __NEXRTC_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.