euphy / polargraph_server_polarshield

Firmware for PolargraphSD based on Arduino MEGA 2560, current until 2018.
http://www.polargraph.co.uk
22 stars 18 forks source link

LCD_TYPE was not declared... on Ramps 1.4 #11

Open Ianmcmill opened 5 years ago

Ianmcmill commented 5 years ago

Trying to compile for MOTHERBOARD RAMPS14 with Arduino 1.8.5 Installed UTFT but UTouch was replaced by URTouch. Found older uTouch release @ https://github.com/dgolda/UTouch and installed that.

Tried both with URtouch (include URToruch.h) and uTouch but does not work.

polargraph_server_polarshield:371: error: 'LCD_TYPE' was not declared in this scope

 UTFT   lcd(LCD_TYPE, 38,39,40,41);

            ^

lcd:128: error: 'LCD_TYPE' was not declared in this scope

 byte  gap = (LCD_TYPE == ITDB24E_8 || LCD_TYPE == TFT01_24_8) ? 10 : 10;

              ^

lcd:128: error: 'LCD_TYPE' was not declared in this scope

 byte  gap = (LCD_TYPE == ITDB24E_8 || LCD_TYPE == TFT01_24_8) ? 10 : 10;

                                       ^

lcd:128: error: 'TFT01_24_8' was not declared in this scope

 byte  gap = (LCD_TYPE == ITDB24E_8 || LCD_TYPE == TFT01_24_8) ? 10 : 10;

                                                   ^

lcd:131: error: 'LCD_TYPE' was not declared in this scope

 static int screenWidth = (LCD_TYPE == ITDB24E_8 || LCD_TYPE == TFT01_24_8) ? 320 : 220;

                           ^

lcd:131: error: 'LCD_TYPE' was not declared in this scope

 static int screenWidth = (LCD_TYPE == ITDB24E_8 || LCD_TYPE == TFT01_24_8) ? 320 : 220;

                                                    ^

lcd:131: error: 'TFT01_24_8' was not declared in this scope

 static int screenWidth = (LCD_TYPE == ITDB24E_8 || LCD_TYPE == TFT01_24_8) ? 320 : 220;

                                                                ^

lcd:132: error: 'LCD_TYPE' was not declared in this scope

 static int screenHeight = (LCD_TYPE == ITDB24E_8 || LCD_TYPE == TFT01_24_8) ? 240 : 176;

                            ^

lcd:132: error: 'LCD_TYPE' was not declared in this scope

 static int screenHeight = (LCD_TYPE == ITDB24E_8 || LCD_TYPE == TFT01_24_8) ? 240 : 176;

                                                     ^

lcd:132: error: 'TFT01_24_8' was not declared in this scope

 static int screenHeight = (LCD_TYPE == ITDB24E_8 || LCD_TYPE == TFT01_24_8) ? 240 : 176;

                                                                 ^

lcd:133: error: 'LCD_TYPE' was not declared in this scope

 static int centreYPosition = (LCD_TYPE == ITDB24E_8 || LCD_TYPE == TFT01_24_8) ? 112 : 80;

                               ^

lcd:133: error: 'LCD_TYPE' was not declared in this scope

 static int centreYPosition = (LCD_TYPE == ITDB24E_8 || LCD_TYPE == TFT01_24_8) ? 112 : 80;

                                                        ^

lcd:133: error: 'TFT01_24_8' was not declared in this scope

 static int centreYPosition = (LCD_TYPE == ITDB24E_8 || LCD_TYPE == TFT01_24_8) ? 112 : 80;

                                                                    ^

commented //Uncomment the following line to use a 2.4" panel, August 2014 and later //#define LCD_TYPE TFT01_24_8 //Uncomment the following line to use an older 2.4" panel, prior to August 2014. //#define LCD_TYPE ITDB24E_8 //Uncomment the following line to use a 2.2" panel //#define LCD_TYPE ITDB22

ifndef MOTHERBOARD

//#define MOTHERBOARD POLARSHIELD

define MOTHERBOARD RAMPS14

//#define MOTHERBOARD TFTSHIELD

endif

//#define USE_LCD

Ianmcmill commented 5 years ago

Libraries are all in the repo *facepalm but I still cannot compile. Get the same error. Sorry for digging up this obsolete firmware version.

euphy commented 5 years ago

Hello! I think there needs to be at least one LCD_TYPE declared, even if it's not going to be used. Also means that the UTFT library also needs to be installed ... even if its not going to be used!