fork download
  1. #include <LiquidCrystal.h>
  2.  
  3. // Initialize the library with the numbers of the interface pins
  4. LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
  5.  
  6. void setup() {
  7. // Set up the LCD's number of columns and rows
  8. lcd.begin(16, 2);
  9. }
  10.  
  11. void loop() {
  12. // Display "winner winner chicken dinner" on the LCD
  13. lcd.clear(); // Clear the LCD screen
  14. lcd.setCursor(0, 0); // Set the cursor to the top-left corner
  15. lcd.print("winner winner chicken dinner"); // Print "winner winner chicken dinner" to the LCD
  16.  
  17. delay(1000); // Wait for 1 second
  18.  
  19. // Clear the display to make the text blink
  20. lcd.clear();
  21.  
  22. delay(1000); // Wait for another 1 second
  23. }
Success #stdin #stdout 0.02s 25992KB
stdin
Standard input is empty
stdout
#include <LiquidCrystal.h>

// Initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);

void setup() {
  // Set up the LCD's number of columns and rows
  lcd.begin(16, 2);
}

void loop() {
  // Display "winner winner chicken dinner" on the LCD
  lcd.clear();           // Clear the LCD screen
  lcd.setCursor(0, 0);  // Set the cursor to the top-left corner
  lcd.print("winner winner chicken dinner");     // Print "winner winner chicken dinner" to the LCD
  
  delay(1000);          // Wait for 1 second

  // Clear the display to make the text blink
  lcd.clear();
  
  delay(1000);          // Wait for another 1 second 
}