#Region Project Attributes
#AutoFlushLogs: True
#CheckArrayBounds: True
#StackBufferSize: 300
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public Serial1 As Serial
Dim svg As SevSeg
Dim t As Timer
Dim cnt As Byte = 0
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
svg.initialize
t.Initialize("t_tick", 20)
svg.Begin(svg.CommonCathode, 4, 13, 12, 11, 10, 2, 3, 4, 5, 6, 7, 8, 9)
Delay(10)
svg.SetBrightness(75)
Delay(10)
t.Enabled = True
End Sub
Sub t_tick
cnt = cnt + 1
If cnt <= 127 Then
Dim data() As Byte = "1234"
svg.DisplayB4RByteArray(data, 0)
else if cnt <= 255 Then
Dim mystring As String = "5678"
svg.DisplayB4RString(mystring, 0)
End If
If cnt = 255 Then
cnt = 0
End If
End Sub