EmbeddedLinuxBBB icon indicating copy to clipboard operation
EmbeddedLinuxBBB copied to clipboard

Update button_counter_7seg.c

Open Anitha241991 opened this issue 4 years ago • 0 comments

/* 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; }

Anitha241991 avatar Aug 16 '21 08:08 Anitha241991