Skip to content

Commit

Permalink
Merge cc15b77 into f6bf0f1
Browse files Browse the repository at this point in the history
  • Loading branch information
jscd committed Dec 27, 2020
2 parents f6bf0f1 + cc15b77 commit 3c6be22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/inky/eeprom.py
Expand Up @@ -6,7 +6,7 @@
import struct


EEP_ADRESS = 0x50
EEP_ADDRESS = 0x50
EEP_WP = 12


Expand Down Expand Up @@ -127,8 +127,8 @@ def read_eeprom(i2c_bus=None):
except ImportError:
raise ImportError('This library requires the smbus2 module\nInstall with: sudo pip install smbus2')
i2c_bus = SMBus(1)
i2c_bus.write_i2c_block_data(EEP_ADRESS, 0x00, [0x00])
return EPDType.from_bytes(i2c_bus.read_i2c_block_data(0x50, 0, 29))
i2c_bus.write_i2c_block_data(EEP_ADDRESS, 0x00, [0x00])
return EPDType.from_bytes(i2c_bus.read_i2c_block_data(EEP_ADDRESS, 0, 29))
except IOError:
return None

Expand Down

0 comments on commit 3c6be22

Please sign in to comment.