1. So why was the LED flickering? Simply the logic static of the open switch is floating so it could be either a '0' or a '1". When the button is pressed this ... 2. To prevent the unknown state a pull-up resistor will ensure the state on the pin is low.Add a resistor of 4.7k* (check in step 4 the calculation of the ... 3. On the left you see the button the moment its beeing pressed. This gives a digital signal of the LOW state. On the right the voltage across the pull-up ...
確定! 回上一頁