| 665 | } /* obdSetDCMode() */ |
| 666 | |
| 667 | static 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) |