I have a 100ohm resistor to limit the current to the LED and a 4.7k ohm resistor on the base of the transistor to limit then current from the RPi GPIO pin
Now to my surprise when the GPIO pin connected the base is set to high the LED turns off and when the GPIO pin is set to low the LED turns on. I was expecting it to work the other way around
see my pic
