Bi-colour LED resistor value
Simulate this and you will get 2mA in both the LED.
replace SW1 with your GPIO directly.



simulate this circuit &ndash; Schematic created using CircuitLab
All resistor value hard to find so use, R1 = 3.7KΩ &amp; R2 = 1.1KΩ