ESP8266-based WiFi serial modem emulator ROM
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

pixel_adjust_brightness: Reduce max brightness to 170

Anything over ~50 is blinding anyway, so reduce max brightness and
let at$led=1 be usable

+2 -1
+2 -1
pixel.cpp
··· 33 33 void 34 34 pixel_adjust_brightness(void) 35 35 { 36 - int br = 255 * (double)(settings->pixel_brightness / 10.0); 36 + /* the brightness can go to 255, but it's blinding */ 37 + int br = 170 * (double)(settings->pixel_brightness / 10.0); 37 38 #ifdef PIXEL_TRACE 38 39 syslog.logf(LOG_DEBUG, "pixel: setting brightness to %d", br); 39 40 #endif