Permalink
Browse files

java: switch to new muvium compiler

  • Loading branch information...
1 parent 2e68b62 commit 3a67a4de89331d25d32214b3da454fc0566e7f28 @schoeberl committed Sep 20, 2011
View
@@ -0,0 +1,32 @@
+import leros.Native;
+
+import com.muvium.MuviumRunnable;
+
+/*
+ * Example program for Leros.
+ * Just a simple blinking LED.
+ *
+ */
+
+public class Blink extends MuviumRunnable {
+
+
+ public void run(){
+ for (;;) {
+ Native.wr(0, 0);
+ for (int i=0; i<255; ++i)
+ for (int j=0; j<255; ++j)
+ for (int k=0; k<255; ++k)
+ for (int l=0; l<255; ++l)
+ ;
+ Native.wr(1, 0);
+ for (int i=0; i<255; ++i)
+ for (int j=0; j<255; ++j)
+ for (int k=0; k<255; ++k)
+ for (int l=0; l<255; ++l)
+ ;
+ }
+ }
+}
+
+
@@ -0,0 +1,6 @@
+public class Native {
+
+ public native static int rd(int address);
+ public native static void wr( int data, int address );
+
+}
View
BIN LerosMuviumSDK/lib/LerosAPI.jar 100644 → 100755
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
-javac -target 1.5 -g -cp ./:./lib/lerosAPI.jar:./lib/jdom.jar:./lib/jaxen.jar:. LerosHello.java
-java -cp ./:./lib/lerosMuvium.jar:./lib/LerosAPI.jar:./lib/jdom.jar:./lib/jaxen.jar:. MuviumMetal LerosHello config.xml muvium.asm
+javac -target 1.5 -g -cp ./:./lib/lerosAPI.jar:./lib/jdom.jar:./lib/jaxen.jar:. Blink.java
+java -cp ./:./lib/Muvium-Leros.jar:./lib/LerosAPI.jar:./lib/jdom.jar:./lib/jaxen.jar:. MuviumMetal Blink config.xml muvium.asm
cp muvium.asm ../asm

0 comments on commit 3a67a4d

Please sign in to comment.