Download pi4j-example-1.2.jar file

Introduction

You can download pi4j-example-1.2.jar in this page.

License

Open Source

Type List

pi4j-example-1.2.jar file has the following types.

ADS1015DistanceSensorExample.class
ADS1015GpioExample.class
ADS1115DistanceSensorExample.class
ADS1115GpioExample.class
BlinkGpioExample.class
BlinkTriggerGpioExample.class
BroadcomPinNumberingGpioExample.class
BroadcomPinNumberingGpioListenerExample.class
ComputeModuleGpioExample.class
ControlGpioExample.class
CylonGpioExample.class
DebounceGpioExample.class
FrequencyGpioExample.class
GpioInputAllExample.class
GpioInputExample.class
GpioListenAllExample.class
GpioListenExample.class
GpioOutputExample.class
GpioTest.class
I2CExample.class
I2CWiiMotionPlusExample.class
IFTTTMakerChannelTriggerExample.class
LICENSE.txt
LcdExample.class
ListenGpioExample.class
ListenMultipleGpioExample.class
MCP23017GpioExample.class
MCP23S17GpioExample.class
MCP3004GpioExample.class
MCP3004GpioExampleNonMonitored.class
MCP3008GpioExample.class
MCP3008GpioExampleNonMonitored.class
MCP3204GpioExample.class
MCP3204GpioExampleNonMonitored.class
MCP3208GpioExample.class
MCP3208GpioExampleNonMonitored.class
MCP3424GpioExample.class
MCP3424GpioExampleNonMonitored.class
MCP4725GpioExample.class
META-INF/MANIFEST.MF
META-INF/maven/com.pi4j/pi4j-example/pom.properties
META-INF/maven/com.pi4j/pi4j-example/pom.xml
MaestroServoExample.class
MultipurposePinGpioExample.class
NOTICE.txt
NonPrivilegedGpioExample.class
OlimexGpioExample.class
PCA9685GpioExample.class
PCA9685GpioServoExample.class
PCF8574GpioExample.class
PiFaceExample.class
PiFaceGpioExample.class
PibrellaExample.class
PwmExample.class
README.md
RPIServoBlasterExample.class
SerialExample.class
ShutdownGpioExample.class
SoftPwmExample.class
SpiExample.class
StepperMotorGpioExample.class
SystemInfoExample.class
TriggerGpioExample.class
UsageGpioExample.class
W1TempExample.class
WDTExample.class
WiringPiGpioExample.class
WiringPiGpioInterruptExample.class
WiringPiGpioInterruptExample2.class
WiringPiLcdExample.class
WiringPiPinAltExample.class
WiringPiSPIExample.class
WiringPiSerialExample.class
WiringPiSoftPWMExample.class
bananapi.GpioInputAllExample.class
bananapi.GpioInputExample.class
bananapi.GpioListenAllExample.class
bananapi.GpioListenExample.class
bananapi.GpioOutputExample.class
bananapi.I2CExample.class
bananapi.PwmExample.class
bananapi.SerialExample.class
bananapi.SoftPwmExample.class
bananapi.SpiExample.class
bananapi.SystemInfoExample.class
bananapro.GpioInputAllExample.class
bananapro.GpioInputExample.class
bananapro.GpioListenAllExample.class
bananapro.GpioListenExample.class
bananapro.GpioOutputExample.class
bananapro.I2CExample.class
bananapro.PwmExample.class
bananapro.SerialExample.class
bananapro.SoftPwmExample.class
bananapro.SpiExample.class
bananapro.SystemInfoExample.class
odroid.c1.AnalogInputExample.class
odroid.c1.AnalogListenExample.class
odroid.c1.GpioInputAllExample.class
odroid.c1.GpioInputExample.class
odroid.c1.GpioListenAllExample.class
odroid.c1.GpioListenExample.class
odroid.c1.GpioOutputExample.class
odroid.c1.I2CExample.class
odroid.c1.SerialExample.class
odroid.c1.SoftPwmExample.class
odroid.c1.SpiExample.class
odroid.c1.SystemInfoExample.class
odroid.xu4.AnalogInputExample.class
odroid.xu4.AnalogListenExample.class
odroid.xu4.GpioInputAllExample.class
odroid.xu4.GpioInputExample.class
odroid.xu4.GpioListenAllExample.class
odroid.xu4.GpioListenExample.class
odroid.xu4.GpioOutputExample.class
odroid.xu4.I2CExample.class
odroid.xu4.SerialExample.class
odroid.xu4.SoftPwmExample.class
odroid.xu4.SpiExample.class
odroid.xu4.SystemInfoExample.class
orangepi.GpioInputAllExample.class
orangepi.GpioInputExample.class
orangepi.GpioListenAllExample.class
orangepi.GpioListenExample.class
orangepi.GpioOutputExample.class
orangepi.I2CExample.class
orangepi.SerialExample.class
orangepi.SoftPwmExample.class
orangepi.SpiExample.class
orangepi.SystemInfoExample.class

