# STM32F411CEU6 with ILI9341 320x240 SPI

**URL:** https://forum.makecode.com/t/stm32f411ceu6-with-ili9341-320x240-spi/5622
**Category:** Arcade
**Created:** [January 18, 2021, 10:05pm UTC](https://forum.makecode.com/t/stm32f411ceu6-with-ili9341-320x240-spi/5622 "2021-01-18T22:05:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jabberwock](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@Jabberwock](https://forum.makecode.com/u/Jabberwock)
#### Post date: [January 18, 2021, 10:05pm UTC](https://forum.makecode.com/t/stm32f411ceu6-with-ili9341-320x240-spi/5622/1 "2021-01-18T22:05:25Z")

</div>

Hi, I’m trying to connect a ILI9341 display but I’m seeing only white screen.  
The board I’m using is STM32F411:

> **[WeActTC/MiniF4-STM32F4x1](https://github.com/WeActTC/MiniF4-STM32F4x1)**
>
> MiniF4-STM32F401CCU6/STM32F401CEU6/STM32F411CEU6 Product Literature

The bootloader is miniF4:

> <https://github.com/mmoskal/uf2-stm32f/blob/master/boards/miniF4/board.h>

And I’m using the patcher tool:  
[https://microsoft.github.io/uf2/patcher/](https://microsoft.github.io/uf2/patcher/)  
I was able to work with ST7735 160x128 with no problem but with ILI9341 seems like I’m doing something wrong the config I guess.

> **[Creating your own Arcade hardware](https://arcade.makecode.com/hardware/adding)**
>
> If you want to produce an Arcade-compatible product please let us know at arcadehdw@microsoft.com.

In there it’s suggested these settings:

```auto
DISPLAY_TYPE = 9341
DISPLAY_WIDTH = 320
DISPLAY_HEIGHT = 240
DISPLAY_CFG0 = 0x08
DISPLAY_CFG1 = 0x0010ff
DISPLAY_CFG2 = 50

```

But on GitHub:  
/////////////// For ILI9341(320x240)  
// 37, 320, // DISPLAY\_WIDTH = 320  
// 38, 240, // DISPLAY\_HEIGHT = 240  
// 39, 0x08, // DISPLAY\_CFG0 = 0x08  
// 40, 0x0010ff, // DISPLAY\_CFG1 = 0x10ff  
// 41, 50, // DISPLAY\_CFG2 = 0x50  
// 78, 9341, // DISPLAY\_TYPE = ILI9341  
///////////////////////////////////  
50 decimal isn’t 50 heximal  
Which settings should I try ? Well tried both to no avail
