/********* 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: Button Setup
- Source Code compiled for: Arduino Uno
- Source Code created on: 2024-03-16 11:46:31
********* Pleasedontcode.com **********/
/****** SYSTEM REQUIREMENTS *****/
/****** SYSTEM REQUIREMENT 1 *****/
/* Écris un code en Python pour créer une */
/* calculatrice, explique ligne par ligne le code */
/* généré avec des commentaires. */
/****** SYSTEM REQUIREMENT 2 *****/
/* Écris un code en Python pour créer une */
/* calculatrice, explique ligne par ligne le code */
/* généré avec des commentaires. */
/****** END SYSTEM REQUIREMENTS *****/
/****** DEFINITION OF LIBRARIES *****/
#include // https://github.com/evert-arias/EasyButton
/****** FUNCTION PROTOTYPES *****/
void setup(void);
void loop(void);
/***** DEFINITION OF DIGITAL INPUT PINS *****/
const uint8_t GO_PushButton_PIN_D2 = 2;
const uint8_t GO_PushButton_PIN_D3 = 3;
const uint8_t GO_PushButton_PIN_D4 = 4;
/****** DEFINITION OF LIBRARIES CLASS INSTANCES*****/
EasyButton button_D2(GO_PushButton_PIN_D2);
EasyButton button_D3(GO_PushButton_PIN_D3);
EasyButton button_D4(GO_PushButton_PIN_D4);
void setup(void)
{
// put your setup code here, to run once:
pinMode(GO_PushButton_PIN_D2, INPUT_PULLUP);
pinMode(GO_PushButton_PIN_D3, INPUT_PULLUP);
pinMode(GO_PushButton_PIN_D4, INPUT_PULLUP);
button_D2.begin();
button_D3.begin();
button_D4.begin();
}
void loop(void)
{
// put your main code here, to run repeatedly:
button_D2.read();
button_D3.read();
button_D4.read();
}