Trying to lear how to use mc-Studio, I am writing a simple program to react to the button being pressed and released.
Class MQTT_Button
// The following will test the usage of the button on the McModule
Shared Event Button0Pressed() // The button have been pressed
LedGreen = True // Set the LedGreen ON
End Event
// The following will test the usage of the button on the McModule
Shared Event Button0Released() // The button have been released
LedGreen = False // Set the LedGreen OFF
End Event
End Class
I am using the build-in event Button0Pressed and Button0Released, mc-Studio is giving me an ertor 'Expected the Priority or Raised Clause'. I do not want to use the Raised clause since this event will be random when the button is pressed, how do I use the Priority Clause?