MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / backlight_reset

Function backlight_reset

core/backlight.c:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void backlight_reset(void) {
78 memset(backlight.ports, 0, sizeof backlight.ports);
79 backlight.ports[0x00] = 0x64;
80 backlight.ports[0x01] = 0x64;
81 backlight.ports[0x02] = 0x61;
82 backlight.ports[0x03] = 0x4C;
83 backlight.ports[0x20] = 0xFF; /* backlight scaler? (unimplemented) */
84 backlight.brightness = 0xFF; /* backlight level (PWM) */
85}
86
87bool backlight_save(FILE *image) {
88 return fwrite(&backlight, sizeof(backlight), 1, image) == 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected