Shop OBEX P1 Docs P2 Docs Learn Events
as the "DEBUG" command question — Parallax Forums

as the "DEBUG" command question

jimltleejimltlee Posts: 6
edited 2007-07-16 05:18 in BASIC Stamp
hi,all ,
I don't understand why this code·will show the result individed ??
it will·show··"The X input is:·" then disappear and show "The Y input is ", and disappear again ,then "The Z input is"
but , I am trying to see the TEXT·of ·this 3 colume on the screen·at same time·,
ex:
· "The X input is"
· "The Y input is"
· "The Z input is"

is there any mistake in my description? should I add any instruction into ??


my code:·
· DEBUG HOME
· DEBUG "The X input is:" ,BIN 8,XadcBits,CR
· DEBUG "The Y input is:" ,BIN 8,YadcBits,CR
· DEBUG "The Z input is:" ,BIN 8,ZadcBits
· PAUSE 400


rgs
Jim

Comments

  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-07-16 04:28
    Hi jimltlee, the format is slightly off, to correct remove the space between the BIN and 8 and remove the comma between the 8 and the variable

    eg:

    ·DEBUG "The X input is:" ,BIN8 XadcBits,CR

    Jeff T
  • jimltleejimltlee Posts: 6
    edited 2007-07-16 05:18
    Hi, Jeff,

    thanks, it·work~

    it seems I have to be more carefully while coding.

    rgs

    Jim
Sign In or Register to comment.