User Tools

Site Tools


the_ledtester_class

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
the_ledtester_class [2018/08/11 00:29] frchristhe_ledtester_class [2018/08/11 00:34] frchris
Line 1: Line 1:
 hi hi
-<file LEDTester.java>+<file java LEDTester.java>
 /** /**
  * This class tests LED by flashing some morse code. 2014 verion by   * This class tests LED by flashing some morse code. 2014 verion by 
Line 16: Line 16:
     private final static int UNIT = 200;     private final static int UNIT = 200;
          
 +    public static void main(String [] args) {
 +        LEDTester lt = new LEDTester();
 +        
 +        String s = "SOS SOS SOS";
 +        //if(args.length > 0 && args[0] != null && !args[0].equals("")) 
 +        if (args.length > 0 && args[0] != null && !args[0].equals("") )
 +            s = args[0];
 +    
 +        lt.flashMorse(s);
 +        lt.finalize();
 +    }
          
     protected void finalize(){     protected void finalize(){
the_ledtester_class.txt · Last modified: 2018/08/11 01:10 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki