C Language Development Kit/Functions/PrintSymbol

From OptiWiki

Jump to: navigation, search
Description This function prints a symbol on the screen. With this function it is possible

to show the bitmap for all the codes defined in a font, also for codes like 0x0A and 0x0D.

Syntax
void printsymbol(unsigned int symbol);
Arguments
unsigned int symbol
the character that is to be showed on the display.
Returns None
Remarks The cursor position is not updated by this function.

The setecho() function controls displaying characters while typing.

Example
#include "lib.h"
#include <stdio.h>
 
void main( void )
{
    for(;;)
    {
        printf("\f");     // clear screen
        printsymbol( 0xF3 );
        delay( 50 );       // wait 1 second
        printsymbol( 0xF4 );
        delay( 50 );       // wait 1 second
        printsymbol( 0xF5 );
        delay( 50 );       // wait 1 second
        printsymbol( 0xF6 );
        delay( 50 );       // wait 1 second
    }
}


Views
Personal tools