RCTIME object
bobbylox
Posts: 5
Beau Schwabe wrote an RCTIME object, and I was wondering if someone could explain the the third argument of the start method.
Sorry, I'm on my mac, so I don't have the code with me, but the method signature is start[noparse][[/noparse]Pin, State, RCValueAddress].
What is the RCValueAddress? Does the object return the time measurement to an address in memory?
Thanks in advance!
-Rob Lockhart
Sorry, I'm on my mac, so I don't have the code with me, but the method signature is start[noparse][[/noparse]Pin, State, RCValueAddress].
What is the RCValueAddress? Does the object return the time measurement to an address in memory?
Thanks in advance!
-Rob Lockhart
Comments
Yes, 'RCValueAddress' is the address value where you want the RCTIME result written back to.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
The syntax uses parentheses rather than square brackets, so you'd have object.start(15, 0, @variable)
In my object you can simply call a function and use the return value (in addition to a background mode).
I droppped my laptop and am waitig for the new one to arrive, so I can do a final test of the code. I will post here and on OBEX ...
Although I think I tested thorougly, I would love you to test this object.
-Rob
Let me know what you think.