|
@@ -22,8 +22,6 @@
|
22
|
22
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
23
|
*/
|
24
|
24
|
|
25
|
|
-import upm_a110x.IsrCallback;
|
26
|
|
-
|
27
|
25
|
public class A110X_intrSample {
|
28
|
26
|
|
29
|
27
|
public static int counter=0;
|
|
@@ -38,7 +36,7 @@ public class A110X_intrSample {
|
38
|
36
|
// is detected. This could be used to measure the rotations per
|
39
|
37
|
// minute (RPM) of a rotor for example.
|
40
|
38
|
|
41
|
|
- IsrCallback callback = new A110XISR();
|
|
39
|
+ A110XISR callback = new A110XISR();
|
42
|
40
|
hall.installISR(callback);
|
43
|
41
|
|
44
|
42
|
while(true){
|
|
@@ -49,7 +47,7 @@ public class A110X_intrSample {
|
49
|
47
|
}
|
50
|
48
|
}
|
51
|
49
|
|
52
|
|
-class A110XISR extends IsrCallback {
|
|
50
|
+class A110XISR implements Runnable {
|
53
|
51
|
public A110XISR(){
|
54
|
52
|
super();
|
55
|
53
|
}
|