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

From Steak Wiki
Jump to navigationJump to search
(Created page with "==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...")
 
Line 1: Line 1:
 
==Pocket Beagle==
 
==Pocket Beagle==
 
====Output Text to TFT====
 
====Output Text to TFT====
This assumes you have the game boy tft shield.
+
<small>This assumes you have the game boy tft shield.
 
Although others that are supported and detected will likely work similarly.
 
Although others that are supported and detected will likely work similarly.
  
 
  echo "hello" > /dev/tty0
 
  echo "hello" > /dev/tty0
 
to output to your ssh session, try  
 
to output to your ssh session, try  
  echo "hello> > /dev/tty
+
  echo "hello> > /dev/tty</small>
 
====Output Video to TFT====
 
====Output Video to TFT====
Download video from somewhere.
+
<small>Download video from somewhere.
 
Resize/scale to small enough resolution (NOTE: this resolution is 128x96, from book Ffmpeg Basics by Korbel)
 
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
 
  ffmpeg -i video.mp4 -s sqcif outputsmall.mp4
Line 14: Line 14:
  
 
Video should output direct on /dev/tty0
 
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
 +
</small>

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