Open ghost opened 3 years ago
Hi DieterUcll,
Please enable i2c interface first, You can use the Desktop GUI by heading to the Pi Start Menu > Preferences > Raspberry Pi Configuration > interface tab then enable i2c. restart your raspberry pi then try again.
File "main.py", line 96, in
info_print()
File "main.py", line 45, in info_print
display = SSD1306()
File "/home/pi/PiFan/oled_091.py", line 87, in init
i2c_interface.init(self, address=address)
File "/home/pi/PiFan/oled_091.py", line 52, in init
self.bus = SMBus(self.bus_id())
FileNotFoundError: [Errno 2] No such file or directory
Exception ignored in: <function i2c_interface.del at 0x7623f270>
Traceback (most recent call last):
File "/home/pi/PiFan/oled_091.py", line 56, in del
self.close_i2c()
File "/home/pi/PiFan/oled_091.py", line 59, in close_i2c
self.bus.close()
AttributeError: 'SSD1306' object has no attribute 'bus'