I would suggest taking a look at our NXT Functions Display page on our wiki (
http://www.robotc.net/wiki/NXT_Functions_Display) as it covers all of the NXT Display Functions. The simplest way to display a sensor value is by using the nxtDisplayTextLine(nLineNumber, pChar, ...); command:
This will display the text "touch1 value: " and then the value of the touch1 sensor (in decimal values) on the first line of the NXT display. One thing to note, however, is that any given line of the NXT display has a 19 character limit, so you will want to take that into consideration when printing lines to the NXT.
_________________Check out our
Blog! And our
Facebook page!
Need help? Take a look at our
Wiki and our
Forums.I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe? ~ Carly Rae Jepsen parody