вспышка

This commit is contained in:
Mit4el
2023-10-03 20:57:12 +03:00
parent e47eb4969a
commit eae29bd680
2 changed files with 8 additions and 10 deletions

View File

@@ -75,7 +75,7 @@ public:
else
save_picture();
}
else if (command == "flashOn" && param.size() == 1)
else if (command == "flashOn")
{
ledcSetup(LED_LEDC_CHANNEL, 5000, 8);
ledcAttachPin(LED_GPIO_NUM, LED_LEDC_CHANNEL);

View File

@@ -17,12 +17,12 @@
}
],
"about": {
"authorName": "Ilya Belyakov",
"authorName": "Ilya Belyakov, Mikhail Bubnov",
"authorContact": "https://t.me/Biveraxe",
"authorGit": "https://github.com/biveraxe",
"specialThanks": "",
"moduleName": "EspCam",
"moduleVersion": "2.1",
"moduleVersion": "3.0",
"usedRam": {
"esp32_4mb": 15,
"esp8266_4mb": 15
@@ -52,15 +52,13 @@
"params": [""]
},
{
"name": "ledOn",
"descr": "Включить подсветку",
"params": [
"Яркость 0-255"
]
"name": "flashOn",
"descr": "Включить вспышку",
"params": []
},
{
"name": "ledOff",
"descr": "Отключить подсветку",
"name": "flashOff",
"descr": "Отключить вспышку",
"params": []
}
]