EmbeddedLinuxBBB
EmbeddedLinuxBBB copied to clipboard
Update button_counter_7seg.c
/* 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; }