Documentation: NexGpio.h Source File

| Documentation For Arduino users

- Main Page
- Related Pages
- Modules
- Classes
- Files
- Examples

- File List
- File Members

NexGpio.h
Go to the documentation of this file.
1
17 #ifndef _NEXGPIO_H
18 #define _NEXGPIO_H
19
20 #include "NexTouch.h"
21 #include "NexHardware.h"
31 class NexGpio
32 {
33 public:
47 bool pin_mode(uint32_t port,uint32_t mode,uint32_t control_id);
48
57 bool digital_write(uint32_t port,uint32_t value);
58
66 uint32_t digital_read(uint32_t port);
67
76 bool analog_write(uint32_t port,uint32_t value);
77
85 bool set_pwmfreq(uint32_t value);
86
94 uint32_t get_pwmfreq(uint32_t *number);
95
96 };
97
102 #endif /* #ifndef __NEXGPIO_H__ */
NexGpio::digital_write
bool digital_write(uint32_t port, uint32_t value)
write a HIGH or a LOW value to a digital pin
Definition: NexGpio.cpp:37
NexGpio::set_pwmfreq
bool set_pwmfreq(uint32_t value)
writes pwm output frequency
Definition: NexGpio.cpp:86
NexGpio::pin_mode
bool pin_mode(uint32_t port, uint32_t mode, uint32_t control_id)
Set gpio mode.
Definition: NexGpio.cpp:17
NexTouch.h
The definition of class NexTouch.
NexGpio::get_pwmfreq
uint32_t get_pwmfreq(uint32_t *number)
read pwm output frequency
Definition: NexGpio.cpp:100
NexHardware.h
The definition of base API for using Nextion.
NexGpio
NexGpio component.
Definition: NexGpio.h:31
NexGpio::analog_write
bool analog_write(uint32_t port, uint32_t value)
writes an analog value (PWM wave) to a pin
Definition: NexGpio.cpp:68
NexGpio::digital_read
uint32_t digital_read(uint32_t port)
read a HIGH or a LOW value to a digital pin
Definition: NexGpio.cpp:53