Skip to content

Commit 5413d9b

Browse files
committed
MCU pico2: increase heap size
400 kB would be alright because pico 2 has 520 KB on-chip SRAM See slint-ui#8477
1 parent a176a55 commit 5413d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/mcu-board-support/pico2_st7789.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mod rp_pico2;
2828
use rp_pico2::hal::{self, pac, prelude::*, timer::CopyableTimer0, Timer};
2929
use slint::platform::{software_renderer as renderer, PointerEventButton, WindowEvent};
3030

31-
const HEAP_SIZE: usize = 200 * 1024;
31+
const HEAP_SIZE: usize = 400 * 1024;
3232
static mut HEAP: [u8; HEAP_SIZE] = [0; HEAP_SIZE];
3333

3434
#[global_allocator]

0 commit comments

Comments
 (0)