Advertisement
pleasedontcode

computergraphic rev_01

Nov 26th, 2023
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /********* Pleasedontcode.com **********
  2.  
  3.     Pleasedontcode thanks you for automatic code generation! Enjoy your code!
  4.  
  5.     - Terms and Conditions:
  6.     You have a non-exclusive, revocable, worldwide, royalty-free license
  7.     for personal and commercial use. Attribution is optional; modifications
  8.     are allowed, but you're responsible for code maintenance. We're not
  9.     liable for any loss or damage. For full terms,
  10.     please visit pleasedontcode.com/termsandconditions.
  11.  
  12.     - Project: computergraphic
  13.     - Source Code compiled for: Arduino Pro Mini 3.3V
  14.     - Source Code created on: 2023-11-26 13:40:19
  15.     - Source Code generated by: Ashish
  16.  
  17. ********* Pleasedontcode.com **********/
  18. /****** DEFINITION OF LIBRARIES *****/
  19. #include <Arduino.h>
  20. #include <EasyButton.h>
  21.  
  22. /****** SYSTEM REQUIREMENT 1 *****/
  23. /* Modify this section according to your requirement */
  24.  
  25. /***** DEFINITION OF DIGITAL INPUT PINS *****/
  26. const uint8_t Ashish_PushButton_PIN_D2 = 2;
  27.  
  28. /****** DEFINITION OF LIBRARY CLASS INSTANCES*****/
  29. EasyButton button(Ashish_PushButton_PIN_D2);
  30.  
  31. void setup()
  32. {
  33.   // Initialize the digital input pin for the button
  34.   pinMode(Ashish_PushButton_PIN_D2, INPUT_PULLUP);
  35.  
  36.   // Initialize the button object
  37.   button.begin();
  38. }
  39.  
  40. void loop()
  41. {
  42.   // Read the button state
  43.   button.read();
  44. }
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement