Support » Orangutan X2 Command Documentation v1.01 » 3.d. Miscellaneous Commands »
3.d.05. Command 253: Get Firmware version (version = major byte . minor byte)
Effect: Returns the two bytes that specify the version of the code running on the mega168. The sequence for obtaining this data is as follows:
- send the command byte, wait for transmission to complete
- wait for 3 us (so the mega168 has time to set the SPDR)
- send any data byte, wait for transmission
- read SPDR to obtain the major version byte
- wait for 3 us (so the mega168 has time to set the SPDR)
- send a junk data byte or the NULL command, wait for transmission
- read SPDR to obtain the minor version byte
Values sent: none
command byte = 253
data byte = any seven-bit value