Skip to content

Commit

Permalink
HiTechnic Prototype class now tested
Browse files Browse the repository at this point in the history
Thanks to Jared Dunbar for the test!

Also fix an obviously wrong registers definition.

See #187
  • Loading branch information
schodet committed Jul 18, 2022
1 parent 1d29484 commit 1bb72dd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions nxt/sensor/hitechnic.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,16 +391,14 @@ def calibrate(self):


class Prototype(BaseDigitalSensor):
"""Object for HiTechnic sensor prototype boards. Coded to HiTechnic's specs but not
tested. Please report whether this worked for you or not!
"""
"""Object for HiTechnic sensor prototype boards."""
I2C_ADDRESS = BaseDigitalSensor.I2C_ADDRESS.copy()
I2C_ADDRESS.update({
'A0': (0x42, '<H'),
'A0': (0x44, '<H'),
'A0': (0x46, '<H'),
'A0': (0x48, '<H'),
'A0': (0x4A, '<H'),
'A1': (0x44, '<H'),
'A2': (0x46, '<H'),
'A3': (0x48, '<H'),
'A4': (0x4A, '<H'),
'all_analog': (0x42, '<5H'),
'digital_in': (0x4C, 'B'),
'digital_out': (0x4D, 'B'),
Expand Down

0 comments on commit 1bb72dd

Please sign in to comment.