User Tools

Site Tools


the_ledtester_class

This is an old revision of the document!


hi

/**
 * This class tests LED by flashing some morse code. 2014 verion by 
 * @author Ian Utting
 * @author Fabio Heday
 * 
 * Chris Thiel added the finalize() method to aviod GpioPinExistsException
 * @version 10 Aug 18
 */
public class LEDTester
{
     public LED pin1;
 
    //unit of time, in milliseconds
    private final static int UNIT = 200;
 
    public static void main(String [] args) {
        LEDTester lt = new LEDTester();
 
        String s = "SOS SOS SOS";
 
    }
 
    protected void finalize(){
        pin1.finalize();
    }  
}
the_ledtester_class.1533961813.txt.gz · Last modified: 2018/08/11 00:30 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki