Example
B4X:
#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
Public x As CRC_32
Public y As String="Hello world"
Public ret As ULong
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
ret=x.Calculate(y.GetBytes) '计算字符串y的CRC32校验值
Log(ret)
End Sub