Pom

pi4j-example-1.2.pom file content.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<!-- MAVEN ARTIFACT INFORMATION -->
	<artifactId>pi4j-example</artifactId>
	<name>Pi4J :: Java Examples</name>
	<description>Pi4J Java Examples using the Pi4J Library</description>
	<packaging>jar</packaging>
	<parent>
		<groupId>com.pi4j</groupId>
		<artifactId>pi4j-parent</artifactId>
        <version>1.2</version>
	</parent>

	<!-- DEPENDENCIES -->
	<dependencies>
<!-- START SNIPPET: maven-dependency-snippet -->
<dependency>
	<groupId>com.pi4j</groupId>
	<artifactId>pi4j-core</artifactId>
	<version>${project.version}</version>
</dependency>
<!-- END SNIPPET: maven-dependency-snippet -->
		<dependency>
			<groupId>com.pi4j</groupId>
			<artifactId>pi4j-gpio-extension</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>com.pi4j</groupId>
			<artifactId>pi4j-device</artifactId>
			<version>${project.version}</version>
		</dependency>
	</dependencies>

	<!-- BUILD INSTRUCTIONS -->
	<build>
		<resources>
			<resource>
				<directory>${project.build.directory}</directory>
				<filtering>false</filtering>
				<includes>
					<include>LICENSE.txt</include>
					<include>NOTICE.txt</include>
					<include>README.md</include>
				</includes>
			</resource>
		</resources>

		<plugins>

			<!-- JAVA COMPILER -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
			</plugin>

			<!-- INCLUDE SOURCE JAR -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
			</plugin>

			<!-- INCLUDE JAVADOC JAR -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
			</plugin>

			<!-- GENERATE LICENSE HEADERS IN SOURCE FILES -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>license-maven-plugin</artifactId>
			</plugin>

			<!-- DOWNLOAD LICENSE, README & NOTICE ARTIFACTS -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
			</plugin>

			<!-- OPTIONALLY DEPLOY THE FINAL JAR TO THE RASPBERRY PI -->
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>

					<!-- copy the compiled JAR file to the Raspberry Pi platform platform -->
					<execution>
						<id>transfer-compiled-pi4j-example-jar</id>
						<phase>install</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<taskdef resource="net/sf/antcontrib/antcontrib.properties"
									classpathref="maven.plugin.classpath" />
								<if>
									<equals arg1="${pi4j.dev.transfer}" arg2="true" />
									<then>

										<!-- ensure the target directory exists on the Raspberry Pi -->
										<sshexec host="${pi4j.dev.host}" port="${pi4j.dev.port}" username="${pi4j.dev.user}"
											password="${pi4j.dev.password}" trust="true" failonerror="false"
											verbose="true" command="mkdir --parents ${pi4j.dev.directory}" />

										<!-- copy the JAR file to the Raspberry Pi -->
										<scp
											file="${project.build.directory}/${project.build.finalName}.jar"
											todir="${pi4j.dev.user}:${pi4j.dev.password}@${pi4j.dev.host}:${pi4j.dev.directory}"
											port="${pi4j.dev.port}" trust="true" verbose="true" failonerror="true">
										</scp>

                                        <!-- copy the example source files to the Raspberry Pi -->
                                        <scp todir="${pi4j.dev.user}:${pi4j.dev.password}@${pi4j.dev.host}:${pi4j.dev.directory}"
                                             port="${pi4j.dev.port}" trust="true" verbose="true" failonerror="true">
                                            <fileset dir="src/main/java" />
                                        </scp>
									</then>
								</if>
							</tasks>
						</configuration>
					</execution>
				</executions>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.ant</groupId>
                        <artifactId>ant-jsch</artifactId>
                        <version>${ant-jsch.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>com.jcraft</groupId>
                        <artifactId>jsch</artifactId>
                        <version>${jsch.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>ant-contrib</groupId>
                        <artifactId>ant-contrib</artifactId>
                        <version>${ant-contrib.version}</version>
                    </dependency>
                </dependencies>
			</plugin>
		</plugins>
	</build>

	<!-- MAVEN REPOSITORIES -->
<!-- START SNIPPET: maven-repository-snippet -->
<repositories>
	<repository>
		<id>oss-snapshots-repo</id>
		<name>Sonatype OSS Maven Repository</name>
		<url>https://oss.sonatype.org/content/groups/public</url>
		<snapshots>
			<enabled>true</enabled>
			<updatePolicy>always</updatePolicy>
		</snapshots>
	</repository>
</repositories>
<!-- END SNIPPET: maven-repository-snippet -->

</project>

POM Entry

<dependency>
   <groupId>com.pi4j</groupId>
   <artifactId>pi4j-example</artifactId>
   <version>1.2</version>
</dependency>

Download

If you think the following pi4j-example-1.2.jar downloaded from Maven central repository is inappropriate, such as containing malicious code/tools or violating the copyright, please email , thanks.



Download pi4j-example-1.2.jar file




PreviousNext

Related