In the end I connected it like in the photos below, but the LEDs are red (I read that they have to be green).