Skip to content

Python class to communicate with usb/serial/ftdi haptic devices

Notifications You must be signed in to change notification settings

ISIR-MAP/multicom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codacy Badge Codacy Badge

multicom

Python class to communicate with usb/serial/ftdi haptic devices

How to use

ìmport multicom.com as com

For FTDI Devices

HAPTICDEV = com.HDevice("ftdi")

For Serial Devices

HAPTICDEV = com.HDevice("COM8")

Launch

HAPTICDEV.launch() #starts the read/write threads on a different process

Usefull Read functions

get()

Return raw data

readarray(size)

Return a bytearray of desired size

readsep(separator, size)

Read a sequence of "float separator float separator ..." of desired size

Usefull Write functions

write(tosend)

convert to send to an int and send

Quit

HAPTICDEV.quit() # stops the threads

About

Python class to communicate with usb/serial/ftdi haptic devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages