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

From Steak Wiki
Jump to navigationJump to search
Line 23: Line 23:
 
  fb0  fbcon
 
  fb0  fbcon
 
</small>
 
</small>
 +
 +
 +
{{Electronics}}

Revision as of 03:06, 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