Got myself a new pack of resistors and managed to mock-up the circuit without further damaging my eyesight.
Rather than create a new thread, I was hoping someone reading this wouldn’t mind confirming if this is safe for the Arduino.
Basically, I want
- Arduino digi pin 12 to be “disconnected” (or whatever the term is for the not-high-not-low state); this means that 5v flows through the 100k resistor to the LED and it’s a bit dim.
- Then, when the Arduino decides, it can send pin 12 high and give the LED a boost by applying voltage through the 10k resistor to a bright state (although not corrective eye surgery bright). I worked out that 10k and 100k resistors in parallel end up giving me about 10k resistance in total.
The bit that concerns me is switching the pinMode of digi 12 so frequently. Is this likely to cause problems?
Here’s the circuit and a bit of test code (it all works).