Skip to content

Commit 96f29b9

Browse files
committed
Fix broken EDS LED, using old regwr() method
1 parent 55f70e8 commit 96f29b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/EDS.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ def rgb(self, r, g, b, t = 0):
4646
"""
4747
if t == 0:
4848
self.i2.start(self.a, 0)
49-
self.i2.regwr(self.a, 0, r, g, b)
49+
self.i2.regwr(self.a, 0, bytes([r, g, b]))
5050
else:
5151
self.i2.start(self.a, 0)
52-
self.i2.regwr(self.a, 1, r, g, b, t)
52+
self.i2.regwr(self.a, 1, bytes([r, g, b, t]))
5353

5454
def hex(self, hhh, t = 0):
5555
"""

python/i2cdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import struct
55
from collections import OrderedDict
66

7-
__version__ = '1.0.0'
7+
__version__ = '1.0.1'
88

99
PYTHON2 = (sys.version_info < (3, 0))
1010

0 commit comments

Comments
 (0)