Advertisement
pleasedontcode

Project02 rev_20

Oct 14th, 2023
101
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: Project02
  13.     - Source Code compiled for: Arduino Uno
  14.     - Source Code created on: 2023-10-14 20:52:01
  15.     - Source Code generated by: AlexWind
  16.  
  17. ********* Pleasedontcode.com **********/
  18. /****** DEFINITION OF LIBRARIES *****/
  19. #include <Arduino.h>
  20. #include <Wire.h>
  21. #include <EasyButton.h>
  22. #include <LiquidCrystal_I2C.h>
  23.  
  24. /****** SYSTEM REQUIREMENT 1 *****/
  25. // Count display on lcd with push button press
  26.  
  27. /****** SYSTEM REQUIREMENT 2 *****/
  28. // Counter up to 100000
  29.  
  30. /****** FUNCTION PROTOTYPES *****/
  31. void setup(void);
  32. void loop(void);
  33.  
  34. /***** DEFINITION OF DIGITAL INPUT PINS *****/
  35. const uint8_t pb2_PushButton_PIN_D2 = 2;
  36. const uint8_t myButton_PushButton_PIN_D3 = 3;
  37.  
  38. /***** DEFINITION OF DIGITAL OUTPUT PINS *****/
  39. const uint8_t l1_LED_PIN_D4 = 4;
  40.  
  41. /***** DEFINITION OF I2C PINS *****/
  42. const uint8_t Lcd_LCD1602I2C_I2C_PIN_SDA_A4 = A4;
  43. const uint8_t Lcd_LCD1602I2C_I2C_PIN_SCL_A5 = A5;
  44. const uint8_t Lcd_LCD1602I2C_I2C_SLAVE_ADDRESS = 39;
  45.  
  46. void setup(void)
  47. {
  48.     // put your setup code here, to run once:
  49.  
  50.     pinMode(pb2_PushButton_PIN_D2, INPUT_PULLUP);
  51.     pinMode(myButton_PushButton_PIN_D3, INPUT_PULLUP);
  52.  
  53.     pinMode(l1_LED_PIN_D4, OUTPUT);
  54.  
  55. }
  56.  
  57.  
  58. void loop(void)
  59. {
  60.     // put your main code here, to run repeatedly:
  61.  
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement