Hello everyone
I have a shield that I build for a GLCD for my Arduino UNO which works 100%, but now I would like to use it on my Arduino Mega as well. So the pin configuration should be the same as the UNO as I understand it. I tried to do the manual config of the library but somewhere I'm not doing something correct. When I compile this is the error list that I get:
In file included from C:\Program Files\Arduino\libraries\glcd/include/gText.h:32,
from C:\Program Files\Arduino\libraries\glcd/glcd.h:40,
from Solder_Reflow_Oven_Coding.ino:114:
C:\Program Files\Arduino\libraries\glcd/include/glcd_Device.h:59: error: 'glcd_CHIP_COUNT' was not declared in this scope
In file included from C:\Program Files\Arduino\libraries\glcd/glcd.h:40,
from Solder_Reflow_Oven_Coding.ino:114:
C:\Program Files\Arduino\libraries\glcd/include/gText.h:115: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:115: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:118: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:118: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:121: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:121: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:121: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:124: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:124: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:127: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:127: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:127: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:130: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:130: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:133: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:133: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:133: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:136: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:136: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:136: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:139: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:139: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:139: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/include/gText.h:139: error: 'DISPLAY_HEIGHT' was not declared in this scope
In file included from Solder_Reflow_Oven_Coding.ino:114:
C:\Program Files\Arduino\libraries\glcd/glcd.h:122: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/glcd.h:123: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/glcd.h:124: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/glcd.h:125: error: 'DISPLAY_HEIGHT' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/glcd.h:126: error: 'DISPLAY_WIDTH' was not declared in this scope
C:\Program Files\Arduino\libraries\glcd/glcd.h:127: error: 'DISPLAY_HEIGHT' was not declared in this scope
I've attached the config file as well as a custom configuration file that I attempted to create. Something that I'm also not certain about is that in the wiring pdf of the GLCD in arduino playground, it specifies for the UNO to wire as follows:
CS1: 14 (alog 0)
CS2: 15 (alog 1)
R/W: 16 (alog 2)
D/I: 17 (alog 3)
E: 18 (alog 4)
But what are the numbers, 14 - 18, that are referred to here. I've looked at the pin numbers but I don't under stand this. I'm a bit stuck here, but thank you in advance for any assistance.
glcd_Config.h (6 KB)
ks0108_Mega_Uno_Style.h (1.56 KB)