Minor tweaks for correct building
This commit is contained in:
14
build.gradle
14
build.gradle
@@ -26,4 +26,18 @@ repositories {
|
||||
dependencies {
|
||||
compile 'org.msgpack:msgpack:0.6.11'
|
||||
compile 'com.sparetimelabs:purejavacomm:0.0.22'
|
||||
compile 'org.slf4j:slf4j-log4j12:1.7.7'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDirs = [ 'src/main/java' ]
|
||||
}
|
||||
}
|
||||
generated {
|
||||
java {
|
||||
srcDirs = [ 'build/generated/java' ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,13 +5,14 @@ import java.util.Properties;
|
||||
import org.picocontainer.PicoCompositionException;
|
||||
|
||||
import tm1638.Tm1638.Message;
|
||||
import base.exception.LoaderException;
|
||||
|
||||
import com.github.boukefalos.arduino.exception.ArduinoException;
|
||||
import com.github.boukefalos.arduino.port.ParsingPort;
|
||||
import com.github.boukefalos.tm1638.implementation.Local;
|
||||
import com.github.boukefalos.tm1638.implementation.Remote;
|
||||
|
||||
import base.exception.LoaderException;
|
||||
|
||||
public class Loader extends com.github.boukefalos.arduino.Loader {
|
||||
protected static final String PROPERTIES_FILE = "TM1638.properties";
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package test;
|
||||
|
||||
import base.work.Listen;
|
||||
|
||||
import com.github.boukefalos.arduino.port.StringPort;
|
||||
import com.github.boukefalos.tm1638.TM1638;
|
||||
import com.github.boukefalos.tm1638.implementation.Local;
|
||||
|
||||
public class TestLocal extends Listen<Object> {
|
||||
import base.work.ReflectiveListen;
|
||||
|
||||
public class TestLocal extends ReflectiveListen {
|
||||
public static void main(String[] args) throws Exception {
|
||||
TM1638 TM1638 = new Local(StringPort.getInstance());
|
||||
main(TM1638);
|
||||
@@ -17,7 +17,7 @@ public class TestLocal extends Listen<Object> {
|
||||
}
|
||||
|
||||
public static void main(TM1638 TM1638) throws Exception {
|
||||
TM1638.register(new TestLocal());
|
||||
//TM1638.register(new TestLocal());
|
||||
TM1638.start();
|
||||
|
||||
TM1638.construct(8, 9, 7);
|
||||
|
||||
Reference in New Issue
Block a user