Afficheur bleu 1602+I2C

Afficheur bleu 1602+I2C

            Lcd display module with blue blacklight

  • Built-in industry standard hd44780 equivalent lcd controller
  • 1602 I2c interface 4-wire 1602 screen io port of control board is only 20, so io ports is not enough for many sensor, sd card, relay modules
  • The original 1602 screen need 7 io ports to drive up, and this module can save 5 io ports

First of all we connect i2c pins module as shown in the schematic. Power the LCD module to 5 volts and connect the ground as well. The SDA pin of the i2c module conected to arduino A4 and the SCL pin to A5. We connect the arduino to USB and we are ready to program. In order to make the LCD work we need to inport the LCD library for arduino.

/* */

/*-----( Inport library )-----*/
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
//i2c pins
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); //

void setup()
//WE define our LCD 16 columns and 2 rows
lcd.backlight();//Power on the back light
//lcd.backlight(); Power off the back light


void loop()
//Write your text:
lcd.setCursor(0,0); //we start writing from the first row first column
lcd.print(" ELECTRONOOBS"); //16 characters poer line
delay(1000);//Delay used to give a dinamic effect
lcd.print("Thanks, share");

lcd.clear();//Clean the screen
lcd.print(" How r U?");
lcd.print(" ELECTRONOOBS");

Écrire une critique

Remarque: HTML n`est pas traduit!
    Mal           Bien
  • : 577
  • Code produit: LCD1602I2CBLEU
  • Disponibilité: 8
  • $9.95