CCCPaste

test rev_01

/********* 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: test
	- Source Code compiled for: Arduino Uno
	- Source Code created on: 2023-12-06 09:30:13
	- Source Code generated by: Bhagawat

********* Pleasedontcode.com **********/

/****** SYSTEM REQUIREMENTS *****/
/****** SYSTEM REQUIREMENT 1 *****/
	/* ebbed jhgi;n */
/****** 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_PIN = 2;

/****** DEFINITION OF LIBRARY CLASS INSTANCES *****/
EasyButton button(BUTTON_PIN);

void onPressed()
{
	Serial.println("Button pressed");
}

void setup(void)
{
	// put your setup code here, to run once:
	Serial.begin(115200);
	Serial.println();
	Serial.println(">>> EasyButton pressed example <<<");

	button.begin();
	button.onPressed(onPressed);

	/****** SYSTEM REQUIREMENTS *****/
	/****** SYSTEM REQUIREMENT 1 *****/
	/* Add code to meet system requirement 1 - Example: */
	pinMode(LED_BUILTIN, OUTPUT); // Set LED_BUILTIN pin as output
	/****** END SYSTEM REQUIREMENTS *****/
}

void loop(void)
{
	// put your main code here, to run repeatedly:
	button.read();

	/****** SYSTEM REQUIREMENTS *****/
	/****** SYSTEM REQUIREMENT 1 *****/
	/* Add code to meet system requirement 1 - Example: */
	digitalWrite(LED_BUILTIN, button.isPressed() ? HIGH : LOW); // Control built-in LED based on button state
	/****** END SYSTEM REQUIREMENTS *****/
}