The led stops blinking after about 75 minutes, whether 500 or 1000 msec is specified.
Serial and Log statements have been removed temporarily for testing and the physical
tx/rx wires not attached. The usb only attached for power.
Might it be a memory leak? Or a counter limit in C? Or processor setting?
The processor was not dead / in sleep. A button and 2nd led in an other try-out was
still working.
'// ESP8266-01 blinking try-out via a Timer
#Region Project Attributes
#AutoFlushLogs: True
#CheckArrayBounds: True
#StackBufferSize: 300
#End Region
Sub Process_Globals
Private led2 As Pin
Private led2_state As Boolean = False
Private timer1 As Timer
End Sub
Private Sub AppStart
led2.Initialize(2, led2.MODE_OUTPUT) '// on GPIO2
timer1.Initialize("timer1_Tick", 500) '// or 1000
timer1.Enabled = True
End Sub
Serial and Log statements have been removed temporarily for testing and the physical
tx/rx wires not attached. The usb only attached for power.
Might it be a memory leak? Or a counter limit in C? Or processor setting?
The processor was not dead / in sleep. A button and 2nd led in an other try-out was
still working.
'// ESP8266-01 blinking try-out via a Timer
#Region Project Attributes
#AutoFlushLogs: True
#CheckArrayBounds: True
#StackBufferSize: 300
#End Region
Sub Process_Globals
Private led2 As Pin
Private led2_state As Boolean = False
Private timer1 As Timer
End Sub
Private Sub AppStart
led2.Initialize(2, led2.MODE_OUTPUT) '// on GPIO2
timer1.Initialize("timer1_Tick", 500) '// or 1000
timer1.Enabled = True
End Sub