B4R Question STM32

BaGRoS

Active Member
Licensed User
Longtime User
Code:
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
    Private Timer1 As Timer
    Private pinLed As Pin

End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")

    pinLed.Initialize(13 , pinLed.MODE_OUTPUT)
    Log("LED INIT")

    Timer1.Initialize("Timer1_Tick", 1000)
    Timer1.Enabled = True 'don't forget to enable it

End Sub

Private Sub Timer1_Tick
    pinLed.DigitalWrite(Not(pinLed.DigitalRead))
End Sub

Log:
B4X:
https://pastebin.com/SZ2afkiq

Led blinking!!
But no debug log :(
 
Last edited:
Upvote 0
Top