api/mraa: add mraa_get_pin_name
Add mraa_get_pin_name to get the real world name of the pin. Signed-off-by: Michael Ring <mail@michael-ring.org> Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
committed by
Thomas Ingleby
parent
62213fad77
commit
827e1974bf
@@ -149,6 +149,15 @@ mraa_platform_t mraa_get_platform_type();
|
||||
*/
|
||||
unsigned int mraa_get_pin_count();
|
||||
|
||||
/**
|
||||
* Get name of pin, board must be initialised.
|
||||
*
|
||||
* @param pin number
|
||||
*
|
||||
* @return char* of pin name
|
||||
*/
|
||||
char* mraa_get_pin_name(int pin);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user