/********* 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: esp8266clock
- Source Code compiled for: Arduino Uno
- Source Code created on: 2023-11-24 14:00:20
- Source Code generated by: vijay
********* Pleasedontcode.com **********/
/****** DEFINITION OF LIBRARIES *****/
#include
#include
#include
/****** SYSTEM REQUIREMENT 1 *****/
/* p10wificlock */
/****** SYSTEM REQUIREMENT 2 *****/
/* esp8266p10clocdatetimedayfullcolur */
/****** FUNCTION PROTOTYPES *****/
void setup(void);
void loop(void);
/***** DEFINITION OF DIGITAL INPUT PINS *****/
const uint8_t p10rgb_PushButton_PIN_D2 = 2; // Button connected to pin D2
const uint8_t p10rgb_PushButton_PIN_D3 = 3; // Button connected to pin D3
const uint8_t p10rgb_PushButton_PIN_D4 = 4; // Button connected to pin D4
/****** DEFINITION OF LIBRARIES CLASS INSTANCES*****/
EasyButton p10rgb_PushButton_D2(p10rgb_PushButton_PIN_D2);
EasyButton p10rgb_PushButton_D3(p10rgb_PushButton_PIN_D3);
EasyButton p10rgb_PushButton_D4(p10rgb_PushButton_PIN_D4);
void setup(void)
{
// put your setup code here, to run once:
p10rgb_PushButton_D2.begin();
p10rgb_PushButton_D3.begin();
p10rgb_PushButton_D4.begin();
}
void loop(void)
{
// put your main code here, to run repeatedly:
p10rgb_PushButton_D2.read();
p10rgb_PushButton_D3.read();
p10rgb_PushButton_D4.read();
// Handle button states and perform actions
if (p10rgb_PushButton_D2.isPressed())
{
// Button D2 is pressed, perform action
// TODO: Add code here to handle button D2 press
}
if (p10rgb_PushButton_D3.isPressed())
{
// Button D3 is pressed, perform action
// TODO: Add code here to handle button D3 press
}
if (p10rgb_PushButton_D4.isPressed())
{
// Button D4 is pressed, perform action
// TODO: Add code here to handle button D4 press
}
}