g_ioport.p_api->pinWrite(leds.p_leds[0], 1); // turns off the led
g_ioport.p_api->pinWrite(leds.p_leds[0], 0); // turns on the led
g_ioport.p_api->pinWrite(leds.p_leds[0], 1); // turns off the led
g_ioport.p_api->pinWrite(leds.p_leds[0], 0); // turns on the led