You can read the state of a button using Arduino and a few lines of code. The actual state is shown in the Serial Monitor window as 0 or 1, 0 meaning the button is not pressed and 1 that the button is ...
今回は前回のLED点灯を押しボタンスイッチで制御します。押しボタンスイッチは、ボタンを押すことであらかじめ決まっているピン同士が接続されます。今回は押しボタンスイッチを押すことで、GND(0V)に接続されたピンとマイコンボードと繋がっている ...