Advertisement
safwan092

LCD simple DAWAER

May 13th, 2017
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.89 KB | None | 0 0
  1. /*
  2.  
  3.  
  4.   Date : 27-12-2016
  5.   Time : 10:11 PM
  6.  
  7.   Auther: Safwan <s_afwan@hotmail.com>
  8.  
  9. */
  10.  
  11. // Incerting the LCD library
  12. #include <LiquidCrystal.h>
  13.  
  14. // 16x2 LCD Display Pins -> Arduino Pins
  15. LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
  16.  
  17. // Number of Seconds to turn the oven ON
  18. int S = 4;
  19.  
  20.  
  21. void setup() {
  22.  
  23.  
  24.   // Setting the Size of the LCD Display to (16 Colomns) and (2 Rows) of characters
  25.   lcd.begin(16, 2);
  26.  
  27.   // Starting a Serial communication between the computer and the Arduino to recieve the values of the flame detector
  28.   Serial.begin(9600);
  29.  
  30.   lcd.setCursor(1, 0);
  31.   lcd.print ("  Team ( 1 )");
  32.   lcd.setCursor(6, 1);
  33.   lcd.print("");
  34. }
  35.  
  36.  
  37.  
  38. void loop() {
  39.  
  40.  
  41.   lcd.setCursor(1, 0);
  42.   lcd.print ("Finally Working");
  43.   lcd.setCursor(6, 1);
  44.   lcd.print("");
  45.   delay(1000);
  46.   lcd.setCursor(7, 1);
  47.   lcd.print(S);
  48.  
  49.   //delay(2); // Important don't delete this line
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement