-
Hello, I've started working with Devicescript and trying to initialise display for different esp32s3 box devkits. I've created a custom board json file and loaded the pins, configured the spi and created new ST7789Driver instance. However, I can't input the actual display size of my device, the LCD screen has the resolution of 240x320 and I get this error:
even when I switched the values 240 and 320, still getting the same error. This is my main.ts (the highest I can go with values is 260 and 220):
Is my device's display too big for current implementation of the driver? Also, there seems to be no display reset/clear mechanic yet. How would I refresh the display in some other ways? Thank you in advance for looking into this, here is the relevant repository: |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
Unfortunately, we set maximum allocation size to 0xe000; It's possible it could be closer to 0xffff, but either way it's not enough for your screen. The allocation size is set so that we can use uint16_t as size of various buffers, so it's not easy to increase past 0xffff... :/ |
Beta Was this translation helpful? Give feedback.
-
Let me push a release and you’ll be able to reflash the ESP32 firmware to get this fix.
…________________________________
From: sambenko ***@***.***>
Sent: Friday, October 27, 2023 8:22:00 AM
To: microsoft/devicescript ***@***.***>
Cc: Peli de Halleux ***@***.***>; Comment ***@***.***>
Subject: Re: [microsoft/devicescript] RangeError when trying to initialise display on my ESP32S3-BOX-LITE devkit (Discussion #649)
Hello, sorry for the late reply, I was sick for a week. I'm not really sure what to do, I checked this https://github.com/microsoft/devicescript-esp32/releases/tag/v2.15.1500, not sure what to go off of next.
—
Reply to this email directly, view it on GitHub<#649 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA73QKP366BV4XJZJYIPAU3YBPGRRAVCNFSM6AAAAAA6HMKEI2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMBVGA2TQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
[celebrate] Peli de Halleux reacted to your message:
…________________________________
From: sambenko ***@***.***>
Sent: Saturday, October 28, 2023 6:59:39 PM
To: microsoft/devicescript ***@***.***>
Cc: Peli de Halleux ***@***.***>; Comment ***@***.***>
Subject: Re: [microsoft/devicescript] RangeError when trying to initialise display on my ESP32S3-BOX-LITE devkit (Discussion #649)
Thank you, updating to the latest release works for the display size of 320x240 now!
—
Reply to this email directly, view it on GitHub<#649 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA73QKORA6XRVA7YD4LTRQDYBVIZXAVCNFSM6AAAAAA6HMKEI2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMJSG42TQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I've got a similar issue trying to allocate a 320x240x4 image on a pi pico-w - is this a fix that it'll be possible to apply to RP2040? |
Beta Was this translation helpful? Give feedback.
Actually, I take that back - we're using 4bpp so the screen should fit.
Check out esp32 v2.15.1500 when it builds.