MC系列控制板 編譯器使用說明書 版本2.0

Print

列印輸出.

語法
 
列印數組到LCD
Print("LCD", scrArray)
Print("LCD", Xpos, Ypos, scrArray)
Print("LCD", Xpos, Ypos, scrArray, scrIndex, Lenght)
 
列印數值到LCD
Print("LCD", Variant)
Print("LCD", Xpos, Ypos, Variant)
Print("LCD", Xpos, Ypos, Variant, Alignment, FixLenght, FillChar)
 
列印字串到LCD
Print("LCD", String)
Print("LCD", Xpos, Ypos, String)
 
 
列印一個系統資源(字串, 圖片)到LCD
Print("RES", ResourceID, Xpos, Ypos)
Print("RES", ResourceID)
 
列印數值到指定數組
Print(dstArrayName, Variant)
Print(dstArrayName, dstStartIndex, Variant)
Print(dstArrayName, dstStartIndex, Variant, Alignment, FixLenght, FillChar)
Print(dstArrayName, dstStartIndex, Variant, Alignment, FixLenght)
 
列印數組到指定數組
Print(dstArrayName, scrArray)
Print(dstArrayName, dstStartIndex, scrArray, scrStartIndex, Lenght)
 
列印字串到指定數組
Print(dstArrayName, String)
Print(dstArrayName, dstIndex, String)
 

參數

Xpos
如果列印的目標是數組, Xpos 表示數組的起始地址; 如果列印的目標是LCD, Xpos 表示LCD 的X坐標, 如省略參數, 使用目前的X 坐標
Ypos
只適用於列印的目標是LCD, LCD 的Y坐標, 如省略參數, 使用目前的Y 坐標
ScrArray
來源數組名稱
scrIndex
來源數組起始索引
Length
來源數據長度
String
  字串表達式
Var
變數名稱
Alignment
對齊方式, 0 表示向左對齊, 1 表示向右對齊
FixLenght
固定長度
FillChar

當指定固定長度FixLenght, 不足的部分用FillChar 所指定的字元填滿

ResourceID

資源編號

Index
數據來源起始索引
dstArrayName
  列印的目標數組名稱
dstIndex
  列印的目標數組的起始索引
   
備注
若省略Xpos/Ypos 表示在目前的位置列印
 
傳回值
沒有
 
系統要求
軔體版本1.0或以上
只適用於帶LCD的控制板


Newell Technologies Ltd.