https://github.com/nopnop2002/raspberry-mgrx
2D graphics library for FrameBuffer
https://github.com/nopnop2002/raspberry-mgrx
framebuffer graphics oranegpi raspberypi
Last synced: 3 months ago
JSON representation
2D graphics library for FrameBuffer
- Host: GitHub
- URL: https://github.com/nopnop2002/raspberry-mgrx
- Owner: nopnop2002
- License: gpl-2.0
- Created: 2017-05-03T08:06:08.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-26T07:57:38.000Z (about 3 years ago)
- Last Synced: 2025-03-19T05:28:48.725Z (about 1 year ago)
- Topics: framebuffer, graphics, oranegpi, raspberypi
- Language: C
- Size: 1.68 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: copying
Awesome Lists containing this project
README
# Raspberry-mgrx
2D graphics library for FrameBuffer
MGRX is a 2D graphics library derived from the GRX library.
GRX was originaly written by Csaba Biegl.
MGRX was originaly written by M.Alvarez.
This was transplanted for RaspberryPi & OrangePi.
I tested by the following environment.
Raspberry Pi + ILI9341 SPI TFT.
OrangePi PC + ILI9325 Parallel TFT.
---
# Install
```
sudo apt-get install libjpeg-dev libpng-dev
git clone https://github.com/nopnop2002/Raspberry-mgrx
cd Raspberry-mgrx
make -f makefile.lnx libs
sudo make -f makefile.lnx install
make -f makefile.lnx test
```
---
# Demonstration
```
$ export MGRXDRV="linuxfb gw gh nc "
is width of FrameBuffer.
is height of FrameBuffer.
Values for nc can be 2, 16, 256, 64K or 16M.
You can get these by the following command.
$ fbset -i -fb
$ export FRAMEBUFFER=
```
If you have 320x240 TFT module like ILI9341, it'll be as follows.
- for Raspberry Pi
```
$ export MGRXDRV="linuxfb gw 320 gh 240 nc 64k"
$ export FRAMEBUFFER=/dev/fb1
$ cd $HOME/mgrx_rpi/test
$ ./demomgrx
```
- for Orange Pi PC
```
$ export MGRXDRV="linuxfb gw 320 gh 240 nc 64k"
$ export FRAMEBUFFER=/dev/fb8
$ cd $HOME/mgrx_rpi/test
$ ./demomgrx
```
---
# Operation
When the item is chosen by an arrow key and ENTER is pushed, demonstration starts.
demomgrx is a simple launcher program.
It's possible to start each demonstration program directly by a command line.



---
# Programmer's manual