Boa tarde,estou com um pequeno problema a usar a biblioteca GLCD ou a KS-0108 no meu arduino mega 2560, usando o a biblioteca ks0108 os seguintes erros aparecem ao compilar:
D:\Users\e070439\Downloads\arduino-1.0.1-windows\arduino-1.0.1\libraries\ks0108\ks0108.cpp:33:67: warning: wiring.h: No such file or directory
D:\Users\e070439\Downloads\arduino-1.0.1-windows\arduino-1.0.1\libraries\ks0108\ks0108.cpp: In member function 'void ks0108::Init(boolean)':
D:\Users\e070439\Downloads\arduino-1.0.1-windows\arduino-1.0.1\libraries\ks0108\ks0108.cpp:505: error: 'OUTPUT' was not declared in this scope
D:\Users\e070439\Downloads\arduino-1.0.1-windows\arduino-1.0.1\libraries\ks0108\ks0108.cpp:505: error: 'pinMode' was not declared in this scope
D:\Users\e070439\Downloads\arduino-1.0.1-windows\arduino-1.0.1\libraries\ks0108\ks0108.cpp:511: error: 'delay' was not declared in this scope
Nunca usei essa biblioteca então estou na duvida de como proceder e qual usar a ks-0108 ou a GLCD? segue o cabeçario do programa.
#include <ks0108.h> // library header
#include <ks0108_Mega.h>
#include <Arial14.h> // font definition for 14 point Arial font.
#include "SystemFont5x7.h" // system font
#include <Keypad.h>
//DECLARAÇÃO DO TECLADO
unsigned long startMillis;
unsigned int iter = 0;
unsigned int iterStart = 0;
const byte ROWS = 4; //four rows
const byte COLS = 4; //three columns
char keys[ROWS][COLS] = {
{'1','2','3','F1' },
{'4','5','6','F2' },
{'7','8','9','F3' },
{'*','0','#','F4' }};
byte rowPins[ROWS] = {
4, 3, 2, 1}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {
7, 6, 5,9}; //connect to the column pinouts of the keypad
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
char key = keypad.getKey();
void setup() {
Serial.begin(9600);
//INICIALIZAÇÃO DO DISPLAY
GLCD.Init(NON_INVERTED); // initialise the library
GLCD.ClearScreen(); //limpa lcd
GLCD.SelectFont(System5x7); // select fixed width system font
GLCD.DrawRect(0, 0, 127, 63, BLACK); // desenha retangulo
GLCD.DrawRoundRect(2, 2, 123, 59, 5, BLACK); // retangulo com quinas arredondadas
}