Difference between revisions of "How to do things with the beaglebone"

From Steak Wiki
Jump to navigationJump to search
Line 22: Line 22:
 
  root@beaglebone:/sys/class/graphics# ls
 
  root@beaglebone:/sys/class/graphics# ls
 
  fb0  fbcon
 
  fb0  fbcon
 +
ref: https://unix.stackexchange.com/questions/342815/how-to-send-ffmpeg-output-to-framebuffer
 
</small>
 
</small>
  
  
 
{{Electronics}}
 
{{Electronics}}

Revision as of 03:08, 22 August 2020

Pocket Beagle

Output Text to TFT

This assumes you have the game boy tft shield. Although others that are supported and detected will likely work similarly.

echo "hello" > /dev/tty0

to output to your ssh session, try

echo "hello> > /dev/tty

Output Video to TFT

Download video from somewhere. Resize/scale to small enough resolution (NOTE: this resolution is 128x96, from book Ffmpeg Basics by Korbel)

ffmpeg -i video.mp4 -s sqcif outputsmall.mp4
mplayer -loop 0 -vo fbdev2 outputsmall.mp4

Video should output direct on /dev/tty0

Framebuffer settings:

cd /sys
find . -print | grep fb0

There should be an fb0 (graphics) and fbcon (text console) e.g.

root@beaglebone:/sys/class/graphics# ls
fb0  fbcon

ref: https://unix.stackexchange.com/questions/342815/how-to-send-ffmpeg-output-to-framebuffer