Trigorilla 14 Board with Zonestar (LCD2004) Display November 29, 2019 05:40PM |
Registered: 4 years ago Posts: 13 |
#define ZONESTAR_LCD // Requires ADC_KEYPAD_PIN to be assigned to an analog pin. // This LCD is known to be susceptible to electrical interference // which scrambles the display. Pressing any button clears it up. // This is a LCD2004 display with 5 analog buttons.And when I try to compile that sketch, an error about that "ADC_KEYPAD_PIN" occurs:
Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)" In file included from sketch\MarlinConfig.h:39:0, from sketch\Marlin.h:35, from sketch\temperature.cpp:27: sketch\temperature.cpp: In static member function 'static void Temperature::isr()': temperature.cpp:2252:23: error: 'ADC_KEYPAD_PIN' was not declared in this scope HAL_START_ADC(ADC_KEYPAD_PIN); ^ sketch\HAL.h:323:34: note: in definition of macro 'HAL_START_ADC' #define HAL_START_ADC(pin) if (pin > 7) ADCSRB = _BV(MUX5); else ADCSRB = 0; SET_ADMUX_ADCSRA(pin) ^ temperature.cpp:2252:23: error: 'ADC_KEYPAD_PIN' was not declared in this scope HAL_START_ADC(ADC_KEYPAD_PIN); ^ sketch\HAL.h:321:53: note: in definition of macro 'SET_ADMUX_ADCSRA' #define SET_ADMUX_ADCSRA(pin) ADMUX = _BV(REFS0) | (pin & 0x07); SBI(ADCSRA, ADSC) ^ sketch\temperature.cpp:2252:9: note: in expansion of macro 'HAL_START_ADC' HAL_START_ADC(ADC_KEYPAD_PIN); ^ exit status 1 'ADC_KEYPAD_PIN' was not declared in this scope Dieser Bericht wäre detaillierter, wenn die Option "Ausführliche Ausgabe während der Kompilierung" in Datei -> Voreinstellungen aktiviert wäre.OK, the Keypad pin has to be assigned to an analog pin. But I don't know, what the adc keypad pin itself is and I also don't know, what pins on my board are analog. And even if I knew it, I am not sure, how to saflefy change the pin assignment in pins_trigorilla_14.h, so that nothing is broken afterwards. And furthermore the ADC_KEYPAD_PIN doesn't even appear in the pins_trigorilla_14.h file.
Re: Trigorilla 14 Board with Zonestar (LCD2004) Display November 29, 2019 08:01PM |
Admin Registered: 13 years ago Posts: 7,012 |
Re: Trigorilla 14 Board with Zonestar (LCD2004) Display November 29, 2019 08:15PM |
Registered: 4 years ago Posts: 13 |
Re: Trigorilla 14 Board with Zonestar (LCD2004) Display November 29, 2019 08:52PM |
Admin Registered: 13 years ago Posts: 7,012 |
Re: Trigorilla 14 Board with Zonestar (LCD2004) Display November 29, 2019 09:49PM |
Registered: 4 years ago Posts: 13 |
sketch\pins_TRIGORILLA_14.h:233:0: warning: "LCD_PINS_D7" redefined #define LCD_PINS_D7 35 ^ sketch\pins_TRIGORILLA_14.h:135:0: note: this is the location of the previous definition #define LCD_PINS_D7 29
Re: Trigorilla 14 Board with Zonestar (LCD2004) Display December 04, 2019 02:43PM |
Registered: 4 years ago Posts: 1 |