.SetBackgroundColor( )

back to FEHLCD

Description

This function is used to set the background color of the screen. The change will not take effect until the .Clear() function is called or if a text overflow event occurs.

Syntax

.SetBackgroundColor( color )

Parameters

color: FEHLCDColor as input; for enumeration colors, see the FEHLCD.h page.

Returns

None.

Examples

#include <FEHLCD.h>

int main(void)
{
    //Set the background color to Scarlet
    LCD.SetBackgroundColor(SCARLET);

    //Clear the screen for the new background color
    //to take effect
    LCD.Clear();

    //Write "Hello World" to screen with your new 
    //Buckeye's themed background
    LCD.WriteLine("Hello World");
    }   
}