I agree with dc42, you can use it directly.
But please use two protection diodes ! From GND to output pin, and from output pin to 5V. The small 1N4148 is fast and can handle current peaks.
If its 333 ohm its only going to use 15 mA but only thing I don't like is the wire in these things is enamel paint and a used one could easily break down and short. Why not pop a npn 12 cents then to chance a uC thats 4 dollars.
I have a box of 2n2222 transistor, and if I was going to use it in a more permanent setup, I'd probably use one of those.
For some quick experiments, I'm willing to take the risk and keep everything as simple as possible.