Code: Select all
Micro Python v1.3.8-9-g8a2cc1c on 2014-12-30; PYBv1.0 with STM32F405RG
Type "help()" for more information.
>>> import ssd1306_test2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "ssd1306_test2.py", line 30, in <module>
File "ssd1306.py", line 179, in init_display
File "ssd1306.py", line 120, in clear
TypeError: 'int' object is not iterable
>>>
Code: Select all
def clear(self):
"""Clears the display buffer. This is equivalent to setting the
whole screen black."""
self.display_buffer = bytearray(self.offset + self.pages * self.width)
if self.offset == 1:
self.display_buffer[0] = CTL_DAT
If this is a bug i will of course file one on Github. Just wanted to make sure this is not my fault