AttributeError: 'FrameBuffer' object has no attribute 'height'

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
meurs274
Posts: 1
Joined: Thu Aug 18, 2022 7:49 am

AttributeError: 'FrameBuffer' object has no attribute 'height'

Post by meurs274 » Thu Aug 18, 2022 8:00 am

I am trying to display a picture on the oled SH1106 screen with the raspberry pi pico
I downloaded the sh1106.py driver and the code but I get the error: AttributeError: 'FrameBuffer' object has no attribute 'height'.
I am using Tonny with Win11.
anyone suggestions? Thanks.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: AttributeError: 'FrameBuffer' object has no attribute 'height'

Post by Roberthh » Thu Aug 18, 2022 8:45 am

Which module/line flags the error? or can you show the full error message with context?

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: AttributeError: 'FrameBuffer' object has no attribute 'height'

Post by Roberthh » Thu Aug 18, 2022 8:54 am

I made a change to the driver, referencing self.height instead.

Post Reply