OpenCores
URL https://opencores.org/ocsvn/leros/leros/trunk

Subversion Repositories leros

[/] [leros/] [trunk/] [LerosMuviumSDK/] [NativeEcho.java] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 martin
import leros.Native;
2
 
3
import com.muvium.MuviumRunnable;
4
 
5
 
6
 
7
public class NativeEcho extends MuviumRunnable {
8
 
9
 
10
 
11
 
12
    public void run(){
13
 
14
        Native.write( 'H' );
15
        Native.write( 'I' );
16
 
17
        //Echo
18
         while( true ){
19
                 Native.write( 'H' );
20
                 Native.write( 'i' );
21
                 int val = Native.read();
22
                 Native.write( val );
23
 
24
         }
25
 
26
    } //Run()
27
}
28
 
29
 
30
 
31
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.