Описываем модули сенсоров по новому формату

This commit is contained in:
2022-08-04 00:12:38 +03:00
parent 029d505806
commit 0e31f7c112
47 changed files with 1246 additions and 463 deletions

View File

@@ -1,21 +0,0 @@
[
{
"name": "Датчик напряжения ADS1115",
"num": 28,
"type": "Reading",
"subtype": "Ads1115",
"id": "Ads3",
"widget": "anydataVlt",
"page": "Сенсоры",
"descr": "ADS_3",
"pin": "0",
"mode": "volt",
"gain": "3/4x",
"plus": 0,
"multiply": 1,
"round": 2,
"int": 10
}
]

View File

@@ -0,0 +1,49 @@
{
"menuSection": "Сенсоры",
"configItem": [{
"name": "Датчик напряжения ADS1115",
"type": "Reading",
"subtype": "Ads1115",
"id": "Ads3",
"widget": "anydataVlt",
"page": "Сенсоры",
"descr": "ADS_3",
"pin": "0",
"mode": "volt",
"gain": "3/4x",
"plus": 0,
"multiply": 1,
"round": 2,
"int": 10
}],
"about": {
"authorName": "Serghei Crasnicov",
"authorContact": "https://t.me/Serghei63",
"authorGit": "https://github.com/Serghei63",
"specialThanks": "",
"moduleName": "Ads1115",
"moduleVersion": "1.0",
"moduleDesc": "Позволяет получить относительную величину напряжения на понижающем трансформаторе.",
"propInfo": {
"pin": "GPIO номер, к которому подключен датчик.",
"mode": "",
"gain": "",
"int": "Количество секунд между опросами датчика."
}
},
"defActive": true,
"devices": {
"esp32_4mb": [
"adafruit/Adafruit ADS1X15 @ ^2.3.0"
],
"esp8266_4mb": [
"adafruit/Adafruit ADS1X15 @ ^2.3.0"
]
}
}

View File

@@ -1,7 +0,0 @@
[env:esp8266_4mb]
lib_deps =
adafruit/Adafruit ADS1X15 @ ^2.3.0
[env:esp32_4mb]
lib_deps =
adafruit/Adafruit ADS1X15 @ ^2.3.0