TV Out Signal test Arduino code

#include <LiquidCrystal.h>

// Initialize the LCD library with the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

// Text to display
const char text[] = "SonoTech created by Mr. Jawaid";
const int textLength = sizeof(text) - 1; // Length of the text (excluding null terminator)

void setup() {
  // Set up the LCD's number of columns and rows
  lcd.begin(16, 2); // Adjust based on your LCD size
  lcd.clear(); // Clear the LCD screen
}

void loop() {
  // Scroll the text from right to left
  for (int i = 0; i <= textLength; i++) {
    lcd.clear(); // Clear the screen
    lcd.setCursor(0, 0); // Set cursor to the first row
    lcd.print(text + i); // Print the text starting from position i
    delay(300); // Adjust scrolling speed (milliseconds)
  }

  // Wait for 30 seconds
  delay(30000);

  // Repeat the process
}

تبصرے

اس بلاگ سے مقبول پوسٹس

7 Worldwide Free Ways to Make Money Online (All Countries Allowed)

Best VPN in Pakistan

Earn $28.18 Every 10 Minutes With Google Translate - Make $845.40 Per Day Online