- Name:
- readrevision
- Syntax:
-
READREVISION variable
Variable - is a byte variable to receive the revision value.
- Description:
-
Read the program slot revision value into variable.
Using the #revision directive it is possible to embed a revision number of the user code into the downloaded program. The readrevision command retrieves this value and loads it into a variable. The revision value is also used by the booti2c command.
Do not confuse the revision (user program) with the firmware version (PICAXE bootstrap version) (read using the readfirmware command).
- Applies To:
- 20X2, 28X2, 40X2
- See Also:
- Related Create:
Reading the revision value
Theis program will read the revision number into the 'b1' variable.
- Code Example:
-
main: readrevision b1 ; read revision into b1
Copy Code Submit an Example
Submit Your Own Code!
You must be logged in to submit code examples. Login now.