This example demonstrates the use of pinMode(INPUT_PULLUP). It reads a digital input on pin 2 and prints the results to the serial monitor. /* Input Pull-up Serial This example demonstrates the use of ...
/* This program is made to demonstrate the digital input function by showing the value of a push button using the INPUT_PULLUP function.*/ //***** 3 variant of the program needs for github int val = 0 ...