Skip to content

Commit

Permalink
checking what value gpiod_line_request_input_flags returns
Browse files Browse the repository at this point in the history
  • Loading branch information
VincidaB committed May 8, 2024
1 parent a81158b commit 84e9364
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ezbot_command_module/include/tirette.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ bool TiretteNode::init_gpiod(void)

gpioline = gpiod_chip_get_line(gpiochip,gpioTirette);
printf("gpioTirette successful = %d\n",gpioTirette);
// set gpio pin INPUT PULL UP
gpiod_line_request_input_flags(gpioline,"MyBlink", GPIOD_LINE_BIAS_PULL_UP);


int temp;
temp = gpiod_line_request_input_flags(gpioline,"Tirette", GPIOD_LINE_BIAS_PULL_UP);
printf("gpiod_line_request_input_flags = %d\n",temp);
return true;

}
Expand Down

0 comments on commit 84e9364

Please sign in to comment.