/********* Pleasedontcode.com ********** Pleasedontcode thanks you for automatic code generation! Enjoy your code! - Terms and Conditions: You have a non-exclusive, revocable, worldwide, royalty-free license for personal and commercial use. Attribution is optional; modifications are allowed, but you're responsible for code maintenance. We're not liable for any loss or damage. For full terms, please visit pleasedontcode.com/termsandconditions. - Project: Button Configuration - Source Code compiled for: Arduino Nano ESP32 - Source Code created on: 2024-01-14 12:31:23 ********* Pleasedontcode.com **********/ /****** SYSTEM REQUIREMENTS *****/ /****** SYSTEM REQUIREMENT 1 *****/ /* do nothing */ /****** END SYSTEM REQUIREMENTS *****/ /****** DEFINITION OF LIBRARIES *****/ #include #include /****** FUNCTION PROTOTYPES *****/ void setup(void); void loop(void); /***** DEFINITION OF DIGITAL INPUT PINS *****/ const uint8_t button_PushButton_PIN_D2 = 2; const uint8_t digitalinput_PIN_D3 = 3; const uint8_t diginputwithpullup_PIN_D4 = 4; const uint8_t diginputwithpulldown_PIN_D5 = 5; /****** DEFINITION OF LIBRARY CLASS INSTANCES *****/ EasyButton button_PushButton(button_PushButton_PIN_D2); void setup(void) { // initialize digital input pins pinMode(digitalinput_PIN_D3, INPUT); pinMode(diginputwithpullup_PIN_D4, INPUT_PULLUP); pinMode(diginputwithpulldown_PIN_D5, INPUT_PULLDOWN); // begin button instance button_PushButton.begin(); } void loop(void) { // read button state button_PushButton.read(); /****** SYSTEM REQUIREMENTS *****/ /****** SYSTEM REQUIREMENT 1 *****/ // do nothing /****** END SYSTEM REQUIREMENTS *****/ }