Thanks for the reply but I'm not sure on your values.
150 ohm to limit below 40mA, so 5 / 0.150 = 33mA - OK!
What happens with R1 - in the linked circuit it's a pull up resistor right? So a high value is intended to keep current low so that the transistor grounding wins - or have I got how that works exactly wrong? :~