7 #define GPIO_PUSH_PORT 1
8 #define GPIO_PWM_PORT 2
9 #define GPIO_PUSH_OUTPUT_MODE 2
10 #define GPIO_PWM_OUT_MODE 3
11 #define CONTROLS_ID 0 //when the modeel is 1 to be valid
13 uint32_t pwm_value = 0;
18 gpio.
pin_mode(GPIO_PUSH_PORT,GPIO_PUSH_OUTPUT_MODE,CONTROLS_ID);
19 gpio.
pin_mode(GPIO_PWM_PORT,GPIO_PWM_OUT_MODE,CONTROLS_ID);
#define nexSerial
Define nexSerial for communicate with Nextion touch panel.
bool digital_write(uint32_t port, uint32_t value)
write a HIGH or a LOW value to a digital pin
bool pin_mode(uint32_t port, uint32_t mode, uint32_t control_id)
Set gpio mode.
The header file including all other header files provided by this library.
bool setValue(uint32_t number)
Set number attribute of component.
bool analog_write(uint32_t port, uint32_t value)
writes an analog value (PWM wave) to a pin
uint32_t digital_read(uint32_t port)
read a HIGH or a LOW value to a digital pin