^60 - The Display Timeout Port

This is a read/write port for the display timeout on a a DR2P OLED panel. The value is a bitfield with each contact represented by a single bit.
There are two sub-ports that contain the timeout value, ^60,0 (low byte) and ^60,1 (high byte).
The maximum time the display can be turned on for is 900 seconds, with any value higher than this being capped back to the 900 second limit. If a value of 0xFFFF is written then the panel will use the values configured in EE.
Please note it is important to write the values in the order specified above, if the values are written in the reverse order then the change will not be applied.

Care should also be taken to not use this to keep the screen on constantly as it will quickly use all of the OLED screen life. Further, keeping the same image on the screen for extended periods will cause the displayed image to be burned into the display.

Syntax

LDA ^60,0 //Timeout low byte
LDA ^60,1 //Timeout high byte

This is only for the DR2P OLED display, it does not work on Antumbra displays.

Examples

Example 1

Sets timeout to 60s

Task1()
{
 Name="60 seconds"
 LDA #60    // Low byte of timeout
 STA ^60,0  // Write low byte to SubPort 0
 LDA #0     // High byte of timeout
 STA ^60,1  // Write high byte to SubPort 1
}

Example 2

Reset Timeout

Task1()
{
 Name="60 seconds"
 LDA #0xFF // Low byte of timeout
 STA ^60,0 // Write low byte to SubPort 0
 LDA #0xFF // High byte of timeout
 STA ^60,1 // Write high byte to SubPort 1
}