Turn the display on or off
| 177 | // Turn the display on or off |
| 178 | // |
| 179 | void 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 |
| 191 | void obdBacklight(OBDISP *pOBD, int bOn) |