system
January 19, 2014, 8:31am
1
Hi everybody,
I'm very knew here, so I apologize for this stupid question, but however :
What's the id of the 9V (VIN) pin ? I would like to make a small DEL blink with another pin, and I realized that I didn't know what to put in the pinMode() first argument.
Thank you
system
January 19, 2014, 8:40am
3
I'm sorry, but I didn't get it... What number ?
system
January 19, 2014, 8:46am
4
You didn't get what?
Have you read the reference page for pinMode?
If I understand it right, you have something across Vin and some other pin?
Well when the other pin is HIGH, the device will have no potential diff and be off; when the other pin is LOW, the device will have PD and be on.
So you make the other pin go high and low by setting it with pinMode once and then digitalWrites.
Vin doesn't have a pin number: it's not an I/O pin
system
January 19, 2014, 8:56am
6
Thank you very much !
That's exactly what I was looking for
What's a DEL?
An LED?
Make sure you have a resistor in series....
system
January 19, 2014, 9:22am
8
Oups, I'm French and a DEL is a Diode Electro Luminescente (the French for LED). And yes I have some resistances...
"Diode Electro Luminescente" sounds so much better, especially when I say it out loud in my Peter Sellers "Inspector Clouseau" accent...