Skip to content

Commit 69b801b

Browse files
authored
Merge pull request #46 from FHNW-IP5-IP6/dev
Dev to master
2 parents da32461 + 6e2ed29 commit 69b801b

File tree

152 files changed

+14942
-498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+14942
-498
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,8 @@ scenicView.properties
8080

8181
# NetBeans
8282
.nb-gradle/
83-
nbproject/
83+
nbproject/
84+
85+
# jbaettig's Section
86+
docs/*.pdf
87+
/log/*

README.adoc

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,44 @@
11
= GIOSimulator
22

3+
*Creating GPIO projects in Java on the Raspberry Pi has never been this easy!*
4+
5+
== What is the GPIOSimulator
6+
This project contains component classes for using sensors and actuators in Java with the Raspberry Pi. Additionally, it has a rich tutorial to support new developers to try Java for their GPIO Raspberry Pi projects.
7+
8+
== Main Features
9+
* Beginner friendly component classes for easy usage of common sensors and actuators in Java
10+
11+
* Compatibility with the Grove Base Hat
12+
13+
* Compatibility with Grove Sensors and Actuators
14+
15+
* A rich tutorial which explains all components
16+
17+
* A sample project that shows how the components can work together
18+
19+
== Installation
20+
Download the `jar` file from the releases: +
21+
https://github.com/FHNW-IP5-IP6/GPIOSimulator/releases/
22+
23+
Add the file to the resources of your project and add a new gradle dependency:
24+
25+
[source]
26+
----
27+
repositories {
28+
mavenCentral()
29+
flatDir {
30+
dirs 'build/libs'
31+
}
32+
}
33+
34+
dependencies {
35+
implementation name: 'GPIOSimulator-0.1'
36+
}
37+
----
38+
39+
== Complete Tutorial
40+
Visit the following page for a complete tutorial:
41+
42+
https://github.com/FHNW-IP5-IP6/GPIOSimulator/blob/dev/docs/Tutorial.adoc
43+
44+
You can generate an `html` file or any other file format from the `Tutorial.adoc` using https://asciidoctor.org[asciidoctor].

build.gradle

Lines changed: 50 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
plugins {
2-
id 'java'
2+
id 'java'
33
id 'org.asciidoctor.jvm.convert' version '3.1.0'
44
id 'org.asciidoctor.jvm.pdf' version '3.1.0'
55
}
66

77
group 'ch.fhnw'
8-
version '0.1'
8+
version '1.0'
99

1010
repositories {
11-
jcenter()
11+
jcenter()
1212
mavenCentral()
13-
maven {
14-
url "https://oss.sonatype.org/content/repositories/snapshots/"
15-
}
16-
13+
maven {
14+
url "https://oss.sonatype.org/content/repositories/snapshots/"
15+
}
16+
maven {
17+
url "https://jitpack.io"
18+
}
1719
}
1820

1921

@@ -26,49 +28,64 @@ sourceSets {
2628
}
2729

2830
compileJava {
29-
options.encoding = 'UTF-8'
30-
sourceCompatibility = JavaVersion.VERSION_11
31-
targetCompatibility = JavaVersion.VERSION_11
31+
options.encoding = 'UTF-8'
32+
sourceCompatibility = JavaVersion.VERSION_1_8
33+
targetCompatibility = JavaVersion.VERSION_1_8
3234
}
3335

3436
dependencies {
35-
implementation 'com.pi4j:pi4j-core:1.4-SNAPSHOT'
37+
implementation 'com.pi4j:pi4j-core:1.2'
38+
implementation 'com.pi4j:pi4j-device:1.2'
39+
implementation 'com.github.Hopding:JRPiCam:v1.1.1'
40+
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.13.2'
41+
compile "uk.co.caprica:picam:2.0.2"
3642

37-
testImplementation('org.junit.jupiter:junit-jupiter:5.6.0')
43+
testImplementation('org.junit.jupiter:junit-jupiter:5.6.0')
3844
}
3945

4046
test {
41-
useJUnitPlatform()
42-
testLogging {
43-
events "passed", "skipped", "failed"
44-
}
47+
useJUnitPlatform()
48+
testLogging {
49+
events "passed", "skipped", "failed"
50+
}
4551
}
4652

4753

4854
asciidoctorj {
4955
modules {
50-
diagram.version '1.5.18'
56+
diagram.version '1.5.18'
5157
}
5258
}
5359

5460
asciidoctor {
55-
sourceDir file('docs')
56-
sources {
57-
include 'documentation.adoc','syntax.adoc'
58-
}
59-
outputDir file('build/docs')
60-
attributes 'source-highlighter': 'coderay',
61-
'coderay-linenums-mode': 'table',
62-
'sourcedir': "${projectDir}/src/main/java",
63-
'targeted-env': 'Sample'
61+
sourceDir file('docs')
62+
sources {
63+
include 'documentation.adoc', 'syntax.adoc'
64+
}
65+
outputDir file('build/docs')
66+
attributes 'source-highlighter': 'coderay',
67+
'coderay-linenums-mode': 'table',
68+
'sourcedir': "${projectDir}/src/main/java",
69+
'targeted-env': 'Sample'
6470
}
6571

6672
asciidoctorPdf {
67-
sourceDir 'docs'
73+
sourceDir 'docs'
6874

69-
asciidoctorj {
70-
attributes 'source-highlighter' : 'coderay',
71-
'sourcedir': "${projectDir}/src/main/java",
72-
'targeted-env': 'PDF Sample'
73-
}
74-
}
75+
asciidoctorj {
76+
attributes 'source-highlighter': 'coderay',
77+
'sourcedir': "${projectDir}/src/main/java",
78+
'targeted-env': 'PDF Sample'
79+
}
80+
}
81+
82+
jar {
83+
//exclude examples for using it like an API, but then manifest also has to be removed
84+
exclude("fhnwexamples/*")
85+
//manifest {
86+
// attributes "Main-Class": "fhnwexamples.Examples"
87+
//}
88+
from {
89+
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
90+
}
91+
}
51 KB
Binary file not shown.

docs/Projektdokumentation.adoc

Lines changed: 555 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)