Microchip_Examples/SerialCommExamples/SpiSerialDisplay/SpiSerialDisplay.cpp
void SetBrightness(uint8_t level) {
    SpiPort.SpiSsMode(SerialDriver::LINE_ON);
    SpiPort.SpiTransferData(0xfe);
    SpiPort.SpiTransferData(0x53);
    SpiPort.SpiTransferData(level);
    SpiPort.SpiSsMode(SerialDriver::LINE_OFF);
}
/*------------------------------------------------------------------------------
 * SetBrightness
 *
 *    Sends a short SPI transaction to control the brightness of the attached
 *    LCD screen. See the device's datasheet for a full set of commands and
 *    syntax.
 *
 * Parameters:
 *    uint8_t level  - The brightness level to be set
 *
 * Returns: None
 */
SetBrightness
Sends a short SPI transaction to control the brightness of the attached
LCD screen. See the device's datasheet for a full set of commands and
syntax.

uint8_t level  - The brightness level to be set

None
SetBrightness Sends a short SPI transaction to control the brightness of the attached LCD screen . See the device ' s datasheet for a full set of commands and syntax . uint8_t level - The brightness level to be set None
void SetBrightness(uint8_t level) {
    SpiPort.SpiSsMode(SerialDriver::LINE_ON);
    SpiPort.SpiTransferData(0xfe);
    SpiPort.SpiTransferData(0x53);
    SpiPort.SpiTransferData(level);
    SpiPort.SpiSsMode(SerialDriver::LINE_OFF);
}
void SetBrightness ( uint8_t level ) { SpiPort . SpiSsMode ( SerialDriver :: LINE_ON ) ; SpiPort . SpiTransferData ( 0xfe ) ; SpiPort . SpiTransferData ( 0x53 ) ; SpiPort . SpiTransferData ( level ) ; SpiPort . SpiSsMode ( SerialDriver :: LINE_OFF ) ; }
SetBrightness
    Sends a short SPI transaction to control the brightness of the attached
    LCD screen.
SetBrightness Sends a short SPI transaction to control the brightness of the attached LCD screen .