Состояние Новый
Счет-фактура Я выставляю счет-фактуру НДС
Производитель другой
СМД да
Символ i2c
Тип буквенно-цифровой
Код производителя i2c
Количество 9 штук
Moduł konwertera umożliwia podłączenie wyświetlacza 1602 lub 2004 do Arduino za pomocą 4 przewodów zamiast kilkunastu poprzez magistralę IIC I2C. Jest to nieocenione w przypadku, gdy mamy zajęte złącza w naszym kontrolerze po podłączeniu innych modułów. Konwerter jest nowy, posiada regulację kontrastu.
#include < Wire.h >
#include < LiquidCrystal_I2C.h >
// 0x20 for I2C A0A1A2, 0x27 for YwRobot
//LiquidCrystal_I2C lcd(0x20,16,2); // set the LCD address to 0x27
LiquidCrystal_I2C lcd(0x20,20,4); // set the LCD address to 0x27
void setup()
{
Serial.begin(9600);
lcd.init(); // initialize the lcd
lcd.backlight();
// Print a message to the LCD.
lcd.setCursor(0, 0);
lcd.print("2-Line DISPLAY");
delay(1500);
lcd.setCursor(0, 1);
lcd.print("YourDuino: HI!");
lcd.setCursor(0, 2);
lcd.print("2-Line DISPLAY");
delay(1500);
lcd.setCursor(0, 3);
lcd.print("YourDuino: HI!");
}
void loop()
{
{
// when characters arrive over the serial port...
if (Serial.available()) {
// wait a bit for the entire message to arrive
delay(100);
// clear the screen
lcd.clear();
// read all the available characters
while (Serial.available() > 0) {
// display each character to the LCD
lcd.write(Serial.read());
}
}
}
}