Action
Returns a string with the date and time of compilation.
Syntax
Var = VERSION(frm)
Remarks
Var is a string variable that is assigned with a constant. This version constant is set at compilation time to MM-DD-YY hh:nn:ss
Where MM is the month, DD the day of the month, YY the year. hh is the hour is 24-hour format, nn the minutes, and ss the seconds. |
When frm is set to 1, the format date will be shown in European DD-MM-YY hh:nn:ss format. |
While it is simple to store the version of your program in the source code, it is harder to determine which version was used for a programmed chip.
The Version() function can print this information to the serial port, or to an LCD display.
See Also
Example
Print Version()