kopia lustrzana https://github.com/tasanakorn/rpi-fbcp
Merge branch 'masbog-master'
commit
1c97e46cf7
24
README.md
24
README.md
|
@ -2,6 +2,17 @@ Raspberry Pi Framebuffer Copy
|
|||
=============================
|
||||
This program used for copy primary framebuffer to secondary framebuffer (eg. FBTFT). It require lastest raspberry pi firmware (> 2013-07-11) to working properly.
|
||||
|
||||
Tested on Raspberry Pi 3
|
||||
========================
|
||||
2017-11-29-raspbian-stretch
|
||||
|
||||
|
||||
Requirement
|
||||
-----------
|
||||
cmake
|
||||
|
||||
$ sudo apt-get install cmake
|
||||
|
||||
Build
|
||||
-----
|
||||
|
||||
|
@ -12,3 +23,16 @@ Build
|
|||
$ cmake ..
|
||||
|
||||
$ make
|
||||
|
||||
|
||||
How To Use
|
||||
----------
|
||||
$ ./fbcp
|
||||
|
||||
Wanna to run from booting
|
||||
-------------------------
|
||||
$ sudo cp fbcp /usr/bin
|
||||
$ sudo chmod +x /usr/bin/fbcp
|
||||
$ sudo nano /etc/rc.local -> add new line before "exit 0" with "/usr/bin/fbcp &" without quote
|
||||
$ sudo reboot
|
||||
|
||||
|
|
3
main.c
3
main.c
|
@ -1,7 +1,8 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <syslog.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/fb.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue