mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 08:16:08 +00:00
ESP32-Console
This commit is contained in:
0
ESP32-Console/build/.ninja_lock
Normal file
0
ESP32-Console/build/.ninja_lock
Normal file
2
ESP32-Console/build/CMakeFiles/git-data/HEAD
Normal file → Executable file
2
ESP32-Console/build/CMakeFiles/git-data/HEAD
Normal file → Executable file
@@ -1 +1 @@
|
|||||||
ref: refs/heads/main
|
9d7f2d69f50d1288526d4f1027108e314e8c879f
|
||||||
|
@@ -18,7 +18,7 @@ set(HEAD_HASH)
|
|||||||
file(READ "/home/abobkov/MyProjects/ESP-Nodes/ESP32-Console/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024)
|
file(READ "/home/abobkov/MyProjects/ESP-Nodes/ESP32-Console/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024)
|
||||||
|
|
||||||
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
|
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
|
||||||
set(GIT_DIR "/home/abobkov/MyProjects/ESP-Nodes/.git")
|
set(GIT_DIR "/home/abobkov/esp/v5.3.2/esp-idf/.git")
|
||||||
# handle git-worktree
|
# handle git-worktree
|
||||||
if(EXISTS "${GIT_DIR}/commondir")
|
if(EXISTS "${GIT_DIR}/commondir")
|
||||||
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)
|
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)
|
||||||
|
2
ESP32-Console/build/CMakeFiles/git-data/head-ref
Normal file → Executable file
2
ESP32-Console/build/CMakeFiles/git-data/head-ref
Normal file → Executable file
@@ -1 +1 @@
|
|||||||
d1a3727c19e3ef9debd6ece14cb0211c5a0fcb0e
|
9d7f2d69f50d1288526d4f1027108e314e8c879f
|
||||||
|
@@ -35,7 +35,10 @@ static int exec_gpio_set_cmd (int argc, char **argv) {
|
|||||||
// Check that the minimal required arguments were passed, i.e. pin #, mode, and logic level.
|
// Check that the minimal required arguments were passed, i.e. pin #, mode, and logic level.
|
||||||
if (gpio_set_args.gpio->count > 0 && gpio_set_args.level->count > 0) {
|
if (gpio_set_args.gpio->count > 0 && gpio_set_args.level->count > 0) {
|
||||||
// Display brief summary of passed arguments.
|
// Display brief summary of passed arguments.
|
||||||
ESP_LOGI("GPIO", "pin: %i, mode: %s, level: %i", gpio_set_args.gpio->ival[0], gpio_set_args.mode->sval[0], gpio_set_args.level->ival[0]);
|
ESP_LOGI("GPIO", "pin: %i, mode: %s, level: %i",
|
||||||
|
gpio_set_args.gpio->ival[0],
|
||||||
|
gpio_set_args.mode->sval[0],
|
||||||
|
gpio_set_args.level->ival[0]);
|
||||||
// Set the bit mask for the pin number that was passed
|
// Set the bit mask for the pin number that was passed
|
||||||
pin_config.pin_bit_mask = 1ULL << gpio_set_args.gpio->ival[0];
|
pin_config.pin_bit_mask = 1ULL << gpio_set_args.gpio->ival[0];
|
||||||
// Since we are setting the pin level, set the pin mode to OUTPUT
|
// Since we are setting the pin level, set the pin mode to OUTPUT
|
||||||
|
Reference in New Issue
Block a user