first commit
This commit is contained in:
commit
a5a0434432
1126 changed files with 439481 additions and 0 deletions
23
Software/Java8/ProjectStub/src/org/iot/stub/Main.java
Normal file
23
Software/Java8/ProjectStub/src/org/iot/stub/Main.java
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue