C/C++, Edison, GPIO, Intel Edison, Intel Galileo, IoT, Linux, mraa, Uncategorized

C/C++ on Intel Edison/Galileo – part2: Buttons

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.

Continue reading

C/C++, GPIO, Intel Edison, Intel Galileo, mraa, Tutorial, Uncategorized

C on Intel Edison/Galileo – part1

In this series of blog posts, I’ll be posting on writing ‘C’ code on Intel Edison/Galileo platform. I’ll be using the Grove kit. You can also use a bread board instead of Grove kit.

There are two libraries available on the Intel Edison/Galileo for developing applications written in C that need to use sensors, actuators, LEDs etc…

  • MRAA: Provides API for interfacing with the GPIOs, ADCs, PWM, SPI, etc… It is basically for interfacing the low level peripherals. It is kind of bare bones, you can use the functions provided by MRAA to drive more complicated peripherals like sensors or you can use…
  • UPM: Provides higher levels of abstractions via objects for controlling things like LCDs, temperature sensors etc… It is a level above the MRAA and most of the functions that you might need while interfacing a sensor or LCD are already implemented in UPM.

Continue reading