Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no matching function for call to 'LCD_1602_RUS<LiquidCrystal>::print(long int)' #5

Closed
ghost opened this issue Mar 25, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 25, 2020

//#include <LiquidCrystal.h>
#define _LCD_TYPE 2
#include "LCD_1602_RUS\LCD_1602_RUS_ALL.h"
#include <DHT.h>
LCD_1602_RUS lcd(7, 6, 5, 4, 3, 2); // (RS, E, DB4, DB5, DB6, DB7)
#define DHTPIN 10

DHT dht(DHTPIN, DHT22);
void setup() {
Serial.begin(9600);
dht.begin();
lcd.begin(16, 2);
}

void loop() {
float t = dht.readTemperature();
float h = dht.readHumidity();
if (isnan(h) || isnan(t)) {

lcd.setCursor(0, 0);              // Устанавливаем курсор в начало 1 строки
lcd.print("Error read DHT22");       // Выводим текст
return;

}
//Serial.println("Не удается считать показания");

lcd.setCursor(0, 0); // Устанавливаем курсор в начало 1 строки
lcd.print("Тем-ра: "); // Выводим текст
lcd.print(round(t));
lcd.print(" *C");
lcd.setCursor(0, 1); // Устанавливаем курсор в начало 2 строки
lcd.print("Влажность: "); // Выводим текст
//lcd.print(round(h)); // Выводим текст
lcd.print(" %"); // Выводим текст
delay(100);

@ssilver2007
Copy link
Owner

Исправлено. Пробуйте.

@greeg38
Copy link

greeg38 commented Oct 11, 2022

no matching function for call to 'LCD_1602_RUS::print(bool&)'

`#define _LCD_TYPE 1 // для работы с I2C дисплеями
#include <LCD_1602_RUS_ALL.h>
LCD_1602_RUS lcd(0x27, 16, 2);
bool td=1;
void setup() {
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Привет!");
lcd.print("hello!");
lcd.print(td);
}

void loop() {
}`

@ssilver2007
Copy link
Owner

ssilver2007 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants