Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
| products:laboratory_iot_c:exp41 [2024/11/24 14:18] – [Программный код эксперимента] labuser30 | products:laboratory_iot_c:exp41 [2024/12/01 14:08] (текущий) – labuser30 | ||
|---|---|---|---|
| Строка 43: | Строка 43: | ||
| lcd.clear(); | lcd.clear(); | ||
| lcd.print(" | lcd.print(" | ||
| - | lcd.println(temp_outodor, | + | lcd.println(temp_outodor, |
| lcd.print(" | lcd.print(" | ||
| - | lcd.print(temp_inroom, | + | lcd.print(temp_inroom, |
| delay(1000); | delay(1000); | ||
| } | } | ||
| Строка 57: | Строка 57: | ||
| #include < | #include < | ||
| #include < | #include < | ||
| + | </ | ||
| + | |||
| + | Задаем псевдонимы для пина АЦП, пина шины 1-Wire и адреса дисплея. | ||
| + | <code arduino[enable_line_numbers=" | ||
| + | #define ACD_PIN A0 | ||
| + | #define BUS_PIN 12 | ||
| + | #define DEFAULT_I2C_ADDR 0x3F // Или 0x27 в зависимости от твоей платы IoT5; | ||
| </ | </ | ||
| Строка 108: | Строка 115: | ||
| lcd.clear(); | lcd.clear(); | ||
| lcd.print(" | lcd.print(" | ||
| - | lcd.println(temp_outodor, | + | lcd.println(temp_outodor, |
| </ | </ | ||
| Строка 114: | Строка 121: | ||
| <code arduino[enable_line_numbers=" | <code arduino[enable_line_numbers=" | ||
| lcd.print(" | lcd.print(" | ||
| - | lcd.print(temp_inroom, | + | lcd.print(temp_inroom, |
| </ | </ | ||