Hello All,
May sound like a stupid question but... How do you sink power on a pin? I want to light an LED by providing a circuit to ground. Is it as simple as declaring the pin a digitalOut and setting it to 0?
And if this is the case, how do you ensure the circuit is Not "grounded" when the device starts up? I want to be sure the LED is lit only when I tell it to in code... It cannot be grounded while the device starts up...
Also, what is the maximum curent that can be sunk on a pin? In case I wanted to close a small contact coil or something other then an LED... Can you sink 100ma ?
Thanks in advance.
Tim
Hello All,
May sound like a stupid question but... How do you sink power on a pin? I want to light an LED by providing a circuit to ground. Is it as simple as declaring the pin a digitalOut and setting it to 0?
And if this is the case, how do you ensure the circuit is Not "grounded" when the device starts up? I want to be sure the LED is lit only when I tell it to in code... It cannot be grounded while the device starts up...
Also, what is the maximum curent that can be sunk on a pin? In case I wanted to close a small contact coil or something other then an LED... Can you sink 100ma ?
Thanks in advance.
Tim