NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
ex_contrast.nxc

This is an example of how to use the DisplayContrast and SetDisplayContrast functions.

task main()
{
for (byte contrast = 0; contrast < DISPLAY_CONTRAST_MAX; contrast++)
{
SetDisplayContrast(contrast);
Wait(100);
}
for (byte contrast = DISPLAY_CONTRAST_MAX; contrast > 0; contrast--)
{
SetDisplayContrast(contrast);
Wait(100);
}
while(true);
}