Skip to content

rasyid1003/running-text-arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

running-text-arduino

Authors

Diagram

Codingan Yg Berfungsi Untuk Membuat Running Text Sederhana Dengan Board Arduino image

Codingan

#include <LiquidCrystal_I2C.h>

int totalColumns = 16; int totalRows = 2;

LiquidCrystal_I2C lcd(0x27, totalColumns, totalRows);

String staticMessage = "Faris Rasyid"; String scrollingMessage = "Selamat Datang.";

void scrollMessage(int row, String message, int delayTime, int totalColumns) { for (int i=0; i < totalColumns; i++) { message = " " + message;
} message = message + " "; for (int position = 0; position < message.length(); position++) { lcd.setCursor(0, row); lcd.print(message.substring(position, position + totalColumns)); delay(delayTime); } }

void setup(){ lcd.init();
lcd.backlight(); }

void loop(){ lcd.setCursor(0, 0); lcd.print(staticMessage); scrollMessage(1, scrollingMessage, 250, totalColumns); }

Feedback

Follow Saya Di Instagram ❤️Faris_Rasyid❤️

License

Copyright (c) [2022] [Faris Rasyid]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages