вспышка

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 else
save_picture(); save_picture();
} }
else if (command == "flashOn" && param.size() == 1) else if (command == "flashOn")
{ {
ledcSetup(LED_LEDC_CHANNEL, 5000, 8); ledcSetup(LED_LEDC_CHANNEL, 5000, 8);
ledcAttachPin(LED_GPIO_NUM, LED_LEDC_CHANNEL); ledcAttachPin(LED_GPIO_NUM, LED_LEDC_CHANNEL);

View File

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