diff --git a/include/x86/intel_gt_tuchuck.h b/include/x86/intel_gt_tuchuck.h index f9254a1..0e187ab 100644 --- a/include/x86/intel_gt_tuchuck.h +++ b/include/x86/intel_gt_tuchuck.h @@ -31,8 +31,8 @@ extern "C" { #include "mraa_internal.h" // +1 as pins are "1 indexed" -// we have 20 useless pins then the 4 LEDS -#define MRAA_INTEL_GT_TUCHUCK_PINCOUNT (40*2 + 23 +1) +// we have 20 useless pins then the 4 LEDS and the 2 LEDs on the module. +#define MRAA_INTEL_GT_TUCHUCK_PINCOUNT (40*2 + 23 +1 +2) mraa_board_t* mraa_gt_tuchuck_board(); diff --git a/src/x86/intel_gt_tuchuck.c b/src/x86/intel_gt_tuchuck.c index 107c165..772c724 100644 --- a/src/x86/intel_gt_tuchuck.c +++ b/src/x86/intel_gt_tuchuck.c @@ -627,6 +627,16 @@ mraa_gt_tuchuck_board() b->pins[pos].gpio.pinmap = 340; pos++; + strncpy(b->pins[pos].name, "LEDWIFI", 8); + b->pins[pos].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; + b->pins[pos].gpio.pinmap = 438; + pos++; + + strncpy(b->pins[pos].name, "LEDBT", 8); + b->pins[pos].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 }; + b->pins[pos].gpio.pinmap = 439; + pos++; + return b; error: