first commit

This commit is contained in:
pandacraft 2025-03-21 16:04:17 +01:00
commit a5a0434432
1126 changed files with 439481 additions and 0 deletions

View file

@ -0,0 +1,23 @@
package org.iot.stub;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.iot.raspberry.grovepi.GrovePi;
import org.iot.raspberry.grovepi.devices.GroveLed;
import org.iot.raspberry.grovepi.pi4j.GrovePi4J;
public class Main {
public static void main(String[] args) throws Exception {
GrovePi grovePi = new GrovePi4J();
//your stuff here
int pin = 4;
org.iot.raspberry.grovepi.devices.GroveLed led = new GroveLed(grovePi, pin);
led.set(true);
Thread.sleep(1000);
led.set(false);
//end program forcefully
System.exit(0);
}
}