In this post, we will be looking at using mraa library on C for interfacing with a button. For this example, the button will be used to turn on and off an LED connected to the Edison/Galileo. This example is going to be very similar to the previous one. The only difference being that the state of the LED is controlled by a button instead of the program running on Edison/Galileo itself.
As soon as I saw these modules, the first question that came to my mind was how they hold up against Intel’s Edison. Since both of these modules are advertised as IoT modules with lot of features packed into a single tiny module the comparison was obvious.