Advertisement
pleasedontcode

chatbot rev_01

Dec 4th, 2023
81
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: chatbot
  13.     - Source Code compiled for: Arduino Uno
  14.     - Source Code created on: 2023-12-04 06:35:38
  15.     - Source Code generated by: Tanish Saxena
  16.  
  17. ********* Pleasedontcode.com **********/
  18.  
  19. /****** SYSTEM REQUIREMENTS *****/
  20. /****** SYSTEM REQUIREMENT 1 *****/
  21.     /* Enabels the chatbot */
  22. /****** SYSTEM REQUIREMENT 2 *****/
  23.     /* Enabels the chatbot */
  24. /****** END SYSTEM REQUIREMENTS *****/
  25.  
  26. /****** DEFINITION OF LIBRARIES *****/
  27. #include <EasyButton.h>
  28.  
  29. /***** DEFINITION OF DIGITAL INPUT PINS *****/
  30. const uint8_t Clicky_PushButton_PIN_D2 = 2;
  31.  
  32. /****** DEFINITION OF LIBRARY CLASS INSTANCES*****/
  33. EasyButton Clicky_PushButton(Clicky_PushButton_PIN_D2);
  34.  
  35. /****** FUNCTION PROTOTYPES *****/
  36. void setup(void);
  37. void loop(void);
  38.  
  39. void setup(void)
  40. {
  41.   // put your setup code here, to run once:
  42.  
  43.   Clicky_PushButton.begin();
  44.  
  45.   // Attach button pressed event handler
  46.   Clicky_PushButton.onPressed([](){
  47.     // Button has been pressed
  48.     // Add your code here
  49.   });
  50.  
  51.   /****** SYSTEM REQUIREMENT 1 *****/
  52.   /* Enable the chatbot */
  53.   // Code implementation here
  54.  
  55.   /****** SYSTEM REQUIREMENT 2 *****/
  56.   /* Enable the chatbot */
  57.   // Code implementation here
  58. }
  59.  
  60. void loop(void)
  61. {
  62.   // put your main code here, to run repeatedly:
  63.  
  64.   Clicky_PushButton.read();
  65.  
  66.   // Add your code here
  67.  
  68. }
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement