this post was submitted on 15 Oct 2024
176 points (85.5% liked)

Android

27985 readers
200 users here now

DROID DOES

Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules


1. All posts must be relevant to Android devices/operating system.


2. Posts cannot be illegal or NSFW material.


3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.


4. Non-whitelisted bots will be banned.


5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.


6. Memes are not allowed to be posts, but are allowed in the comments.


7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.


8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.


Community Resources:


We are Android girls*,

In our Lemmy.world.

The back is plastic,

It's fantastic.

*Well, not just girls: people of all gender identities are welcomed here.


Our Partner Communities:

!android@lemmy.ml


founded 1 year ago
MODERATORS
 

Samsung is working on a new AI experience for its devices that will help you use your phone without ever accessing the Settings menu.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] spankmonkey@lemmy.world 3 points 1 month ago (1 children)

Nope, I'll bet it is like five IF statements and the best part is that it is consistent!

[โ€“] d00ery@lemmy.world 2 points 1 month ago* (last edited 1 month ago)

So I was trying to think how I'd implement it, and I agree if it's simple then it really only needs to set the brightness level once, then remember if the user adjusts it, and reuse that adjustment for every lux reading.

Hence the example I gave:

Take the ambient light level (lux).
Set brightness to 5.
Log that the user has made it 1 level or 10% darker.
Next time it senses the same lux level, set the brightness 1 level lower