Add background image to library
Create a style for page with the image as background
Create a style for text col- Black using Ascii32 font.
Create Variable for Random Number type Float 3 decimal
places
Create Variable for Random Number type U8 Integer
Define a page named "pageName" with style "pageStyle"
Create a text entity to show Random Float
Create a text entity to show Random Integer
Create Page Loop which runs forever that calculates a
Random number between 0 and 99.999 for float and 0-100
integer.
Display the Random variable in text entity and refreshes
page every 600ms
After loading show the page named "pageName"
|
LIB(background,"SDHC/bground.png");
STYLE(pageStyle, Page) { image = background; }
STYLE(textStyle, Text) { font=Ascii32; col=Black; }
VAR(RndF,0,FLT3);
VAR(RndI,0,U16);
PAGE(pageName, pageStyle)
{
TEXT(Text1,RndF,textStyle,140,136);
TEXT(Text2,RndI,textStyle,340,136);
LOOP(Loop1,FOREVER)
{
CALC(RndF,100,"RND");
CALC(RndI,100,"RND");
TEXT(Text1,RndF);
TEXT(Text2,RndI);
WAIT(600);;
}
}
SHOW(pageName);
|