Git Product home page Git Product logo

vc-hid's Introduction

#Copyright (c) 2021 lorry_rui  
#//////////usage://///////////////  
#for HID use  
#/////////////////////////////////////////  
#VC_tde USE only  @ logitech , Lorry RUi  
https://pypi.org/project/vc-hid  
https://github.com/Lorrytoolcenter/VC-HID.git  

Sample code:  
from vc_hid import vc_hid as hid  
vid="046D" ## this Logi vid
pid="89a"  ## this is logi Rally bar PID  
pid1="867"  ## this is Logi meetup PID  
mousepid="c332"
setID="28"
readID="29"
LED=""
mousebutton="a"
controlID=20
readnumber=20

test = hid.HID_class()




if(__name__)=="__main__":
    anotherCMD=[0,0,0,0]
    
    passflag,data=test.hidset(pid1,setID,controlID,readnumber,anotherCMD)
    print(passflag,data)

    
    passflag,data=test.readhid(pid1,readID,controlID,readnumber)  
    print(passflag,data)

    passflag,data=test.hidset_vpid(vid,pid,setID,controlID,readnumber,anotherCMD)
    print(passflag,data)

    
    passflag,data=test.readhid_vpid(vid,pid,readID,controlID,readnumber)  
    print(passflag,data)

    passflag,data=test.readhid_vpid_all(vid,pid,readID,readnumber)  
    print(passflag,data)

vc-hid's People

Contributors

lorryrui1981 avatar

Watchers

 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.