/********* 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: haroon - Source Code compiled for: Arduino Uno - Source Code created on: 2023-09-23 23:37:24 - Source Code generated by: Haroon ********* Pleasedontcode.com **********/ /****** DEFINITION OF LIBRARIES *****/ #include #include /****** SYSTEM REQUIREMENT 1 *****/ /* auto editing app */ /****** FUNCTION PROTOTYPES *****/ void setup(void); void loop(void); /***** DEFINITION OF DIGITAL INPUT PINS *****/ const uint8_t haroon_PushButton_PIN_D2 = 2; const uint8_t haroon_PushButton_PIN_D3 = 3; // Instantiate EasyButton objects static EasyButton haroon_PushButton_D2(haroon_PushButton_PIN_D2); static EasyButton haroon_PushButton_D3(haroon_PushButton_PIN_D3); void setup(void) { // put your setup code here, to run once: pinMode(haroon_PushButton_PIN_D2, INPUT_PULLUP); pinMode(haroon_PushButton_PIN_D3, INPUT_PULLUP); // Initialize EasyButton objects haroon_PushButton_D2.begin(); haroon_PushButton_D3.begin(); } void loop(void) { // put your main code here, to run repeatedly: // Check if button D2 is pressed if (haroon_PushButton_D2.read()) { // Button D2 is pressed, do something } // Check if button D3 is pressed if (haroon_PushButton_D3.read()) { // Button D3 is pressed, do something } }