You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Здравствуйте.
Напрямую никак. Надо сначала сформировать текстовую строку через sprinf, а
затем ее вывести через print.
вт, 11 окт. 2022 г., 6:02 greeg38 ***@***.***>:
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() {
}`
—
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD5ORZILEVVPPAJO6IMRS5TWCTKDHANCNFSM4LTLHE3A>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
//#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)) {
}
//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);
The text was updated successfully, but these errors were encountered: