Shop OBEX P1 Docs P2 Docs Learn Events
How to take input from debug/your computer? — Parallax Forums

How to take input from debug/your computer?

bulkheadbulkhead Posts: 405
edited 2005-10-22 19:57 in General Discussion
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.

Comments

Sign In or Register to comment.