Is there a way to control the LED that's used for "flashing" when a picture is being grabbed into the Frame Buffer?
Is there a way to directly turn that LED on and off?
Is there a way to control the brightness when it's on?
Is there a way to DISABLE it so that it does not flash when a picture is being grabbed into the Frame Buffer?
Controlling the LED
-
- Posts: 9709
- Joined: Thu Nov 26, 2015 4:08 am
Re: Controlling the LED
On what hardware? In general, LEDs like that tend to be connected to a GPIO; in that case you should be able find the lines that control it in software.
-
- Posts: 21
- Joined: Fri Jan 25, 2019 3:36 pm
Re: Controlling the LED
On the ESP32-CAM something like this should work.
Full code is here: https://github.com/robotzero1/esp32cam- ... fieCam.ino
I'm not sure you can do PWM on that pin.
Your RGB888 tests here https://www.esp32.com/viewtopic.php?f=32&t=17479 were interesting. I learnt a lot from this thread.
Code: Select all
void setup() {
pinMode(4, OUTPUT);// initialize io4 as an output for LED flash.
digitalWrite(4, LOW); // flash off/
}
void smile(){
digitalWrite(4, HIGH); // flash on
take_photo();
digitalWrite(4, LOW);
}
I'm not sure you can do PWM on that pin.
Your RGB888 tests here https://www.esp32.com/viewtopic.php?f=32&t=17479 were interesting. I learnt a lot from this thread.
Who is online
Users browsing this forum: No registered users and 13 guests