/********* 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: web - Source Code compiled for: Arduino Mega - Source Code created on: 2023-11-15 05:44:53 - Source Code generated by: SHREENIKESH ********* Pleasedontcode.com **********/ /****** DEFINITION OF LIBRARIES *****/ #include #include /****** SYSTEM REQUIREMENT 1 *****/ /* wallpaper website looks beautiful */ /****** FUNCTION PROTOTYPES *****/ void setup(void); void loop(void); /***** DEFINITION OF DIGITAL INPUT PINS *****/ const uint8_t web_PushButton_PIN_D2 = 2; const uint8_t web_PushButton_PIN_D3 = 3; /****** DEFINITION OF LIBRARIES CLASS INSTANCES*****/ EasyButton web_PushButton_D2(web_PushButton_PIN_D2); EasyButton web_PushButton_D3(web_PushButton_PIN_D3); void onWebPushButtonD2Pressed() { // Code to execute when web_PushButton_D2 is pressed Serial.println("web_PushButton_D2 pressed"); } void onWebPushButtonD3Pressed() { // Code to execute when web_PushButton_D3 is pressed Serial.println("web_PushButton_D3 pressed"); } void setup(void) { // put your setup code here, to run once: Serial.begin(115200); pinMode(web_PushButton_PIN_D2, INPUT_PULLUP); pinMode(web_PushButton_PIN_D3, INPUT_PULLUP); web_PushButton_D2.begin(); web_PushButton_D3.begin(); web_PushButton_D2.onPressed(onWebPushButtonD2Pressed); web_PushButton_D3.onPressed(onWebPushButtonD3Pressed); } void loop(void) { // put your main code here, to run repeatedly: web_PushButton_D2.read(); web_PushButton_D3.read(); }