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
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
RunNative("Tone", Null)
End Sub
#if C
#include <pitches.h>
void Tone (B4R::Object* unused) {
tone(2, NOTE_FS7, 1000); //Pin, Tone, Duration
//tone(2, NOTE_FS7); //Pin, Tone
}
#End if