Advertisement
pleasedontcode

chatbot rev_02

Dec 4th, 2023
77
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:38: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.  
  27. /********* User code review feedback **********
  28. #### Feedback 1 ####
  29. - I want a chatbot code
  30.  
  31. ********* User code review feedback **********/
  32.  
  33. /****** DEFINITION OF LIBRARIES *****/
  34. #include <EasyButton.h>
  35.  
  36. /***** DEFINITION OF DIGITAL INPUT PINS *****/
  37. const uint8_t Clicky_PushButton_PIN_D2 = 2;
  38.  
  39. /****** DEFINITION OF LIBRARY CLASS INSTANCES*****/
  40. EasyButton Clicky_PushButton(Clicky_PushButton_PIN_D2);
  41.  
  42. /****** FUNCTION PROTOTYPES *****/
  43. void setup(void);
  44. void loop(void);
  45.  
  46. void setup(void)
  47. {
  48.   // put your setup code here, to run once:
  49.  
  50.   Clicky_PushButton.begin();
  51.  
  52.   // Attach button pressed event handler
  53.   Clicky_PushButton.onPressed([](){
  54.     // Button has been pressed
  55.     // Add your code here
  56.   });
  57.  
  58.   /****** SYSTEM REQUIREMENTS *****/
  59.   /****** SYSTEM REQUIREMENT 1 *****/
  60.   /* Enable the chatbot */
  61.   // Code implementation here
  62.  
  63.   /****** SYSTEM REQUIREMENT 2 *****/
  64.   /* Enable the chatbot */
  65.   // Code implementation here
  66. }
  67.  
  68. void loop(void)
  69. {
  70.   // put your main code here, to run repeatedly:
  71.  
  72.   Clicky_PushButton.read();
  73.  
  74.   // Add your code here
  75.  
  76. }
  77.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement