Skip to content
ISIR-MAPPublic

About

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

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

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

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages