Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
vanze
Published © CC BY-NC-SA

How to make any song* play on an lcd!

The basic code to start up a song!

BeginnerFull instructions provided431
How to make any song* play on an lcd!

Things used in this project

Story

Read more

Schematics

Circuit Diagram

Made with tinkercad!

Code

Da final code

C/C++
Yes yes if you copy make sure to respect
//made by vanze
//Song chorus editor lcd

//pre setup
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
  // put your setup code here, to run once:
lcd.init();
lcd.init();
lcd.backlight();

}

void loop() {
  //put in the song chorus here if you want to make a full song then put the code in the setup
  lcd.setCursor(0,0);
  lcd.print("Song line");    //up to 16 characters in one lcd.print
  lcd.setCursor(0,1);
  lcd.print("Song line");
  delay(2250);
  lcd.clear();
  
}

Credits

vanze

vanze

1 project • 1 follower

Comments