Skip to main content
PM.5
Associate III
Aug 23, 2022 6:29 AM UTC
Question

Moving the needle in bare metal by using LTDC drivers.

Hi...

I am working on stm32f746g board with display resolution of 480 x 272 . I have configured LTDC in 2 layers. One layer contains Gauge image & another with Needle image. Right now it is displaying static images of both gauge & needle. I want to move the needle. Does anyone knows how to move the needle by giving some values?

I want to know without using Touchgfx ,Embedded wizard kind of IDE's can we display a static as well as dynamic images like Gauge with needle rotating at user defined speed.

This topic has been closed for replies.

5 replies

KnarfB
Super User
Aug 23, 2022 10:37 AM UTC

Image rotation by an arbitrary angle is not supported/accelerated in hardware. If the needle consist of few lines, polygons, ..., compute rotated coordinates and draw it from scratch each time the needle is moving. If the needle is a sophisticated pixel image, you need to implement image rotation yourself, probably with pixel interpolation, or, if the external flash size permits, pre-compute 100 or so rotated needle images and store them in flash.

hth

KnarfB

PM.5
PM.5Author
Associate III
Aug 23, 2022 12:31 PM UTC

Thank you for the reply.

I tried by Touchgfx IDE .It is working fine when FREERTOS has enabled. But when the same thing I try to do by disabling FREERTOS it is not working. What is the issue I am not getting. As I was unable to display without FREERTOS, I tried just by using two LTDC layer, now I got to know it will be little complicated when I go higher level.

The files configured with RTOS & without RTOS I have given below . Please go through those if possible & if any suggestion please let me know .

Pooja M

MM..1
Super User
Aug 23, 2022 3:23 PM UTC

Your zip seems as project from TouchGFX ... designed and optimized for RTOS.

For noOS you need create project from scratch and no edit some parts...