wcolling / oclock

Revision of Hans Andersson's o-clock code
0 stars 0 forks source link

brightness question? #2

Open K5BBoing opened 1 year ago

K5BBoing commented 1 year ago

To change the brightness of the leds is it as simple as chging the value on Line 34 to a lower number? Thanks

wcolling commented 1 year ago

The brightness is adjusted in lines 98 to 114 to accommodate the ambient lighting. The value from the LDR is read and the LED brightness is set accordingly. This is going to be different according to your tastes and the LDR that you use.

You can either remove the adjusting code and always set the brightness to the value defined on line 34, or you can play with the values MIN_LIGHT and MAX_LIGHT defined on lines 23 and 24 to vary the calculated LED brightness from the LDR value.

K5BBoing commented 1 year ago

Thanks for the help your version with out the rtc is proving to be the best