Hi folks,
I’m currently using some sample code from the wiki to implement some IR learning / emitting functionality, and handling the IR output using OutputCompare to send a buffer of commands over a carrier frequency.
I’ve got stuff working, but I’d like to better understand some of the parameters that OutputCompare.SetBlocking uses. First one is the first parameter, initialState.
In the sample code I started from, initialState is set to true, but there’s no real explanation of why, or what this does. I noticed that after the first call to SetBlocking, with initialState set to true, the IR LED remains on. If I change initialState to false, the IR LED still appears to blink, and it goes off after the command completes, but the receiving device no longer functions, so clearly this is not doing what I want.
Can anyone give me a concise description of what the initialState parameter of SetBlocking is doing? I would welcome more detail on OutputCompare in general, but figuring out this parameter would be a nice starting point.
Thanks!