C Language Development Kit/Functions/FlipScreen

From OptiWiki

< C Language Development Kit | Functions
Revision as of 10:59, 25 February 2009 by Jbo (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Description The flipscreen() function makes it possible to display the screen content up side down. This can be done automatically when the OPL97xx is placed in its cradle or when the DCL153x is connected by the USB cable or manually at any desired moment.
Syntax
int flipscreen(int mode);
Arguments
int mode
The action that flipscreen() must perform. One of the following values:
OFF The display content will be displayed as normal (upside up).
ON The display content will be displayed upside down.
AUTO If the OPL97xx is not placed in its cradle the display content will be displayed as normal. If the OPL97xx is placed in its cradle the content will be displayed upside down. If the DCL153x is place in the cradle and it receives polling commands or when the USB cable is connected.
TOGGLE The content of the screen will be flipped each time the function is called with this parameter.
Returns On success 0 is returned.

On error -1 is returned (occurs if invalid mode was specified)

Remarks None
Example
#include "lib.h"
#include <stdio.h>
 
void main( void )
{
    flipscreen(AUTO);
 
    printf("Hello world");
 
    for(;;)
        idle();
}


Views
Personal tools