lukatopgun
Published © GPL3+

Lcd + LED screens

Using an LCD and an LED screen

IntermediateProtip2,480
Lcd + LED screens

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
I use a Plus board from Keyestudio
×1
Jumper wires (generic)
Jumper wires (generic)
×1
I2C 16x2 Arduino LCD Display Module
DFRobot I2C 16x2 Arduino LCD Display Module
×1
SparkFun 7-Segment Serial Display - Red
SparkFun 7-Segment Serial Display - Red
I think this is something similar to what I have (TM1637)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

przechwytywanie_mVoekqdnVX.PNG

Change the pins to suit you

Code

Untitled file

C/C++
Cange the pins to suit your board
#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");
}

Credits

lukatopgun

lukatopgun

2 projects • 1 follower

Comments