mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-09 13:35:26 +00:00
ESP32-Console
This commit is contained in:
@@ -14,10 +14,10 @@ static void register_gpio(void);
|
|||||||
gpio_config_t pin_config;
|
gpio_config_t pin_config;
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
struct arg_int *gpio;
|
struct arg_int *gpio; // Stores GPIO number
|
||||||
struct arg_str *mode;
|
struct arg_str *mode; // Stores Input or Output mode
|
||||||
struct arg_int *level;
|
struct arg_int *level; // Stores HIGH or LOW level
|
||||||
struct arg_int *pwm;
|
struct arg_int *pwm; // Stores cycle duty value (PWM)
|
||||||
struct arg_end *end;
|
struct arg_end *end;
|
||||||
} gpio_set_args;
|
} gpio_set_args;
|
||||||
static int exec_gpio_set_cmd (int argc, char **argv) {
|
static int exec_gpio_set_cmd (int argc, char **argv) {
|
||||||
|
Reference in New Issue
Block a user