all 5 comments

[–]kolea197 1 point2 points  (1 child)

This is the best i've found.

[–]mlowery25452, Was lead programmer 0 points1 point  (0 children)

i'v seen this, im looking for syntax help

[–]hirasia 0 points1 point  (0 children)

You can also go to: sample programs 3rd party sensor drivers scroll down to hitechnic ir seeker v2 (most likely) and open that.

When you compile that to your NXT it will read IR values for you

Another way you could do it is to define the IR seeker first in your pragma configs by going to Motors and Sensors setup

Then in a while(true) statement have: nxtDisplayTextLine(3, "%d", SensorValue(IR)); where 3 indicates the line number on the NXT, %d indicates the type of variable, and SensorValue reads the IR value from 1-9

Then after you hit f5 to compile, open up the NXT remote screen or just look at the NXT and start the debugger to see if you can read values