LCD SETUP WITH 74HC595

This is another way to reduce the use of Arduino pins on the LCD display setup. This method is carried out with the help of IC 74HC595.
Another way to reduce the use of pins is to use an I2C LCD display. For I2C LCD you can see on https://arduinoproyek.wordpress.com/2019/04/28/lcd-i2c-setup/

LCD 74HC

The code can be downloaded at:

https://github.com/triantara/ARDUINO-TRIANTARA/blob/main/595LCD.zip

#include <Wire.h>

#include <LiquidCrystal_SR.h>

//LiquidCrystal_SR lcd Mendefinisikan(DataPin,ClockPin, EnablePin);

LiquidCrystal_SR lcd(2, 3, 4); //D2 to pin14,D3 to pin11,D4 to pin12

void setup() {

lcd.begin(16, 4);

}

void loop() {

int i;

lcd.setCursor(0, 0);

lcd.print(“Ayo belajar!”);

for (i = 0 ; i < 16; i ++) {

lcd.scrollDisplayLeft();

delay(300);

}

}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s