MCPcopy Create free account
hub / github.com/OpenStickCommunity/GP2040-CE / obdPower

Function obdPower

lib/OneBitDisplay/OneBitDisplay.cpp:179–188  ·  view source on GitHub ↗

Turn the display on or off

Source from the content-addressed store, hash-verified

177// Turn the display on or off
178//
179void obdPower(OBDISP *pOBD, int bOn)
180{
181 uint8_t ucCMD;
182
183 if (pOBD->type == LCD_NOKIA5110)
184 ucCMD = (bOn) ? 0x20 : 0x24;
185 else // all other supported displays
186 ucCMD = (bOn) ? 0xaf : 0xae;
187 obdWriteCommand(pOBD, ucCMD);
188} /* obdPower() */
189
190// Controls the LED backlight
191void obdBacklight(OBDISP *pOBD, int bOn)

Callers 2

setPowerMethod · 0.85
isSH1106Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected