Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public Serial As Serial
Private SerialNative1 As Stream
End Sub
Private Sub AppStart
Serial.Initialize(115200)
Log("AppStart")
RunNative("SerialNative1", Null)
End Sub
#if C
void SerialNative1(B4R::Object* unused) {
::Serial1.begin(31250); //<--You can change the baud rate
b4r_main::_serialnative1->wrappedStream = &::Serial1;
}#end if
I get this error:
B4R version: 1.80
Parsing code. Error
Error parsing program.
Error description: Unbalanced #End If
Occurred on line: 29 (Main)