How I can accomplish that?
Also on my program I have a loop checking forever to see if certain pin becoming low.
Code: Select all
while (1)
{
if (bcm2835_gpio_eds(PIN))
{
// Now clear the eds flag by setting it to 1
bcm2835_gpio_set_eds(PIN);
printf("low event detect for pin 15\n");
}
// wait a bit
delay(500);
}