One of the key benefits of the C language, which is the reason it is so popular for embedded applications, is that it is a high-level, structured programming language, but has low-level capabilities.
This white paper explains the general usage of the MRAA APIs that can greatly simplify working with various types of devices, such as: Analog input Digital input and output Pulse width modulation (PWM ...