Skip to content

test-pattern.py example failing #2

@tomrdyson

Description

@tomrdyson

When trying to run the test-pattern.py example I'm getting the following error:

python3 test-pattern.py --calibrate
test-pattern.py - Test a DRV2605 built-in haptic pattern

Calibrating...
Pattern: 1
Repeat: 1 time(s)
Delay: 100ms
Traceback (most recent call last):
  File "test-pattern.py", line 60, in <module>
    *sequence
  File "/usr/local/lib/python3.5/dist-packages/drv2605/__init__.py", line 300, in set_sequence
    self._drv2605.set('WAVEFORM_SEQUENCER', **settings)
  File "/usr/local/lib/python3.5/dist-packages/i2cdevice/__init__.py", line 219, in set
    self.set_field(register, field, value)
  File "/usr/local/lib/python3.5/dist-packages/i2cdevice/__init__.py", line 253, in set_field
    field = register.fields[field]
KeyError: 'set_step1_waveform'

The test-waveform.py works fine.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions