RPI3 LED – Klassen test

public class TestLED
{
    // instance variables - replace the example below with your own
    private int x;

    /**
     * Constructor for objects of class TestLED
     */
    public void main(String args[])
    {
        Led led = new Led(null);
        while (true){
            led.toggle();
            try{
                Thread.sleep(2000);
            } catch(InterruptedException ex){
                // do nothing
            }
        }
    }
}

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert