Examples of readNormalizedValue()


Examples of lejos.nxt.LightSensor.readNormalizedValue()

//    LCD.drawString("SensorPort 1 Value: " + SensorPort.S1.readValue(), 1, 2);
    System.out.println("S1 Value: " + SensorPort.S1.readValue());
    System.out.println("S1 RawValue: " + SensorPort.S1.readRawValue());
   
    LightSensor light =  new LightSensor(SensorPort.S1, true); //Hierdurch wird der Port1 ersetzt, MySensorPort ist dann nicht mehr richtig die Quelle?
    System.out.println("light: Value=" + light.readValue() + " NormalizedValue=" + light.readNormalizedValue());
     
//    System.out.println("light.readValue in Cerca.java:" + light.readValue());
//    LCD.drawString("SensorPort 1 Value: " + SensorPort.S1.readValue(), 1, 2);
    System.out.println("S1 Value: " + SensorPort.S1.readValue());
    System.out.println("S1 RawValue: " + SensorPort.S1.readRawValue());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.