PHIL, YOU NAILED IT!!!!!!!
Wow, much thanks. I appreciate your taking the time to come in here and make a post to let me (us) know what the problem was.
As you stated, I went into the file
C:\Program Files\arduino-0021\libraries\ks0108\ks0108.h
and in the existing section
// Chip specific includes
#if defined(__AVR_ATmega1280__)
#include "ks0108_Mega.h" // include this for the Arduino Mega other ATmega1280 boards
other ATmega1280 boards
#elif defined (__AVR_ATmega644__) // TODO - check this define
#include "ks0108_Sanguino.h" // include this for Sanguino or ATmega644 boards
#else
#include "ks0108_Arduino.h" // include this for the Arduino or other ATmega168 boards
#endif
I inserted
#elif defined(__AVR_ATmega2560__)
#include "ks0108_Mega.h" // include this for the Arduino Mega2560
to give the final form of
// Chip specific includes
#if defined(__AVR_ATmega1280__)
#include "ks0108_Mega.h" // include this for the Arduino Mega other ATmega1280 boards
#elif defined(__AVR_ATmega2560__)
#include "ks0108_Mega.h" // include this for the Arduino Mega2560 other ATmega1280 boards
#elif defined (__AVR_ATmega644__) // TODO - check this define
#include "ks0108_Sanguino.h" // include this for Sanguino or ATmega644 boards
#else
#include "ks0108_Arduino.h" // include this for the Arduino or other ATmega168 boards
#endif
#include "ks0108_Panel.h" // this contains LCD panel specific configuration
My Hello World application is (From AdaFruit)
#include <ks0108.h> // library header
#include <Arial14.h> // font definition for 14 point Arial font.
#include "SystemFont5x7.h" // system font
#include "ArduinoIcon.h" // bitmap
unsigned long startMillis;
unsigned int totalNumberOfLoops = 0;
void setup()
{
// initialise the library
GLCD.Init(NON_INVERTED);
GLCD.ClearScreen();
//Draw the bitmap at the given x,y position.
GLCD.DrawBitmap(ArduinoIcon, 32,0, BLACK);
delay(3000);
GLCD.ClearScreen();
// select fixed width system font
GLCD.SelectFont(System5x7);
}
void loop()
{
startMillis = millis();
//Loop for the specified number of milliseconds.
while( millis() - startMillis < 5000)
{
//Rectangle on the left side of the screen.
GLCD.DrawRect(0, 0, 64, 61, BLACK);
//Rounded rectangle on right side around the text area.
GLCD.DrawRoundRect(68, 0, 58, 61, 5, BLACK);
//Draw lines from upper left corner to right side of rectangle. Each
//loop moves the line down 4 pixels.
for(int i=0; i < 62; i += 4)
{
GLCD.DrawLine(1,1,63,i, BLACK);
}
//Draw circle centered in the left side of screen.
GLCD.DrawCircle(32,31,30,BLACK);
//Clear previous spinner position
GLCD.FillRect(92,40,16,16, WHITE);
//Locate curser for printing text.
GLCD.CursorTo(2,5);
//Print current loop count at the current cursor position
GLCD.PrintNumber(++totalNumberOfLoops);
}
//Display total number of loops.
GLCD.ClearScreen();
GLCD.CursorTo(12,2);
GLCD.Puts("Count:");
GLCD.CursorTo(12,3);
GLCD.PrintNumber(totalNumberOfLoops);
}
Phil, thanks again for the help.
One note I'll add is that when uploading to the board, you have to disconnect the reset wire. Once the application is uploaded, you can reconnect the reset. If you don't disconnect the reset, the program will not load. Once the reset wire has been reconnected, make sure you press the reset button on the board to get things going correctly.