sensorportlistener.java
来自「专业汽车级嵌入式操作系统OSEK的源代码」· Java 代码 · 共 22 行
JAVA
22 行
package lejos.nxt;/** * * Interface for monitoring changes to the value for an * Analogue/Digital sensor (such as a Touch, Light or Sound sensor) * on a SensorPort. * */public interface SensorPortListener { /** * Called when the raw value of the sensor attached to the port changes. * @param aSource The Port that generated the event. * @param aOldValue The old sensor raw value. * @param aNewValue The new sensor raw value. */ public void stateChanged (SensorPort aSource, int aOldValue, int aNewValue);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?