Добавляем модуль-драйвер для RTC часов

This commit is contained in:
2022-04-24 23:31:25 +03:00
parent fd60bd6eb3
commit af4543b3b5
4 changed files with 183 additions and 68 deletions

View File

@@ -7,9 +7,24 @@
"header": "Расширения"
},
{
"name": "1. Расширитель портов Mcp23017",
"name": "1. Поддержка DS1302(1), DS1307(2), DS3231(3), RX8025(4)",
"num": 1,
"type": "Reading",
"subtype": "IarduinoRTC",
"id": "RTC",
"widget": "",
"page": "",
"descr": "",
"int": "0",
"chipNum": 1,
"rst": 16,
"clk": 5,
"dat": 4
},
{
"name": "2. Расширитель портов Mcp23017",
"num": 2,
"type": "Reading",
"subtype": "Mcp23017",
"id": "Mcp",
"widget": "",
@@ -20,8 +35,8 @@
"index": 1
},
{
"name": "2. Доп. функции системы",
"num": 2,
"name": "3. Доп. функции системы",
"num": 3,
"type": "Reading",
"subtype": "SysExt",
"id": "SysExt",
@@ -31,8 +46,8 @@
"int": 15
},
{
"name": "3. Переменная",
"num": 3,
"name": "4. Переменная",
"num": 4,
"type": "Reading",
"subtype": "Variable",
"id": "var",
@@ -46,8 +61,8 @@
"header": "Модули управления"
},
{
"name": "4. Кнопка (подключенная физически)",
"num": 4,
"name": "5. Кнопка (подключенная физически)",
"num": 5,
"type": "Writing",
"subtype": "ButtonIn",
"id": "btn",
@@ -62,8 +77,8 @@
"fixState": 1
},
{
"name": "5. Кнопка управляющая пином (Реле с кнопкой)",
"num": 5,
"name": "6. Кнопка управляющая пином (Реле с кнопкой)",
"num": 6,
"type": "Writing",
"subtype": "ButtonOut",
"id": "btn",
@@ -75,8 +90,8 @@
"pin": 2
},
{
"name": "6. Таймер",
"num": 6,
"name": "7. Таймер",
"num": 7,
"type": "Writing",
"subtype": "Timer",
"id": "timer",
@@ -85,14 +100,16 @@
"descr": "",
"int": 1,
"countDown": 15,
"ticker": 0
"ticker": 0,
"repeat": 0,
"needSave": 0
},
{
"header": "Сенсоры"
},
{
"name": "7. Датчик напряжения ADS1115",
"num": 7,
"name": "8. Датчик напряжения ADS1115",
"num": 8,
"type": "Reading",
"subtype": "Ads1115",
"id": "Ads3",
@@ -108,8 +125,8 @@
"int": 10
},
{
"name": "8. Cенсор температуры AHT20",
"num": 8,
"name": "9. Cенсор температуры AHT20",
"num": 9,
"type": "Reading",
"subtype": "Aht20t",
"id": "Temp20",
@@ -121,8 +138,8 @@
"round": 1
},
{
"name": "9. Cенсор влажности AHT20",
"num": 9,
"name": "10. Cенсор влажности AHT20",
"num": 10,
"type": "Reading",
"subtype": "Aht20h",
"id": "Hum20",
@@ -134,8 +151,8 @@
"round": 1
},
{
"name": "10. Аналоговый сенсор",
"num": 10,
"name": "11. Аналоговый сенсор",
"num": 11,
"type": "Reading",
"subtype": "AnalogAdc",
"id": "t",
@@ -150,8 +167,8 @@
"int": 15
},
{
"name": "11. Cенсор температуры Bme280",
"num": 11,
"name": "12. Cенсор температуры Bme280",
"num": 12,
"type": "Reading",
"subtype": "Bme280t",
"id": "tmp3",
@@ -163,8 +180,8 @@
"round": 1
},
{
"name": "12. Cенсор давления Bme280",
"num": 12,
"name": "13. Cенсор давления Bme280",
"num": 13,
"type": "Reading",
"subtype": "Bme280p",
"id": "Press3",
@@ -176,8 +193,8 @@
"round": 1
},
{
"name": "13. Cенсор влажности Bme280",
"num": 13,
"name": "14. Cенсор влажности Bme280",
"num": 14,
"type": "Reading",
"subtype": "Bme280h",
"id": "Hum3",
@@ -189,8 +206,8 @@
"round": 1
},
{
"name": "14. Cенсор температуры Bmp280",
"num": 14,
"name": "15. Cенсор температуры Bmp280",
"num": 15,
"type": "Reading",
"subtype": "Bmp280t",
"id": "tmp3",
@@ -202,8 +219,8 @@
"round": 1
},
{
"name": "15. Cенсор давления Bmp280",
"num": 15,
"name": "16. Cенсор давления Bmp280",
"num": 16,
"type": "Reading",
"subtype": "Bmp280p",
"id": "Press3",
@@ -215,8 +232,8 @@
"round": 1
},
{
"name": "16. Cенсор температуры dht11",
"num": 16,
"name": "17. Cенсор температуры dht11",
"num": 17,
"type": "Reading",
"subtype": "Dht1122t",
"id": "tmp3",
@@ -228,8 +245,8 @@
"senstype": "dht11"
},
{
"name": "17. Cенсор влажности dht11",
"num": 17,
"name": "18. Cенсор влажности dht11",
"num": 18,
"type": "Reading",
"subtype": "Dht1122h",
"id": "Hum3",
@@ -241,8 +258,8 @@
"senstype": "dht11"
},
{
"name": "18. Cенсор температуры ds18b20",
"num": 18,
"name": "19. Cенсор температуры ds18b20",
"num": 19,
"type": "Reading",
"subtype": "Ds18b20",
"id": "dstmp",
@@ -256,8 +273,8 @@
"round": 1
},
{
"name": "19. Cенсор температуры GY21",
"num": 19,
"name": "20. Cенсор температуры GY21",
"num": 20,
"type": "Reading",
"subtype": "GY21t",
"id": "tmp4",
@@ -268,8 +285,8 @@
"int": 15
},
{
"name": "20. Cенсор влажности GY21",
"num": 20,
"name": "21. Cенсор влажности GY21",
"num": 21,
"type": "Reading",
"subtype": "GY21h",
"id": "Hum4",
@@ -280,8 +297,8 @@
"int": 15
},
{
"name": "21. Cенсор температуры HDC1080",
"num": 21,
"name": "22. Cенсор температуры HDC1080",
"num": 22,
"type": "Reading",
"subtype": "Hdc1080t",
"id": "Temp1080",
@@ -293,8 +310,8 @@
"round": 1
},
{
"name": "22. Cенсор влажности HDC1080",
"num": 22,
"name": "23. Cенсор влажности HDC1080",
"num": 23,
"type": "Reading",
"subtype": "Hdc1080h",
"id": "Hum1080",
@@ -306,8 +323,8 @@
"round": 1
},
{
"name": "23. Cенсор температуры MAX6675",
"num": 23,
"name": "24. Cенсор температуры MAX6675",
"num": 24,
"type": "Reading",
"subtype": "Max6675t",
"id": "maxtmp",
@@ -320,8 +337,8 @@
"CLK": 14
},
{
"name": "24. Датчик CO2 MHZ-19 UART",
"num": 24,
"name": "25. Датчик CO2 MHZ-19 UART",
"num": 25,
"type": "Reading",
"subtype": "Mhz19uart",
"id": "co2uart",
@@ -339,8 +356,8 @@
"ABC": 1
},
{
"name": "25. Датчик CO2 MHZ-19 PWM",
"num": 25,
"name": "26. Датчик CO2 MHZ-19 PWM",
"num": 26,
"type": "Reading",
"subtype": "Mhz19pwm",
"id": "co2pwm",
@@ -354,8 +371,8 @@
"int": 300
},
{
"name": "26. Cенсор температуры от MHZ-19 UART",
"num": 26,
"name": "27. Cенсор температуры от MHZ-19 UART",
"num": 27,
"type": "Reading",
"subtype": "Mhz19temp",
"id": "Mhz19temp",
@@ -371,8 +388,8 @@
"int": 30
},
{
"name": "27. Рабочий диапазон от MHZ-19 UART",
"num": 27,
"name": "28. Рабочий диапазон от MHZ-19 UART",
"num": 28,
"type": "Reading",
"subtype": "Mhz19range",
"id": "Mhz19range",
@@ -389,8 +406,8 @@
"int": 30
},
{
"name": "28. Автокалибровка от MHZ-19 UART",
"num": 28,
"name": "29. Автокалибровка от MHZ-19 UART",
"num": 29,
"type": "Reading",
"subtype": "Mhz19ABC",
"id": "Mhz19ABC",
@@ -404,8 +421,8 @@
"int": 30
},
{
"name": "29. Датчик пыли SDS011 PM25",
"num": 29,
"name": "30. Датчик пыли SDS011 PM25",
"num": 30,
"type": "Reading",
"subtype": "Sds011_25",
"id": "pmuart25",
@@ -422,8 +439,8 @@
"period": 300
},
{
"name": "30. Датчик пыли SDS011 PM10",
"num": 30,
"name": "31. Датчик пыли SDS011 PM10",
"num": 31,
"type": "Reading",
"subtype": "Sds011_10",
"id": "pmuart10",
@@ -440,8 +457,8 @@
"period": 300
},
{
"name": "31. Cенсор температуры Sht20",
"num": 31,
"name": "32. Cенсор температуры Sht20",
"num": 32,
"type": "Reading",
"subtype": "Sht20t",
"id": "tmp2",
@@ -452,8 +469,8 @@
"round": 1
},
{
"name": "32. Cенсор влажности Sht20",
"num": 32,
"name": "33. Cенсор влажности Sht20",
"num": 33,
"type": "Reading",
"subtype": "Sht20h",
"id": "Hum2",
@@ -467,8 +484,8 @@
"header": "Экраны"
},
{
"name": "33. LCD экран 2004",
"num": 33,
"name": "34. LCD экран 2004",
"num": 34,
"type": "Reading",
"subtype": "Lcd2004",
"id": "Lcd",
@@ -482,8 +499,8 @@
"id2show": "id датчика"
},
{
"name": "34. LCD экран 1602",
"num": 34,
"name": "35. LCD экран 1602",
"num": 35,
"type": "Reading",
"subtype": "Lcd2004",
"id": "Lcd",