The problem is that the buttonpin state is varying wildly, even when there's nothing plugged into the pin! Here's the code: int buttonPin = 2; int buttonState = ...
確定! 回上一頁