File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- """Library for the AS7262 Visble Light Spectral Sensor."""
1+ """Library for the AS7262 Visible Light Spectral Sensor."""
22import struct
33import time
44
@@ -12,7 +12,7 @@ class as7262VirtualRegisterBus():
1212 """AS7262 Virtual Register.
1313
1414 This class implements the wacky virtual register setup
15- of the AS7262 annd allows i2cdevice.Device to "just work"
15+ of the AS7262 and allows i2cdevice.Device to "just work"
1616 without having to worry about how registers are actually
1717 read or written under the hood.
1818
Original file line number Diff line number Diff line change 1- """Library for the AS7262 Visble Light Spectral Sensor."""
1+ """Library for the AS7262 Viisble Light Spectral Sensor."""
22import as7262
33
44if __name__ == '__main__' :
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def __init__(self, i2c_bus):
4949 self .status = 0b01 # Fake status register
5050 self .ptr = None # Fake register pointer
5151
52- # Virtual registers, thes contain the data actually used
52+ # Virtual registers, these contain the data actually used
5353 self .regs [0x00 ] = 0x88 # Fake HW type
5454 self .regs [0x01 ] = 0x77 # Fake HW version
5555 self .regs [0x02 ] = 0xFE # Fake FW version MSB (Sub, Minor)
You can’t perform that action at this time.
0 commit comments