What is the normal way to take pull-up pin as input?
niu.yixuan 2024-07-12 15:04:05 2 Views0 Replies What is the normal way to take pull-up pin as input?
2024-07-12 15:04:05 The normal way to take pull-up pin as input is to use:pinMode(pin, INPUT)But you can't do this again for M0! You need to use:pinMode(pin, INPUT_PULLUP)The code written in this way still has the advantage of backward compatibility with AVR. You do not need a separate version for different board types.
niu.yixuan
niu.yixuan 

