#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 SerialNative1 As Stream
End Sub
Private Sub AppStart
RunNative("SerialNative1", Null)
End Sub
#if C
void SerialNative1(B4R::Object* unused)
{
::Serial1.begin(9600); //<--You can change the baud rate
b4r_main::_serialnative1->wrappedStream = &::Serial1;
}
#end if