with 10K pull-down resistor. */. // Switch connected to digital pin 2. int switchPin = 2;. void setup(). {. Serial.begin(9600);. pinMode(switchPin, INPUT);. }.
確定! 回上一頁