Novation Launchpad library for clojure
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

clj-launchpad Clojars Project

Novation Launchpad library for clojure


Starting out with clj-launchpad is fairly easy. We will walk you through a basic scenario that you can adopt to your needs.

We will use leiningen to start a demo project. The following command creates a new Clojure project in the clj-launchpad-demo directory

> lein new app clj-launchpad-demo
Generating a project called clj-launchpad-demo based on the 'app' template.

In the newly created directory there is a project.clj. Open it and add clj-launchpad as a dependency. Check Clojars for the latest version. Modify the project.clj to suit your needs.

(defproject clj-launchpad-demo "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url ""
  :license {:name "Eclipse Public License"
            :url ""}
  :dependencies [[org.clojure/clojure "1.6.0"]
                 [clj-launchpad "0.3.2]]
  :main ^:skip-aot clj-launchpad-demo.core
  :target-path "target/%s"
  :profiles {:uberjar {:aot :all}})

Plug in your Launchpad and fire up a repl.

> lein repl

Require clj-launchpad and open a connection to your Launchpad.

clj-launchpad-demo.core=> (require '[clj-launchpad :refer :all])
clj-launchpad-demo.core=> (def lpad (open))

The lpad Var can be used to control the Launchpad. See the API page for details on what you can do with it.


Copyright (C) 2012 Moumar

Distributed under the Eclipse Public License, the same as Clojure.