Code Monkey home page Code Monkey logo

ev3dev-c's Introduction

     ____ __     ____   ___    ____ __         (((((()
    | |_  \ \  /   ) ) | |  ) | |_  \ \  /  \(@)- /
    |_|__  \_\/  __)_) |_|_/  |_|__  \_\/   /(@)- \
                                               ((())))
    ___         __________________________________
    ___ VERSION __________________________________

    ev3dev-c    0.9b8
                2017-05-05

    kernel      4.4.61-20-ev3dev-ev3
    ___             ______________________________
    ___ WHAT IS IT? ______________________________

    ev3dev-c is a C library for LEGO MINDSTORMS EV3 Debian Linux
    (http://www.ev3dev.org/) which wraps an access to the EV3 hardware.

    The library also supports a remote access to the EV3 brick over UDP.
    So, if you configure WLAN on the brick you can control the EV3
    hardware from a remote computer, for instance, running under Windows.

    ___                 __________________________
    ___ OTHER LANGUAGES __________________________

    Python (see "python/ev3dev" folder), Ruby (see "ruby" folder) and
    Perl (see "perl" folder) libraries are automatically generated from
    C library using SWIG tool.

    Use pip to install ev3dev-c Python package:

        pip install --pre ev3dev-c

    ev3dev-c is currently in a beta stage, therefore you have to use
    the key "--pre".

    Python package contains the following binary modules:
    _ev3.pyd    – for a remote access under Windows (x86);
    _ev3.so     – for LEGO Mindstorms EV3 Debian.

    You have to install "python-dev", "ruby-dev" and "libperl-dev"
    packages to build the corresponding library.

    ___          _________________________________
    ___ GET HELP _________________________________

    The documentation generated by Doxygen can be found on

        http://in4lio.github.io/ev3dev-c/

    ___       ____________________________________
    ___ F A Q ____________________________________

    * * *  What are unusual ".yu", ".yu-с" and ".yu-h" files for?

    ev3dev-c is written using yupp lexical preprocessor, but don't
    panic, generated source files in C also included.

    * * *  How can I see some examples?

    A comprehensive example based on coroutines:

        http://in4lio.github.io/ev3dev-c/drive_8c-example.html

    An example of using "brick" simplified library:

        http://in4lio.github.io/ev3dev-c/remote_8c-example.html
        http://in4lio.github.io/ev3dev-c/remote_8py-example.html

    There are a few more examples in C:

        https://github.com/in4lio/ev3dev-c/tree/master/eg/

    light    – LEDs blinking example
    sensor   – TOUCH and COLOR sensors usage
    tacho    – a TACHO motor running for 5 sec
    port     – use of EV3 ports
    dc       – use of a DC motor
    rcx_led  – use of a RCX LED
    servo    – a SERVO motor example

    > cd ev3dev-c/eg/light/
    > make
    > ./Debug/light
    or
    > .\Debug\mingw\light.exe

    Similar examples in Python could be found in "python/ev3dev/eg".
    Examples for Ruby are placed in "ruby/eg", for Perl in "perl/eg".

    * * *  How to control the EV3 hardware remotely

    https://github.com/in4lio/ev3dev-c/tree/master/source/ev3/ev3_link/

    * * *  How to make and install STATIC library

    > cd ev3dev-c/source/ev3/
    > make
    > sudo make install

    * * *  How to make and install SHARED library

    > cd ev3dev-c/source/ev3/
    > make shared
    > sudo make shared-install

    * * *  How to use SHARED library

    > cd ev3dev-c/eg/port/
    > gcc port.c -lev3dev-c -o port
    > ./port

    ___     ______________________________________
    ___ GIT ______________________________________

    Run the following on your command-line to clone the library
    repository and its submodules:

        git clone https://github.com/in4lio/ev3dev-c.git
        cd ev3dev-c/
        git submodule update --init --recursive

    To pull the latest library and its submodules:

        cd ev3dev-c/
        git pull origin master
        git submodule foreach git pull origin master

    ___         __________________________________
    ___ CONTACT __________________________________

    Please feel free to contact me at [email protected] if you have
    any questions about the library.

    ___         __________________________________
    ___ LICENSE __________________________________

    Please see the file called "LICENSE".

ev3dev-c's People

Contributors

in4lio avatar

Watchers

James Cloos 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.