event-endevent

Declares an event. Some Luna objects, such as Twi/Ic2 call a named procedure when certain events occur. Syntax:

  • event eventname
    • [ Program code ]
  • endevent

Example:

[..]
event Twierror
  Print "Status = ";str(twi.Status)
endevent