You can use an additional circuit, like this:
(you don't need to put all four leds/resistors like in example, it's just an example)
And you can try using the analog output instead of digital.