GithubHelp home page GithubHelp logo

sleddogsoftwaredevelopment / blink1 Goto Github PK

View Code? Open in Web Editor NEW
13.0 7.0 4.0 1.09 MB

Interfacing for Blink(1)

License: BSD 3-Clause "New" or "Revised" License

PowerShell 0.53% C# 99.47%
c-sharp blink1 usb usb-hid

blink1's Introduction

Blink

.NET framework for Blink(1)

Ideas from the originial implementation of ManagedBlink1, but based on direct HID interaction instead of using the supplied C++ dll.

Supports more features than the official library, with a focus on abstracting hardware knowledge away.

Build badge...

blink1's People

Contributors

cyberzed avatar dependabot[bot] avatar jrotello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

blink1's Issues

Add full support for mk3

Current version released on NuGet allows all new mk3 units to be recognized as a mk2 unit, which it's really as it should be

Fails to load properly System.CoreEx has been deprecated/removed

System.CoreEx was apparently deprecated/removed from Rx. and merged into System.Reactive, but when I try to compile a simple new Sleddog.Blink1.Blink1() it says

The type 'Notification`1' is required here and is unavailable. You must add a reference to assembly 'System.CoreEx, Version=1.0.2856.104, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

HidApi.Net 0.2.0

Hi,

I'm the author of HidApi.Net. Thank you for using my new library, it's great to see that it seems to work for you ๐Ÿ‘ .

I just published release version 0.2.0 which should support connecting to a device given it's serial number. Unfortunately I don't own a HID device which provides a serial number. From your code it looks like the "blink1" provides a serial number.

It would be absolutely awesome if you could test if a connection to the "blink1" is possible using the newly created constructor and report back if it is working.

Thanks again for trusting my library. Any feedback is very welcome.

.NET 6 support?

.NET has had major releases since this libraries support of .NET 4, will the library be updated? .NET runs on all three major OSโ€™s now too.

System.Reactive version mismatch

It appears the current latest version of the NuGet package (2.0.2) has a dependency on System.Reactive (>= 4.1.2) as can be seen here: https://www.nuget.org/packages/Sleddog.Blink1/2.0.2

However, the dll itself has a dependency on System.Reactive (>= 4.2.0) as can be seen here:

<package id="System.Reactive" version="4.2.0" targetFramework="net472" />

This causes a runtime exception to be thrown when attempting to invoke the library.

Workaround: explicitly add System.Reactive 4.2.0 to the project.

Coding example

Would it be possible to provide a small example of how to use the component?

Warnings when added the NET 5.0 project

Warning NU1701: Package 'hidlibrary 3.3.24' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net5.0'. This package may not be fully compatible with your project. (NU1701)

Warning NU1701: Package 'Sleddog.Blink1 2.0.3' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net5.0'. This package may not be fully compatible with your project. (NU1701) (AutomationHost)

Any chance 5.0 support is on your radar? Got my devices today!

Reactive version issue on using Blink() method

I'm quite new into C# programming and using Github but I wanted to give it a try to utilize my 2 Blink1 Mk2's in an own written application.

When I want to use the Blink() method I experience the following error (in Dutch):
"System.IO.FileNotFoundException: 'Kan bestand of assembly System.Reactive.Linq, Version=2.2.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden.'"
Translated to English it says it can't find the assembly System.Reactive.Linq, Version=2.2.5.0. Reactive seems to have version 4.0.30319 at this moment?

I don't know how to solve this issue actually and hoping to get some help in here.

Simple Example

Is there a simple c# example anywhere just to turn on the LED?

Add option for connecting to a given device

Based on a serial number it should be possible to get a single device...either from the enumerator or the ctor.

I would probably make more sense if you can instantiate a new device directly...how would it work if several devices are connected?

Check serialnumber reading

Needs to ensure that serialnumber reading works 100% for blink(1) and blink(1)mk2 since the mk2 doesn't support the same command.

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.