Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Moddable-OpenSource/moddable
/ setBrightness
Function
setBrightness
modules/drivers/dotstar/modDotstar.c:304–310 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
302
}
303
304
void setBrightness(spiDisplay sd, int brightness) // 0 to 255
305
{
306
int i;
307
308
for (i = 0; i < 256; i++)
309
sd->brightness[i] = (i * brightness) / 255;
310
}
311
Callers
1
xs_DotStar
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected