- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Surprised at the quality of the sample code - what's provided on Intel's site does not work. I have included the fix below in bold (works with libmraa version 0.5.4+ in IDE)
int main(int argc, char **argv) {
mraa_platform_t platform = mraa_get_platform_type();
... <code cut out>
switch (platform) {
... <code cut out>
case MRAA_INTEL_EDISON_FAB_C:
strcpy(board_name, "Edison");
gpio = mraa_gpio_init(10);
break;
... <code cut out>
}
Call mraa_gpio_init with mraa Pin 10 as argument, NOT 13 as in the example. Traced through schematics and Edison pinout to decipher that the LED is connected to DIG13_1P8, which is connected to GP109, which is mapped to mraa pin #10 (the sample had pin #13)
- Tags:
- Internet of Things
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page