Skip to content

Commit af98ce3

Browse files
committed
updates ssd1306 display driver
1 parent 9c9a7b3 commit af98ce3

File tree

1 file changed

+1
-5
lines changed
  • api_drivers/common_api_drivers/display/ssd1306

1 file changed

+1
-5
lines changed

api_drivers/common_api_drivers/display/ssd1306/ssd1306.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ def __init__(
4343
if not isinstance(data_bus, (lcd_bus.SPIBus, lcd_bus.I2CBus)):
4444
raise ValueError('Only SPI and I2C lcd busses allowed')
4545

46-
buf_size = int(
47-
display_width *
48-
display_height *
49-
lv.color_format_get_size(color_space)
50-
)
46+
buf_size = int(display_width * display_height // 8)
5147

5248
if frame_buffer1 is None:
5349

0 commit comments

Comments
 (0)