Button Debouncing in Another Cog
I'm trying to send serial commands to my propeller from my computer while the propeller sends button states back to the computer.
My main cog wasn't able to keep up with the serial commands it was receiving, while it also had to do button debouncing, so I moved the button code into its own cog.
What I was hoping would happen is the main cog would send the computer the string of a button state that the button cog generated: getLastCommandStringAddress
In my main cog, I have this:
However, the propeller is either sending empty strings to the computer or nothing at all. However, I know it hasn't crashed because I can still send serial strings to the propeller. Am I using the address point syntax correctly?
My main cog wasn't able to keep up with the serial commands it was receiving, while it also had to do button debouncing, so I moved the button code into its own cog.
What I was hoping would happen is the main cog would send the computer the string of a button state that the button cog generated: getLastCommandStringAddress
In my main cog, I have this:
[b]OBJ[/b] Buttons : "ButtonAndKnobScan" [b]PUB Main[/b] Buttons.start repeat {{... unrelated stuff here}} Comm.str(Buttons.getLastCommandStringAddress)
However, the propeller is either sending empty strings to the computer or nothing at all. However, I know it hasn't crashed because I can still send serial strings to the propeller. Am I using the address point syntax correctly?
Comments
commandString contains the address of a string, so just return commandString, not @commandString.
Unfortunately, still getting empty strings.