Hi, guys.
I’m trying to implement spectrum analyzer on stm32f303 + ili9341 + freertos. (So one task runs lvgl and the logic is in other tasks). I want to implement an audio spectrum analyzer like in this video Teensy 4.0 and LittlevGL - YouTube (where he plays music). How to do it with LVGL? I tried doing it with Line Widget, so each bar is a line and it is super slow even if I have only 40 bars. Is there other way?
1 Like
Not a widget, it’s basic lv_obj, you need handle the bar draw by your self.
You can refer here: lv_example_music
And I just made a demo with microphone input, using the above code.
twitter
Hi,
I made some upgrade. Link
I want make this as a widgets, is it possible? @kisvegabor (sorry to bother you ) if possible, where is a good start point, i don’t know how to write customer widgets
Very nice! Not bothering, thanks for tagging
We don’t have a dedicated docs for custom widgets yet but you can take a look at e.g. lv_win which is a quite simple one. I believe the same pattern can be used here too.
1 Like
Thanks for reply.
I will try, but for now I made a very simple demo for use