displaying input values in parallax serial terminal
mikea
Posts: 283
I have found how to display text after code lines to monitor them with the serial terminal, but cant seem to locate the right code to display input number values as read from switches ect.
It seems like it starts with "pst.dec......"gangster gadget has a good tutorial on p.s.t., but i didnt see anything in there on the matter of displaying #'s.-mike
It seems like it starts with "pst.dec......"gangster gadget has a good tutorial on p.s.t., but i didnt see anything in there on the matter of displaying #'s.-mike
Comments
dec length can be 1-10
hex length can be 1-8
bin length can be 1-32
From not seeing the code you have, the first guess would be that your pin-counting is wrong?! PIN numbers start from 0, so the second PIN has the number 1 and you'd read it using INA[ 1 ].
Otherwise
pst.dec( INA[ 2 ] )
should work.
PS: Had a look into PST and I have to correct what I mentioned first ... dec is the only function which has no number of digits parameter.