Home › Evil Mad Scientist Forums › Clock Kits › Spare Inputs on Clock? › Re: Spare Inputs on Clock?
October 30, 2013 at 3:06 pm
#21477
idreamincode
Participant
I’m looking to use PC5, input #27 (according to the PDF file). When I code in this:
int a5ExternalInputPC5 = 27; // external inputs
setup{
pinMode(a5ExternalInputPC5, INPUT); // set pin to input
}
loop{
externalInPC5 = digitalRead(a5ExternalInputPC5); // read the input pin
if(externalInPC5 == 1){
Serial.println(“External PC5 Pressed”);
}
}
It is showing as constantly being pressed. I don’t have anything connected to any of the PC5 or other extra ports. Can you point me in the right direction? Thanks.