Go Down

Topic: #define ksSOURCE in ks0108.cpp (Read 1 time) previous topic - next topic



I have been digging around the graphics lcd library, and found ksSOURCE is defined but what is this for?

Code: [Select]

 ks0108.cpp - Arduino library support for ks0108 and compatable graphic LCDs

 Copyright (c)2008 Michael Margolis All right reserved


 The high level functions of this library are based on version 1.1 of ks0108 graphics routines

 written and copyright by Fabian Maximilian Thiele. His sitelink is dead but

 you can obtain a copy of his original work here:


 Code changes include conversion to an Arduino C++ library, rewriting the low level routines

 to read busy status flag and support a wider range of displays, adding more flexibility

 in port addressing and improvements in I/O speed. The interface has been made more Arduino friendly

 and some convenience functions added.

 This library is distributed in the hope that it will be useful,

 but WITHOUT ANY WARRANTY; without even the implied warranty of


 Version:   1.0 - May 8  2008  - first release

 Version:   1.1 - Nov 7  2008  - restructured low level code to adapt to panel speed

                                - moved chip and panel configuration into seperate header files    

                                                - added fixed width system font

 Version:   2   - May 26 2009   - second release

                                - added support for Mega and Sanguino, improved panel speed tolerance, added bitmap support



extern "C" {

#include <inttypes.h>

#include <avr/io.h>

#include <avr/pgmspace.h>

#include <wiring.h> // added 18 Sept 2008 for Arduino release 0012


[color=#ff0000][b]#define ksSOURCE
#include "ks0108.h"

Go Up