I just received a IR Seeker V2 and an Infrared Ball from Hitechnic and having some problems getting this to work with lejos.
Im using the IR Seeker from the API but everything i try returns -1.
This is the program im trying:
- Code: Select all
IRSeekerSensor seeker = new IRSeekerSensor(SensorPort.S3);
seeker.setAddress(0x10);
while (!Button.ESCAPE.isPressed())
{
int direction = seeker.getDirection();
LCD.clear();
LCD.drawInt(direction, 2,2);
LCD.refresh();
}
And the output is -1.
Is this because the V2 version is not supported by lejos yet?
Or is there something about the V2 using I2C address is 0x10 instead of the standard address?
