^68 - The Day Rhythm Port
Syntax
LDA ^68,x
Where x is the curve of Day Rhythms you want the status of or too control with 0 controlling all curves.
STA ^68,0 will enable or disable all curves.
LDA ^68,1 will get the state of the first curve.
Response | Description |
---|---|
0x00 |
Disabled |
0x01 |
Enabled |
0x02 |
Curve out of range |
Examples
Example 1
Example Enabling different curves for different seasons
Task1()
{
Name="Winter Curve" //
LDA #1
STA ^68,1 //Enable Day Rhythm Curve for Winter
LDA #0
STA ^68,2 //Disable Day Rhythm Curve for Spring/Autumn
STA ^68,3 //Disable Day Rhythm Curve for Summer
}
Task2()
{
Name="Spring/Autumn Curve" //
LDA #1
STA ^68,2 //Enable Day Rhythm Curve for Spring/Autumn
LDA #0
STA ^68,1 //Disable Day Rhythm Curve for Winter
STA ^68,3 //Disable Day Rhythm Curve for Summer
}
Task2()
{
Name="Summer Curve" //
LDA #1
STA ^68,3 //Enable Day Rhythm Curve for Summer
LDA #0
STA ^68,1 //Disable Day Rhythm Curve for Winter
STA ^68,2 //Disable Day Rhythm Curve for Spring/Autumn
}