Lines Matching refs:to
4 Step-by-step Guide: How to use the LVGL v9 LCD drivers with STM32 devices
10 This guide is intended to be a step-by-step instruction of how to configure the STM32Cube HAL with …
15 …to use API to implement LCD support for your LVGL-based project on any platform. Moreover, even in…
17 … whether SPI, parallel i8080 bus or other. It is the user's responsibility to implement – and opti…
19 …eed to configure LVGL to use the driver corresponding to your hardware (if it is other than the ST…
23 …ity over performance. Despite of this the performance is very good, thanks to the efficient, DMA-b…
34 In this example we'll use the SPI1 peripheral to connect the microcontroller to the LCD panel. Besi…
52 #. Set Targeted Project Type to STM32Cube and press Finish.
53 #. Say "Yes" to Initialize peripherals with their default Mode? After the project is created, the c…
54 #. Switch to the Pinout & Configuration tab.
55 #. In the System Core category switch to RCC.
56 #. Set High Speed Clock to "BYPASS Clock Source", and Low Speed Clock to "Crystal/Ceramic Resonator…
57 #. In the System Core category select SYS, and set Timebase Source to other than SysTick (in our ex…
58 #. Switch to the Clock Configuration tab.
59 #. Set the HCLK clock frequency to the maximum value (216 MHz for the STM32F746).
60 #. Switch back to the Pinout & Configuration tab, and in the Middleware and Software Packs category…
65 #. Set Mode to Transmit Only Master, and Hardware NSS Signal to Disable.
66 #. In the Configuration subwindow switch to Parameter Settings.
67 #. Set Frame Format to Motorola, Data Size to 8 Bits, First Bit to MSB First.
68 #. Set the Prescaler to the maximum value according to the LCD controller’s datasheet (e.g., 15 MBi…
69 #. Set NSSP Mode to Disabled and NSS Signal Type to Software.
71 #. Set Priority to Medium, Data Width to Half Word.
73 #. In GPIO Settings set SPI1_SCK to Pull-down and Very High output speed and set the User Label to …
74 #. Set SPI1_MOSI to Pull-up and Very High, and name it ``LCD_SDI``.
76 #. Set ``LCD_CS`` to No pull-up and no pull-down, Low level and Very High speed.
77 #. Set ``LCD_RESET`` to Pull-up and High level.
78 #. Set ``LCD_DCX`` to No pull-up and no pull-down, High level and Very High speed.
79 …tings. On the right hand side there is a Register Callback window. Select SPI and set it to ENABLE.
87 …der copy 'lv_conf_template.h' into the 'Middlewares' folder, and rename it to 'lv_conf.h'. Refresh…
88 #. Open 'lv_conf.h', and in line 15 change ``#if 0`` to ``#if 1``.
89 …V_USE_ST7735``, and enable the appropriate LCD driver by setting its value to 1. This example uses…
102 …x_it.c (the file name depends on the processor variation). Add 'lv_tick.h' to the Private includes…
111 #. Find the function ``TIM2_IRQHandler``. Add a call to ``lv_tick_inc()``:
127 #. Save the file, then open Core/Src/main.c. Add the following lines to the Private includes (if yo…
137 #. Add the following lines to Private defines (change them according to your LCD specs):
146 #. Add the following lines to the Private variables:
154 #. Add the following line to the Private function prototypes:
224 …* In case of a DMA transfer a callback must be installed to notify LVGL about the end of the trans…
242 /* Set the SPI in 16-bit mode to match endianness */
251 …to create the display buffers here. This example uses a double buffering scheme with 1/10th size p…
298 #. All that's left is to implement ``ui_init()`` to create the screen. Here's a simple "Hello World…
306 /* set screen background to white */