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

This is an example of how to use the GraphicOut, SysCall, TextOut, CurrentTick, NumOut, Wait, and ClearScreen functions. It also demonstrates how to use the DrawGraphicArrayType structure.

#download "2c.ric"
byte tmpData2[] = {
0x0A, 0x00, 0x07, 0x00, 0x00, 0x00, 0x14, 0x00, 0x14,
0x00, 0x0A, 0x00, 0x0A, 0x00, 0x07, 0x00, 0x00, 0x00,
0x1E, 0x00, 0x1E, 0x00, 0x0A, 0x00};
string names[] = {"2c.ric" , "2l.ric" };
task main()
{
long tick;
TextOut(0, LCD_LINE1, "testing");
tick = CurrentTick();
GraphicOut(10, 10, names[0]);
tick = CurrentTick()-tick;
NumOut(0, LCD_LINE8, tick);
TextOut(0, LCD_LINE1, "testing");
tick = CurrentTick();
dgaArgs.Location.X = 10;
dgaArgs.Location.Y = 10;
dgaArgs.Options = 0;
dgaArgs.Data = tmpData2;
tick = CurrentTick()-tick;
NumOut(0, LCD_LINE8, tick);
}