Advertisement
pleasedontcode

"Library Setup" rev_01

Apr 12th, 2024
112
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: "Library Setup"
  13.     - Source Code compiled for: Arduino Pro Mini 5V
  14.     - Source Code created on: 2024-04-13 00:55:03
  15.  
  16. ********* Pleasedontcode.com **********/
  17.  
  18. /****** SYSTEM REQUIREMENTS *****/
  19. /****** SYSTEM REQUIREMENT 1 *****/
  20.     /* Script to help with Python scripting After asking */
  21.     /* the customer what action the requested code should */
  22.     /* perform and in which source to look for the answer */
  23.     /* in the file selected by the customer in the */
  24.     /* proposed pdf file or search on the Internet To */
  25.     /* obtain */
  26. /****** END SYSTEM REQUIREMENTS *****/
  27.  
  28. /****** DEFINITION OF LIBRARIES *****/
  29. #include <Wire.h> // Library for I2C communication
  30. #include <EEPROM.h> // Library for EEPROM memory
  31.  
  32. /****** FUNCTION PROTOTYPES *****/
  33. void setup(void);
  34. void loop(void);
  35.  
  36. /***** DEFINITION OF ANALOG INPUT PINS *****/
  37. const uint8_t n_Potentiometer_Vout_PIN_A0 = A0;
  38.  
  39. void setup(void)
  40. {
  41.   // put your setup code here, to run once:
  42.  
  43.   pinMode(n_Potentiometer_Vout_PIN_A0, INPUT);
  44.  
  45.   // Initialize I2C communication
  46.   Wire.begin();
  47.  
  48.   // Initialize EEPROM memory
  49.   EEPROM.begin(); // Remove the argument
  50.  
  51.   // Add your additional setup code here
  52.  
  53. }
  54.  
  55. void loop(void)
  56. {
  57.   // put your main code here, to run repeatedly:
  58.  
  59.   // Add your main code here
  60.  
  61. }
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement