https://github.com/nkid00/g12864
Computer graphics library for 128x64 LCDs (ST7920 controller).
https://github.com/nkid00/g12864
128x64 c lcd st7920
Last synced: 2 months ago
JSON representation
Computer graphics library for 128x64 LCDs (ST7920 controller).
- Host: GitHub
- URL: https://github.com/nkid00/g12864
- Owner: NKID00
- License: mit
- Created: 2021-06-04T13:19:29.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-04T16:16:22.000Z (almost 4 years ago)
- Last Synced: 2025-01-22T18:52:29.197Z (4 months ago)
- Topics: 128x64, c, lcd, st7920
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## g12864
> Computer graphics library for 128x64 LCDs (ST7920 controller).
```c
/* turn on the backlight immediately */
g_sc_set_bl(sc, G_BL_ON);/* draw a 20x20 rectangle */
g_fb_draw_rect(g_sc_get_fb(sc), 10, 10, 29, 29, 1);/* refresh the screen */
g_sc_refresh(sc);
```Easy, fast and more.
## Easy
There's no need to care about the screen at all. Just draw things on the frame buffer and ask g12864 to refresh the screen for you. Building g12864 is the same easy since it only relies on [libgpiod](https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/).
## Fast
Thanks to libgpiod, g12864 runs so fast that refreshing the whole screen on a 1GHz single-core Raspberry Pi Zero takes less than 0.5 seconds. Moreover, g12864 won't refresh the whole screen at most of the time - it has the ability to refresh only the changed part of the screen.
## Copyright
Licensed under MIT License.
Copyright © 2021 NKID00