GithubHelp home page GithubHelp logo

aarondennis / ev3devkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ev3dev/ev3devkit

0.0 2.0 0.0 4.19 MB

programming toolkit for ev3dev

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

CMake 4.18% Vala 92.77% Python 2.84% Shell 0.21%

ev3devkit's Introduction

ev3devKit

Programming toolkit for ev3dev

About

This is a GLib/GObject based library that provides a number of programming interfaces for ev3dev, including user interface and device driver interface. It is written in vala, but since it uses GObjects, it can be used with many languages via GObjectIntrospection.

For an example of how it is used, checkout brickman.

Status

This is currently in the development stages and is unstable. The device driver interfaces require the latest ev3dev kernel (currently v3.16.7-ckt4-ev3dev1).

Dependencies

Besides dependencies included in trusty, we need vala >= 0.24, which you can get from the vala-team PPA, and libgrx which is part of the ev3dev package repository.

Compiling

To get something usable on the EV3 brick, you should compile using brickstrap.

# include install build depends
$ sudo apt-get install cmake valac libgirepository1.0-dev \
libgudev-1.0-dev libncurses5-dev libgrx-dev
# if you are building for desktop (see below) you also need
$ sudo apt-get install libgtk-3-dev
# clone the git repo
$ git clone --recursive git://github.com/ev3dev/ev3devKit
# create a build directory (not in cloned ev3devKit directory).
$ mkdir build
$ cd build
$ cmake ../ev3devKit
$ make

You can add additional build option to the cmake command. Note: you need to delete everything in the build directory when changing cmake options to ensure that they take effect (you can use nuke.sh to do this).

  • Enable debugging: -DCMAKE_BUILD_TYPE=string:Debug
  • Build additional library for running on a desktop: -DEV3DEVKIT_DESKTOP=bool:Yes
  • Do not build the demo programs: -EV3DEVKIT_BUILD_DEMO=bool:No

Running

When building for the desktop, one can run the demos using make run<tab>. In order to run them on the device, copy the demos over or share the folder via NFS or sshfs with the EV3. When copying them to /home/user, the demos are runable from the file-browser.

Documentation

API docs are at http://www.ev3dev.org/ev3devKit/ev3devkit/index.htm

ev3devkit's People

Contributors

dlech avatar ensonic avatar wasabifan avatar

Watchers

 avatar  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.