Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.17 KB

README.md

File metadata and controls

39 lines (34 loc) · 1.17 KB

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