drv2605l

Crates.iodrv2605l
lib.rsdrv2605l
version0.1.0
sourcesrc
created_at2021-11-11 17:32:36.149762
updated_at2021-11-11 17:32:36.149762
descriptionA platform agnostic driver for the drv2605l haptic driver
homepage
repositoryhttps://github.com/jacobrosenthal/drv2605l-rs
max_upload_size
id480276
size88,374
Jacob Rosenthal (jacobrosenthal)

documentation

README

drv2605l

This module implements a driver for the drv2605l, a Haptic Driver device addressable via I2C from Texas Instruments.

Its rather fully featured implementation for both LRA and ERM motors including:

  • Internal rom library sequencing and playback
  • Pwm playback at the in/trig pin
  • Real time playback over i2c commands
  • Analog voltage input at the in/trig pin

A few things are not supported at the time of this writing:

  • bidirectional input
  • choosing loop operation. The prefered and far more common closed loop operation is hardcoded except for the case of ERM rom libraries which require open loop.
  • audio to vibe mode
  • external trigger mode

This work originated in the drv2065 driver and may be able to unify someday.

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 6

cargo fmt