Merge branch 'masbog-master'

master
Tasanakorn P 2018-08-02 08:00:59 +00:00
commit 1c97e46cf7
2 zmienionych plików z 26 dodań i 1 usunięć

Wyświetl plik

@ -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
Wyświetl plik

@ -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>