Private Sub AppStart
Serial1.Initialize(9600)
Timer1.Initialize("Timer1_Tick", 500)
Timer1.Enabled = True 'don't forget to enable it
RunNative("SetT1PS",Null) 'attempt to change the timer prescaler
#If C
void SetT1PS(B4R::Object* o) {
ULong *TCCR1B = _SFR_MEM8(0x81) //address of timer/counter 1B control register
TCCR1B = 1;
}
#End if
End Sub