Skip to content
This repository has been archived by the owner on Dec 24, 2021. It is now read-only.

Add flash intensity #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add flash intensity #16

wants to merge 2 commits into from

Conversation

kassi
Copy link
Contributor

@kassi kassi commented Jun 20, 2020

Please merge PR #15 first!

Adds an intensity parameter to the flashon and capture_with_flashlight commands.
It's controlled via LEDC.
It's useful if you your picture with internal flashlight is too bright and the light causes too many reflections.

Default is set up to use channel 2 and a resolution of 12 bit which worked best for me. Channel 0 and 1 gave unexpected results.
12 bit means:
intensity = 0: off
intensity = 1: lowest
intensity = 4095: highest - comparable to digital HIGH before.

I have to admit that I obviously changed the one or the other line according to style. This is mostly done by the editor and auto correction. I left it where I think it's feasible.
A styleguide would be helpful since I can't gather the coding style of the whole project (sometimes 2 or 4 space indentation, sometimes more, etc.

@kassi kassi changed the title Flash intensity Add flash intensity Jun 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant