http://schema.org/InStock
Produktkode: 251aa
Tilgjengelighet: 3

Pris: kr. 120,00

Tilgjenglige valg

Velg bagrunnsfarge:

Velger bakgrunnslys for tekst

Blå bakgrunnsfarge
Gul bakgrunnsfarge
Hvit bakgrunnsfarge

Description:

 

Dedicated IIC control for Arduino, it only takes two IO

Adjustable contrast, the backlight control to provide library

 

 

Features:

High quality LCD screen, Yellow Green, clear display

 IIC bus control, it only takes two IO ports

 Backlight control, you can control via a jumper, you can also program control

 Adjustable display contrast

 5V power supply, the device address 0x27    (or 0x3F)

 Compatible to Arduino

Library for display 

SCL kobles til A4, SDA kobles til A5, Vcc til 5v Gnd til 0V

Eksempel på testskisse:

 

/**
 * Displays text sent over the serial port (e.g. from the Serial Monitor) on
 * an attached LCD.
 */
#include  
#include

// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 20, 4);

void setup()
{
    lcd.begin();
    lcd.backlight();
  
    // Initialize the serial port at a speed of 9600 baud
    Serial.begin(9600);
 lcd.setCursor(0,0); lcd.print("linje 1");
 lcd.setCursor(0,1); lcd.print("linje 2");
 lcd.setCursor(0,2); lcd.print("linje 3");
 lcd.setCursor(0,3); lcd.print("linje 4");
}

void loop()
{
    // If characters arrived over the serial port...
    if (Serial.available()) {
        // Wait a bit for the entire message to arrive
        delay(100);
        // Clear the screen
        lcd.clear();

        // Write all characters received with the serial port to the LCD.
        while (Serial.available() > 0) {
            lcd.write(Serial.read());
        }
    }
}

Det er ingen tilbakemeldninger for dette produktet
Skriv en tilbakemelding
Facebook-kommentar

Nye produkter