Skip to content
Snippets Groups Projects
Commit a0cf4c1d authored by Gijs Schoonderbeek's avatar Gijs Schoonderbeek
Browse files

Update for APSPU production

parent 64f0853a
No related branches found
No related tags found
No related merge requests found
......@@ -77,8 +77,10 @@ class I2C:
def write_bytes(self, register, data):
bus = pi.i2c_open(self.bus_nr, self.I2C_Address)
if type(data) is not list:
data = [data]
try:
pi.i2c_write_i2c_block_data(bus, register, [data])
pi.i2c_write_i2c_block_data(bus, register, data)
ret_ack = 1
if SLOW:
sleep(0.3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment