Go Down

Topic: Esplora TinkerKit Outputs as Inputs (Read 2865 times) previous topic - next topic

darkmeiun

Hi,

I was wondering if it would be possible to use the output ports as input ones. i want to add 4 additional push buttons but the t?inkerkit inputs are already taken.

the question would be whether it would be possible to use the outputs as inputs without redesigning the pcb?

Legoman39

I know you can use them to supply power but i dont know about that

runaway_pancake

I finally pulled out my Esplora to some experimenting with it.
This is an old subject, but the previous Reply didn't answer the question.

The Answer, though, is: Yes .
[And I figure the same for any of the Digital pins on the "LCD" strip as well.]

I proved it with the following sketch --

Code: [Select]

#include <Esplora.h>
void setup ()
{
  pinMode(3, INPUT_PULLUP);
}
void loop()
{
  if (digitalRead(3) == LOW)
  {
     Esplora.writeRGB(0,0,125);
  }
  else
  {
     Esplora.writeRGB(0,0,0);
  }
}


(The OP didn't engage, the question remained unanswered. Henceforth, it's settled.)
"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!

Go Up