Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

demo: cleanup of blink example

  • Loading branch information...
commit e22e1d47d267f783a067a049943f7c5503c92547 1 parent 1e194a5
@schoeberl authored
View
18 java/target/src/Blink.java
@@ -49,16 +49,14 @@ private static void delayMs(int milliseconds) {
public void run() {
for (;;) {
- Native.wr(0, 0);
- for (int i = 0; i < 100; ++i)
- for (int j = 0; j < 100; ++j)
- for (int k = 0; k < 100; ++k)
- ;
- Native.wr(1, 0);
- for (int i = 0; i < 100; ++i)
- for (int j = 0; j < 100; ++j)
- for (int k = 0; k < 100; ++k)
- ;
+ Native.wr(0, Native.LED_PORT);
+ for (int i=0; i<32000; ++i)
+ for (int j=0; j<200; ++j)
+ ;
+ Native.wr(1, Native.LED_PORT);
+ for (int i=0; i<32000; ++i)
+ for (int j=0; j<200; ++j)
+ ;
}
}
View
2  java/target/src/com/muvium/leros/Native.java
@@ -41,6 +41,8 @@
*/
public class Native {
+ public final static int LED_PORT = 0;
+ public final static int BUTTON_PORT = 0;
/**
* Read from an IO device.
* Only 8 bit address and 16 bit data are used.
Please sign in to comment.
Something went wrong with that request. Please try again.