Hello Loris,
The function of "GPIO_DRV_SetPinOutput(LEDRGB_RED);" is set the pin of PTB22 to "1" ,
while from the SCH we can see , if want the light up the RED led , please configure the pin to "0": GPIO_DRV_ClearPinOutput(LEDRGB_BLUE);
And when you configure the three LED to 0 , the colour is white , so i recommend you when want light up (clear to 0) blue , please take off (set to 1)the other led.
And in your fsl_gpio configuration , in the "output logic" , you have configure all of them to "0", i think you can cogfigure it to 1, and it meaning at the begin ,
all of them are off.

Hope it helps
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------