dinuxbg / pru-gcc-examples

Simple example projects for PRU-GCC
49 stars 12 forks source link

Added example to demostrate button and LED interaction #6

Closed deebot closed 4 years ago

deebot commented 4 years ago

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.

dinuxbg commented 4 years ago

Pull request merged. In the future please use "git commit --amend" to address review comments, instead of producing fixup changes.