Integration of RADDS2LCD
Hi,
would you kindly add support for the RADDS2LCD Display Adapter as seen on https://www.thingiverse.com/thing:1740725
Just like a sparklcd-adapter, could this integrated into the firmware configurator.
I think the RADDS2LCD would gain massivly popularity if it is supported OOB by firmware.
Thanks
would you kindly add support for the RADDS2LCD Display Adapter as seen on https://www.thingiverse.com/thing:1740725
Just like a sparklcd-adapter, could this integrated into the firmware configurator.
I think the RADDS2LCD would gain massivly popularity if it is supported OOB by firmware.
Thanks
Comments
Overview
This file describes the changes getting Due + Radds-Board + Full Graphics Smart Controller working on Repetier-Firmware DEV-version.
Also an option for character displays LCD16x2 / LCD20x4 is there - but untested...
Repetier.h
at end of block beginning with
#define NO_CONTROLLER 0
add these lines:
#define CONTROLLER_RADDS_LCD_16X2 997
#define CONTROLLER_RADDS_LCD_20X4 998
#define CONTROLLER_RADDS_FGSC 999
Configuration.h
replace this:
#define FEATURE_CONTROLLER ...
by this:
/*
which display ???
- full graphics smart controller is tested!
- row / column display is NOT TESTED - use with own testing ;)
*/
//#define FEATURE_CONTROLLER CONTROLLER_RADDS_LCD_16X2 // RADDS2LCD -> LCD with 16 columns and 2 rows
//#define FEATURE_CONTROLLER CONTROLLER_RADDS_LCD_20X4 // RADDS2LCD -> LCD with 20 columns and 4 rows
#define FEATURE_CONTROLLER CONTROLLER_RADDS_FGSC // RADDS2LCD -> Full Graphics Smart Controller
ui.h
after these lines
#if FEATURE_CONTROLLER == CONTROLLER_RAMBO
...
#endif
add these lines
// RADDS + RADDS2LCD + Full Graphics Smart Controller / other 4-bit LCD
#if (FEATURE_CONTROLLER == CONTROLLER_RADDS_FGSC || FEATURE_CONTROLLER == CONTROLLER_RADDS_LCD_16X2 || FEATURE_CONTROLLER == CONTROLLER_RADDS_LCD_20X4)
#undef SDCARDDETECT
#define SDCARDDETECT 14
#undef SDSUPPORT
#define SDSUPPORT 1
#endif // FEATURE_CONTROLLER == CONTROLLER_RADDS_FGSC
DisplayList.h
before or after these lines:
#if FEATURE_CONTROLLER == CONTROLLER_RADDS
#undef SDSS
...
void uiCheckSlowKeys(uint16_t &action) {}
#endif
add these lines
#if (FEATURE_CONTROLLER == CONTROLLER_RADDS_FGSC || FEATURE_CONTROLLER == CONTROLLER_RADDS_LCD_16X2 || FEATURE_CONTROLLER == CONTROLLER_RADDS_LCD_20X4)
#undef SDSS
#define SDSS 10
#undef SPI_PIN
#define SPI_PIN 77
#undef SPI_CHAN
#define SPI_CHAN 0
#define UI_HAS_KEYS 1
#define UI_HAS_BACK_KEY 0
// decide which lcd is used
#if (FEATURE_CONTROLLER == CONTROLLER_RADDS_FGSC)
#define UI_DISPLAY_TYPE DISPLAY_U8G
#define U8GLIB_ST7920
#define UI_LCD_WIDTH 128
#define UI_LCD_HEIGHT 64
//select font size
#define UI_FONT_6X10 //default font
#ifdef UI_FONT_6X10
#define UI_FONT_WIDTH 6
#define UI_FONT_HEIGHT 10
#define UI_FONT_SMALL_HEIGHT 7
#define UI_FONT_DEFAULT repetier_6x10
#define UI_FONT_SMALL repetier_5x7
#define UI_FONT_SMALL_WIDTH 5 //smaller font for status display
#define UI_ANIMATION false // Animations are too slow
#endif
//calculate rows and cols available with current font
#define UI_COLS (UI_LCD_WIDTH/UI_FONT_WIDTH)
#define UI_ROWS (UI_LCD_HEIGHT/UI_FONT_HEIGHT)
#define UI_DISPLAY_CHARSET 3
#elif (FEATURE_CONTROLLER == CONTROLLER_RADDS_LCD_16X2)
#define UI_DISPLAY_TYPE DISPLAY_4BIT
#define UI_COLS 16
#define UI_ROWS 2
#else (FEATURE_CONTROLLER == CONTROLLER_RADDS_LCD_20X4)
#define UI_DISPLAY_TYPE DISPLAY_4BIT
#define UI_COLS 20
#define UI_ROWS 4
#endif
#define UI_DISPLAY_CHARSET 3
#define BEEPER_TYPE 1
#undef BEEPER_PIN
#define BEEPER_PIN 41
#define UI_DISPLAY_RS_PIN 42
#define UI_DISPLAY_RW_PIN -1
#define UI_DISPLAY_ENABLE_PIN 43
#define UI_DISPLAY_D0_PIN 44
#define UI_DISPLAY_D1_PIN 45
#define UI_DISPLAY_D2_PIN 46
#define UI_DISPLAY_D3_PIN 47
#define UI_DISPLAY_D4_PIN 44
#define UI_DISPLAY_D5_PIN 45
#define UI_DISPLAY_D6_PIN 46
#define UI_DISPLAY_D7_PIN 47
// swap these two numbers to invert rotary encoder scroll direction
#define UI_ENCODER_A 50
#define UI_ENCODER_B 52
#define UI_ENCODER_CLICK 48
#define UI_RESET_PIN -1
#define UI_DELAYPERCHAR 50
#define UI_INVERT_MENU_DIRECTION 0
#define UI_BUTTON_BACK 71 // -1
#ifdef UI_MAIN
void uiInitKeys() {
UI_KEYS_INIT_CLICKENCODER_LOW(UI_ENCODER_A, UI_ENCODER_B); // click encoder on pins 47 and 45. Phase is connected with gnd for signals.
UI_KEYS_INIT_BUTTON_LOW(UI_ENCODER_CLICK); // push button, connects gnd to pin
UI_KEYS_INIT_BUTTON_LOW(UI_BUTTON_BACK);
}
void uiCheckKeys(uint16_t &action) {
UI_KEYS_CLICKENCODER_LOW(UI_ENCODER_A, UI_ENCODER_B); // click encoder on pins 47 and 45. Phase is connected with gnd for signals.
UI_KEYS_BUTTON_LOW(UI_ENCODER_CLICK, UI_ACTION_OK); // push button, connects gnd to pin
UI_KEYS_BUTTON_LOW(UI_BUTTON_BACK, UI_ACTION_BACK);
}
inline void uiCheckSlowEncoder() {}
void uiCheckSlowKeys(uint16_t &action) {}
#endif
#endif // controller RADDS2LCD
Fehler beim Kompilieren für das Board Arduino Due (Programming Port).
danke für die schnelle Antwort.
das Configtool sagt Version 1.0.1Dev
Aber in der Configuration.h steht 1.0.3 Dev.
Welche Firmware ist das jetzt?
Und wo finde ich 1.0.4.
Gruß Andreas
2. Nein da geht es erst mal um ganz gewöhnliche Schrittmotoren und ganz einfache aufgaben die nur selten einen Motor bewegen müssen, z.b. Bett Kalibrieren oder Abräumen.
Für Z ache must du z mirroring verwenden um sie unabhängig zu haben. Das geht auch für 3 motoren. Im Config tool ist das recht einfach weil er dann die extra optionen anbietet.
also der Display funktionert bei mir soweit ohne etwas am Code zu ändern.
Sehr fein. Juhu. Danke.
Nur die SD Karte funktioniert nicht.
Dazu musste ich in der
ui.h folgendes ändern:
Danke für die Info.
Ich hab schon gedacht ich hätte das 12864 FGSC zerschossen.
Probiere ich nachher direkt mal aus.
E
@Repetier
Mal sehen wie das mit den 3 Endstops läuft ansonsten werde ich mein Glück mit dem Bl touch mal versuchen.
Ich muss dann sowieso erstmal die servopins am Radds anlöten.
Gruß Andreas
Wäre gut wenn jemand anders sagen würde on meine Implementierung grundsätzlich funktioniert, damit man die Konfiguration ausschließen kann. Mit dem Wechsel auf Deutsch sind aber vermutlich viele nicht mehr am lesen.
Ich werd nochmal nachsehen, was ich alles ändern muss, dass ich die SD Karte verwenden kann.