Added code to enable interaction between a button input and LED as output. Used bit masking operations to affect only the desired bit , unlike in the earlier code in the blinkingLED example where all pins are toggled. The main change is made on the main0.c file.Also a diagram to connect Button is shown in the comments, here i am using a external 1k pull down resistance. Further code comments helps user to run the same code on pocket beagle and beaglebone black / wireless.
Added code to enable interaction between a button input and LED as output. Used bit masking operations to affect only the desired bit , unlike in the earlier code in the blinkingLED example where all pins are toggled. The main change is made on the main0.c file.Also a diagram to connect Button is shown in the comments, here i am using a external 1k pull down resistance. Further code comments helps user to run the same code on pocket beagle and beaglebone black / wireless.