Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Programs to display information to LCD framebuffer
#11
As for software ideas, I think that your ideas are really good.

However, I think some users won't want to have the info outside of the viewable area. One thing I think that could be useful is to have this info on the main viewable area (as an option) but only when a certain key combo is pressed. We have some data like this for our fbcp (https://github.com/TheFlav/rpi-fbcp) driver, but the https://github.com/juj/fbcp-ili9341/ driver is better in general once it's a bit more stable all around. Our fbcp driver has a low-batt indicator that pops up, but since it's built in to the fbcp, then it's hard to augment.

I think it's also possible that more people will start doing builds that use the entire LCD (by opening up the shell area). That's where I think it'll be good to have this data easily placable anywhere based on a parameter.
Card Fighters' Clash 2 English Translation ( http://cfc2english.blogspot.com/ )
Neo Geo Pocket Flash Cart and Linker Project ( http://www.flashmasta.com/ )
Avatar art thanks to Trev-Mun ( http://trevmun.deviantart.com/ )
Reply
#12
I just added plot script : https://github.com/porcinus/FreeplayInfo...at-plot.sh
Attachment as output example.


Attached Files Thumbnail(s)
       
Reply
#13
Before writing outside of viewing area, I was thinking to use SDL as a overlay but since there is no real X manager this was a total fail. I was not interested about modify driver itself.

I think there is a way to add screen overlay using Dispmanx overlay : https://github.com/AndrewFromMelbourne/r...er/pngview
But since "screen" is 1024x768 and then resize, you have to generate a 1024px width picture. Another problem is that is not possible to use in SDL driver :/

Edit:
There is a simple way to detect the driver sleep mode, but GPIO_TFT_BACKLIGHT and BACKLIGHT_CONTROL need to be set when compiling driver, since there are some gpio pins not in use (maybe 34-39 present under compute module), checking current state of this pin is a easy task Smile

Can you provide me all arguments used to compile fbcp-ili9341 to the CM3 please?
Reply
#14
Found a very simple way for screen overlay, the trick is to use OMX.

Some file need to be created for the test:

info.srt:
------------------------------
1
00:00:00,00 --> 00:00:05,00
Battery: 4.20v - 72Mbits - 18:51
------------------------------

Convert attached png to avi:
ffmpeg -loglevel panic -y -loop 1 -i black.png -t 5 -r 5 -vf scale=16:-2,setsar=1:1 -force_key_frames 1 black.avi

Run OMX:
omxplayer --no-osd --no-keys --alpha 150 --layer 2000 --win 0,0,1024,50 --align center --font-size 750 --no-ghost-box --subtitles info.srt black.avi


Attached Files
.png   black.png (Size: 124 bytes / Downloads: 35)
Reply
#15
Uploaded overlay deamon to my github : https://github.com/porcinus/FreeplayInfo2Overlay
Compile using compile.sh then run in 2 shells example-framebuffer.sh or example-nobattery-framebuffer.sh then example-overlay.sh

Please note:
when using example-overlay.sh, Addon board hotkey button is used to display 'osd', input checking interval is for the moment hardcoded to 200ms


Attached Files Thumbnail(s)
       
Reply
#16
Awesome. That's pretty cool, Porcinus!
Card Fighters' Clash 2 English Translation ( http://cfc2english.blogspot.com/ )
Neo Geo Pocket Flash Cart and Linker Project ( http://www.flashmasta.com/ )
Avatar art thanks to Trev-Mun ( http://trevmun.deviantart.com/ )
Reply
#17
Thanks Wink
Just updated Git. each program run as 'daemon', example files and service files are provided, Info and usage are also updated.
Overlay now use the original footer png converted to avi file (low priority)

Edit: Now display picture directly, no more png->avi conversion


Attached Files Thumbnail(s)
   
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)