In this case, that’s just GPIOA, GPIOB, and SPI1. And as with my previous STM32 posts, example code will be provided for both the STM32F031K6 and STM32L031K6 ‘Nucleo’ boards.Īs with most STM32 projects, the first thing we should do is enable the peripherals that we will use. This tutorial won’t read any data from the display, so we can use the hardware peripheral’s MISO pin for other purposes and leave the TFT’s MISO pin disconnected. We’ll cover the basic steps of setting up the required GPIO pins, initializing the SPI peripheral, starting the display, and then finally drawing pixel colors to it. Technically this isn’t a ‘Nucleo’ board, but the code is the same. An ILI9341 display being driven by an STM32F0 chip.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |