Using an LCD and an LED screen

Things used in this project
Hardware components
HARDWARE LIST
1 DFRobot I2C 16x2 Arduino LCD Display Module
1 Arduino UNO
1 Jumper wires (generic)
1 SparkFun 7-Segment Serial Display - Red
Story
This is a basic code which I created so that no one else will need to go through the problems of searching all the forums for the codes.
Connection
LCD= The IIC comunications port (you can modify this sine I use an unofficial UNO replacement.)
LED= GND- GND
VCC- 5V
DIO- 3
CLK- 2
I decided it would be cool since I spend 1 day looking for the library and everything to created this so that you don't have to.
Have fun and please coment on how I could improve.
Schematics
Code
CODE
#include <TM1637.h> #include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27, 20, 4); // set the LCD address to 0x27 for a 16 chars and 2 line display // Instantiation and pins configurations // Pin 3 - > DIO // Pin 2 - > CLK TM1637 tm(2, 3); void setup() { tm.begin(); tm.setBrightness(2); lcd.init(); // Print a message to the LCD. lcd.backlight(); lcd.setCursor(1, 0); lcd.print("The year is..."); lcd.setCursor(2, 1); lcd.print(""); } void loop() { // Display Integers: tm.display("2021"); }
The article was first published in hackster, April 22, 2021
cr: https://www.hackster.io/lukatopgun/lcd-led-screens-1dc81e
author: lukatopgun
License
0
0More from this category