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

Function obdWriteCommand2

lib/OneBitDisplay/OneBitDisplay.cpp:667–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665} /* obdSetDCMode() */
666
667static void obdWriteCommand2(OBDISP *pOBD, unsigned char c, unsigned char d)
668{
669 unsigned char buf[4];
670
671 if (pOBD->com_mode == COM_I2C)
672 { // I2C device
673 buf[0] = 0x00;
674 buf[1] = c;
675 buf[2] = d;
676 _I2CWrite(pOBD, buf, 3);
677 }
678 else
679 { // must be SPI
680 obdWriteCommand(pOBD, c);
681 obdWriteCommand(pOBD, d);
682 }
683} /* obdWriteCommand2() */
684
685//
686// Sets the brightness (0=off, 255=brightest)

Callers 1

obdSetContrastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected