We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c9a7b3 commit af98ce3Copy full SHA for af98ce3
api_drivers/common_api_drivers/display/ssd1306/ssd1306.py
@@ -43,11 +43,7 @@ def __init__(
43
if not isinstance(data_bus, (lcd_bus.SPIBus, lcd_bus.I2CBus)):
44
raise ValueError('Only SPI and I2C lcd busses allowed')
45
46
- buf_size = int(
47
- display_width *
48
- display_height *
49
- lv.color_format_get_size(color_space)
50
- )
+ buf_size = int(display_width * display_height // 8)
51
52
if frame_buffer1 is None:
53
0 commit comments