tanya kang saaya mau bikin jam ini di sketch nya…

tanya kang saaya mau bikin jam ini di sketch nya sudah ke uplod tapi lcd tetap blank itu kenapa ya



25 thoughts on “tanya kang saaya mau bikin jam ini di sketch nya…

  1. Edo Basjay

    #include
    #include

    LiquidCrystal_PCF8574 lcd(0x27); // set the LCD address to 0x27 for a 16 chars and 2 line display

    int show;

    void setup()
    {
    int error;

    Serial.begin(115200);
    Serial.println("LCD...");

    while (! Serial);

    Serial.println("Dose: check for LCD");

    // See http://playground.arduino.cc/Main/I2cScanner
    Wire.begin();
    Wire.beginTransmission(0x27);
    error = Wire.endTransmission();
    Serial.print("Error: ");
    Serial.print(error);

    if (error == 0) {
    Serial.println(": LCD found.");

    } else {
    Serial.println(": LCD not found.");
    } // if

    lcd.begin(16, 2); // initialize the lcd
    show = 0;
    } // setup()

    void loop()
    {
    if (show == 0) {
    lcd.setBacklight(255);
    lcd.home(); lcd.clear();
    lcd.print("Hello LCD");
    delay(1000);

    lcd.setBacklight(0);
    delay(400);
    lcd.setBacklight(255);

    } else if (show == 1) {
    lcd.clear();
    lcd.print("Cursor On");
    lcd.cursor();

    } else if (show == 2) {
    lcd.clear();
    lcd.print("Cursor Blink");
    lcd.blink();

    } else if (show == 3) {
    lcd.clear();
    lcd.print("Cursor OFF");
    lcd.noBlink();
    lcd.noCursor();

    } else if (show == 4) {
    lcd.clear();
    lcd.print("Display Off");
    lcd.noDisplay();

    } else if (show == 5) {
    lcd.clear();
    lcd.print("Display On");
    lcd.display();

    } else if (show == 7) {
    lcd.clear();
    lcd.setCursor(0, 0);
    lcd.print("*** first line.");
    lcd.setCursor(0, 1);
    lcd.print("*** second line.");

    } else if (show == 8) {
    lcd.scrollDisplayLeft();
    } else if (show == 9) {
    lcd.scrollDisplayLeft();
    } else if (show == 10) {
    lcd.scrollDisplayLeft();
    } else if (show == 11) {
    lcd.scrollDisplayRight();
    } // if

    delay(2000);
    show = (show + 1) % 12;
    } // loop()

  2. Rokhmad Astika Triprasetia

    Klo cuma mau bikin jam. Pakai sketch ini aja.. bisa set dhgn tombol... dan bhs indonesia harinya

    http://www.rokhmad.com/2017/09/timer-terprogram-dengan-rtc-ds3231-dan.html

Leave a Reply