Difference between revisions of "Linux"
Line 2: | Line 2: | ||
'''''Note:''' The performance of the resulting program is very bad unless you use the Linux [[Linux#Framebuffer|Framebuffer]] driver. This is because the X driver just uses setPixel() and doesn't take any advantage of area blitting or double buffering. The application will run A LOT faster on the actual microcontroller.'' | '''''Note:''' The performance of the resulting program is very bad unless you use the Linux [[Linux#Framebuffer|Framebuffer]] driver. This is because the X driver just uses setPixel() and doesn't take any advantage of area blitting or double buffering. The application will run A LOT faster on the actual microcontroller.'' | ||
+ | |||
+ | == SDL == | ||
+ | ToDo | ||
== Framebuffer == | == Framebuffer == | ||
Line 9: | Line 12: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | == Makefile == | + | === Makefile === |
A ready-to-use Makefile to compile a native uGFX Linux application can be found under ''/boards/base/Linux/example/''. | A ready-to-use Makefile to compile a native uGFX Linux application can be found under ''/boards/base/Linux/example/''. | ||
+ | |||
+ | == X == | ||
+ | ToDo |
Revision as of 10:51, 15 August 2016
µGFX runs natively on any Linux system that runs the X server. Running µGFX on your computer can be used to simplify the process of developing your embedded GUI because you don't have to flash the firmware every time to try it. Also, this way µGFX can be used as the native GUI system on low power Linux devices such as the Raspberry-Pi and other single board computers.
Note: The performance of the resulting program is very bad unless you use the Linux Framebuffer driver. This is because the X driver just uses setPixel() and doesn't take any advantage of area blitting or double buffering. The application will run A LOT faster on the actual microcontroller.
Contents
SDL
ToDo
Framebuffer
The Linux driver does not only come with an X driver, but also with a framebuffer driver. To use the framebuffer driver, include the following line in your Makefile:
include $(GFXLIB)/boards/base/Linux-Framebuffer/board.mk
Makefile
A ready-to-use Makefile to compile a native uGFX Linux application can be found under /boards/base/Linux/example/.
X
ToDo