wannaBinventor
Member
I'm confused as to the difference in "Event" and then just "Interrupt." Event's are only for interrupts right?
Also, I'm not sure I fully understand the format as shown in the language reference guide:
Why is "type TEvent = event() necessary?
What's with all the leading "T"s and "P"s and "F"s in so many things? (general question on the language, not specifically about the code above)
Thanks!
Also, I'm not sure I fully understand the format as shown in the language reference guide:
Code:
// event handler type...
type TEvent = event()
// the event handler to call...
event EventHandler()
high(PORTD.0)
end event
// declare event variable...
dim OnEvent as TEvent
OnEvent = EventHandler // assign handler
OnEvent() // call handler
What's with all the leading "T"s and "P"s and "F"s in so many things? (general question on the language, not specifically about the code above)
Thanks!