Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino source code for KC868-A2]-02 INPUT
#1
Code:
/*A2 INPUT PIN*/
#define input1  36
#define input2  39

void setup()
{
  Serial.begin(115200);
  pinMode(input1,INPUT);
  pinMode(input2,INPUT);
}

void loop()
{
if (digitalRead(input1)==LOW){
  Serial.println("input1 down");
}
if (digitalRead(input2)==LOW){
  Serial.println("input2 down");
}

}


Attached Files
.zip   KC868-A2.zip (Size: 3.15 KB / Downloads: 183)
Reply


Forum Jump:


Users browsing this thread: