efthymios-ks / AVR-KS0108

KS0108-based GLCD C library for AVR microcontrollers
MIT License
14 stars 9 forks source link

AVR KS0108 Library


Description:
A library to control KS0108-based GLCD (128x64) using AVR microcontrollers.


Memory usage:

Compiler:
AVR-GCC

Optimization Level:
Optimize (-O1)


How to create a new font:
(needs some advanced knowledge)

  1. Download the free GLCD Font Creator from MikroElektronika, install it and run it.
  2. If you are on Windows 7, run the program under Windows XP (Service Pack 3) compatibility mode (google it), else you won't be able to save fonts.
  3. File > New Font > Import an Existing System Font.
  4. Choose your font, press ok to each pop-up window and wait for the processing to finish.
  5. Export for GLCD > mikroC > X-GLCD Lib > Samsung KS0108 > Save.
  6. Change the extension of the produced file from .c to .h.
  7. Open the file and add Include Guards (google it again).
  8. Import the file into your project and your code.
    Include Guards example:
    #ifndef _FONTNAME_H_
    #define _FONTNAME_H_
    //The content of the file
    #endif

picture alt