Sub Process_Globals
Private Serial1 As Serial
Private Output() As Byte
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
RunNative("Test", Null)
Log(Output.Length)
Log(Output(0))
Log(Output(1))
End Sub
#if C
unsigned char output[100];
void Test (B4R::Object* o) {
output[0] = 1;
output[1] = 2;
b4r_main::_output->data = output;
b4r_main::_output->length = sizeof(output);
}
#End If