GithubHelp home page GithubHelp logo

epologee / swifthidapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kybernetyk/swifthidapi

0.0 1.0 0.0 22 KB

Read data from the Griffin Power Mate using HIDAPI from Swift3

License: GNU Affero General Public License v3.0

Swift 100.00%

swifthidapi's Introduction

Little example how to import and access HIDAPI from Swift 3 in conjunction with the Griffin Power Mate controller and the Luxafor Flag (http://luxafor.nl).

This is a Swift 3 (and 4) port of https://github.com/kybernetyk/pm8

Dependencies:
    - Xcode 8+, Swift 3.1+
    - hidapi ( https://github.com/signal11/hidapi ) [brew install hidapi]


Build:
    Make sure hidapi/module.map points to the correct hidapi.h file on your system. It works for now (Nov 2016) with Homebrew hidapi. You might need to change it though.

    Don't forget to update the 'Other Linker Flags' build settings in Xcode. Make sure the path points to the correct location of hidapi libs on your system.

    If in doubt run:
        pkg-config hidapi --cflags
        pkg-config hidapi --libs


Run:
    - Griffin Power Mate: you need to quit the Griffin Power Mate companion app first. Otherwise the device will be busy and not accessible to us!
    - Luxafor Flag: you need to quit the Luxafor companion app first. Otherwise the device will behave unexpectedly

Copyright & License:
    This code is licensed under the Affero GPL3 License!
    (c) Jarosław Leon Szpilewski
    with additions from Eric-Paul Lecluse

swifthidapi's People

Contributors

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