如何在NXT的螢幕上顯示文字?
Robolab
NXT-G
NXC
語法
TextOut(int x,int y,string str,unsigned long options)
int x:文字 x 座標 ( 0 ~ 100 )
int y:文字 y 座標 ( 0 ~ 64 )
string str :想顯示的文字
unsigned long options :顯示模式
範例
持續顯示「Hello World!」在左上角,直到程式關閉。
task main()
{
while(true)
{
TextOut(0,0,"Hello World!");
}
}