Skip to content

Commit 1bb72dd

Browse files
committed
HiTechnic Prototype class now tested
Thanks to Jared Dunbar for the test! Also fix an obviously wrong registers definition. See #187
1 parent 1d29484 commit 1bb72dd

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

nxt/sensor/hitechnic.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -391,16 +391,14 @@ def calibrate(self):
391391

392392

393393
class Prototype(BaseDigitalSensor):
394-
"""Object for HiTechnic sensor prototype boards. Coded to HiTechnic's specs but not
395-
tested. Please report whether this worked for you or not!
396-
"""
394+
"""Object for HiTechnic sensor prototype boards."""
397395
I2C_ADDRESS = BaseDigitalSensor.I2C_ADDRESS.copy()
398396
I2C_ADDRESS.update({
399397
'A0': (0x42, '<H'),
400-
'A0': (0x44, '<H'),
401-
'A0': (0x46, '<H'),
402-
'A0': (0x48, '<H'),
403-
'A0': (0x4A, '<H'),
398+
'A1': (0x44, '<H'),
399+
'A2': (0x46, '<H'),
400+
'A3': (0x48, '<H'),
401+
'A4': (0x4A, '<H'),
404402
'all_analog': (0x42, '<5H'),
405403
'digital_in': (0x4C, 'B'),
406404
'digital_out': (0x4D, 'B'),

0 commit comments

Comments
 (0)