feram18 / led-stock-ticker

A display for real-time prices of stocks, cryptocurrencies, and forex rates on a Raspberry Pi-driven RGB LED matrix board. 📈
GNU General Public License v3.0
72 stars 11 forks source link

Flickering #1

Closed callyb123 closed 2 years ago

callyb123 commented 2 years ago

Hey Luis,

Thank you so much for this, it's awesome. I noticed some flickering when stock names are too large to display at the top. Does this utilize the adafruit bonnet hat-pwm flags? I ran with these flags and it seemed to make no difference to the flicker.

Pi Zero 2 Adafruit RGB bonnet 64x32 6mm RGB matrix

feram18 commented 2 years ago

Hi! The flickering seems to be due to the rendering of the chart being an expensive operation, as it's rendered pixel by pixel.

I have not had much time to work on this project lately, but I'll be working on a way to improve the performance when the stock name has to scroll. I have also considered getting rid of the full name altogether and switch up the layout a little bit. Updates to come!

callyb123 commented 2 years ago

Yup - I think getting rid of the full name scrolling and reverting to the ticker symbol is most likely the best option

0x253 commented 2 years ago

Hi @callyb123, for me it works without flickering with the --led-slowdown-gpio parameter:

sudo python3 main.py --led-slowdown-gpio=4 --led-cols=64 --led-rows=32 --led-gpio-mapping=adafruit-hat

feram18 commented 2 years ago

Performance enhancements in latest releases (in addition to --led-slowdown-gpio flag) should take care of the flickering.