Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /********* Pleasedontcode.com **********
- Pleasedontcode thanks you for automatic code generation! Enjoy your code!
- - Terms and Conditions:
- You have a non-exclusive, revocable, worldwide, royalty-free license
- for personal and commercial use. Attribution is optional; modifications
- are allowed, but you're responsible for code maintenance. We're not
- liable for any loss or damage. For full terms,
- please visit pleasedontcode.com/termsandconditions.
- - Project: Analog Display
- - Source Code NOT compiled for: ESP32 DevKit V1
- - Source Code created on: 2024-04-30 15:57:26
- ********* Pleasedontcode.com **********/
- /****** SYSTEM REQUIREMENTS *****/
- /****** SYSTEM REQUIREMENT 1 *****/
- /* esp32, i2c 16x2 display, applicazione per gestire */
- /* una centrale termica con caldaia legna e accumulo, */
- /* con il controllo della temperatura nella parte */
- /* bassa e parte alta della caldaia e del accumulo */
- /* usando 4 sensori di temperatura ntc b3950. */
- /****** END SYSTEM REQUIREMENTS *****/
- /****** DEFINITION OF LIBRARIES *****/
- #include <Wire.h>
- #include <LiquidCrystal_I2C.h>
- /****** FUNCTION PROTOTYPES *****/
- void setup(void);
- void loop(void);
- /***** DEFINITION OF ANALOG INPUT PINS *****/
- const uint8_t sondaPin_PIN_D4 = 4;
- /***** DEFINITION OF I2C PINS *****/
- const uint8_t lcd_LCD1602I2C_I2C_PIN_SDA_D21 = 21;
- const uint8_t lcd_LCD1602I2C_I2C_PIN_SCL_D22 = 22;
- const uint8_t lcd_LCD1602I2C_I2C_SLAVE_ADDRESS = 39;
- LiquidCrystal_I2C lcd(lcd_LCD1602I2C_I2C_SLAVE_ADDRESS, 16, 2);
- void setup(void)
- {
- // put your setup code here, to run once:
- pinMode(sondaPin_PIN_D4, INPUT);
- lcd.init(); // Initialize the LCD
- lcd.backlight(); // Turn on the backlight
- }
- void loop(void)
- {
- // put your main code here, to run repeatedly:
- }
- /* END CODE */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement