# Print(Arg1{, Arg2 ...}) hash function
Valid for use with hash commands: HMI, HMI_Trace and HMI_Log
(on the platforms that support those respective hash commands)
Implemented on the following platforms: HMi430, Android, Windows.
The Print hash function can take almost as many comma-separated Arg
uments as you like - the limit is set by the size of the communications buffer in most platforms, which is 255 bytes. However, it's sensible to not make the argument list too long.
The arguments can be either quoted text strings or formatting functions.
Handling of non-printable character codes
Non-printable character codes can be sent to the display using the literal
formatting function. The result will depend entirely on the platform. For example, SimpleHMI in Android does not respond to carriage return or line feed characters, (nor does it word-wrap). The HMI_Log
display in Windows does respond to carriage return and line feed characters.
Example: A very simple clock display on the HMI430. The time is formatted using the byte formatting function with the "2" format specifier..
;Dead simple clock on HMI430
Loop:
RTCReadTime ;Read RTC to HH, MM and SS registers
#HMI SetCursor(0, 0) Print("Hello, the time is ", b(=hh, 2), ":", b(=mm, 2), ":", b(=ss, 2))
Pause 10 ;Update every 100mS
GoTo Loop ;Repeat forever