/********* 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: INCUBATOR - Source Code compiled for: Arduino Uno - Source Code created on: 2023-12-03 04:16:20 - Source Code generated by: NITHIYANANDAM.M ********* Pleasedontcode.com **********/ /****** DEFINITION OF LIBRARIES *****/ #include #include /****** DEFINITION OF DIGITAL INPUT PINS *****/ const uint8_t Button_PushButton_PIN_D2 = 2; /****** DEFINITION OF LIBRARIES CLASS INSTANCES *****/ EasyButton Button_PushButton(Button_PushButton_PIN_D2); void setup() { // Initialization code // Initialize the push button Button_PushButton.begin(); // Set up the button callback function Button_PushButton.onPressed([]() { // Callback function when button is pressed Serial.println("Button Pressed"); }); // Initialize the Serial communication Serial.begin(115200); } void loop() { // Main code // Read the state of the push button Button_PushButton.read(); }