GithubHelp home page GithubHelp logo

wwwjames / ardulink-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ardulink/ardulink-2

0.0 0.0 0.0 7.73 MB

The evolution of a complete, open source, java solution for the control and coordination of Arduino boards

Home Page: http://www.ardulink.org

License: Apache License 2.0

Shell 0.30% C++ 7.60% Java 90.26% Lua 0.69% Processing 1.10% Batchfile 0.03% Vim Snippet 0.02%

ardulink-2's Introduction

Ardulink-2 Build Status

This is the repository for Ardulink 2. Ardulink 2 is a complete, open source, java solution for the control and coordination of Arduino boards. This repository contains Ardulink Version 0.6.2 and all upcoming releases.

public static void main(String[] args) throws InterruptedException, IOException {
	Link link = Links.getDefault();
	DigitalPin pin = Pin.digitalPin(2);
	for (boolean power = true;; power = !power) {
		System.out.println("Send power: " + power);
		link.switchDigitalPin(pin, power);
		TimeUnit.SECONDS.sleep(2);
	}
}

Recommended way of using Ardulink-2 inside your own application is declaring a dependency on “ardulink-core-base” using your favorite build system. When using maven please add

<dependency>
    <groupId>org.ardulink</groupId>
    <artifactId>ardulink-core-base</artifactId>
    <version>2.1.0</version>
</dependency>

Without adding additional jars Links.getDefault() would throw an exception because no link type is available. For each link type a separate jar is available. So if you like to connect using a serial link you have to add the corresponding module.For serial link this is

<dependency>
    <groupId>org.ardulink</groupId>
    <artifactId>ardulink-core-serial-jssc</artifactId>
    <version>2.1.0</version>
</dependency>

To see all available link types and a how to use Ardulink with other build systems see https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.ardulink%22

see Ardulink site: www.ardulink.org

ardulink-2's People

Contributors

dependabot[bot] avatar jpink avatar lucianozu avatar matthewburton71 avatar pfichtner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.