Arduino code and video LCD1602 Module Robojax.com

LCD1602 Display for Arduino Basic Code

This video shows you how to use the 1602 LCD with Basic Code you can view Robojax.com other codes at http://robojax.com/learn/arduino
  1. LCD1602 Datasheet (pdf)
  2. LCD1602 Library (from Robojax.com)
  3. LCD1602 Library (from GetHub)

LCD1602 Display for Arduino Basic Code


 
// LCD1602 Display for Arduino

// Jan 21, 2018 14:25 this example will work with 1602 LCD 
// Code used for YouTube video for Robojax channel
// Watch the video https://youtu.be/S4ya3Q7uhJs
// Video and other Arduino Tutorial http://robojax.com/learn/library


// Jan 21, 2018 14:25
// original source https://www.arduino.cc/en/Tutorial/HelloWorld
// include the library code:
#include <LiquidCrystal.h>

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
  // Robojax LCD1602 Test 
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  // Robojax LCD1602 Test 
}

void loop() {
  // Robojax LCD1602 Test 
    lcd.setCursor(0, 0);
    lcd.print("Robojax LCD Test");
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print("Hello World!");


  delay(500);
  // Robojax LCD1602 Test 
}