How to take input from debug/your computer?
bulkhead
Posts: 405
Ok, I have a simple questoin. How can I take input from the debug window or through any other way from my computer? I am trying to write a program that would allow me to enter in PWM (int) values on my computer, and have the Javelin move a servo to that position instantly. Could anyone post a few lines of sample code that would show how I recieve a value from the debug window (and store it)? Is it something like
"int x=debug.get()"? or something like that?
I tried looking for this in the manual, but I couldn't find it, so any help would be greatly appreciated.
Also, is it really true that you can't use "double" values? Does this mean you must use a scaled int-system, sort of like PWM values are in 8us increments and not measured in milliseconds(more logical, but would reqiure doubles)? Is there another way around this? Thanks.
"int x=debug.get()"? or something like that?
I tried looking for this in the manual, but I couldn't find it, so any help would be greatly appreciated.
Also, is it really true that you can't use "double" values? Does this mean you must use a scaled int-system, sort of like PWM values are in 8us increments and not measured in milliseconds(more logical, but would reqiure doubles)? Is there another way around this? Thanks.
Comments
Class Terminal is in subfolder core.
You find my adapted Terminal class (has string support) here:
http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/core/
regards peter
Download manual here:
http://www.parallax.com/javelin/downloads.asp
regards peter