Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update button_counter_7seg.c #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Anitha241991
Copy link

/* This function initializes the gpio pin of the button

  • first gpio direction is set to "in
  • Then, value is set to "0"
  • edge detection is configured for "rising"
    */
    int initialize_button_gpio(void)
    {
    gpio_configure_dir(GPIO_49,GPIO_DIR_IN);
    gpio_write_value(GPIO_49, GPIO_LOW_VALUE ); // 68 is replaced by 49
    gpio_configure_edge(GPIO_49,"rising");
    return 0;
    }

/* This function initializes the gpio pin of the button
 * first gpio direction is set to "in
 * Then, value is set to "0"
 * edge detection is configured for "rising"
 */
int initialize_button_gpio(void)
{
    gpio_configure_dir(GPIO_49,GPIO_DIR_IN);
    gpio_write_value(GPIO_49, GPIO_LOW_VALUE ); // 68 is replaced by 49
    gpio_configure_edge(GPIO_49,"rising");
    return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant