Jump to content

Integration Ultipanel v2 in original marlin


jean-baptiste

Recommended Posts

Posted (edited) · Integration Ultipanel v2 in original marlin

Hi everybody,

I am trying to implant the ultipanel v2 (with ultimaker motherboard v2.1.1) with the original Marlin (becaus I would use other function who are in this and not in the ultimaker 2 marlin).

I have implant the ultipanel v2 => ULTIBOARD_V2_CONTROLLER in Configuration.h and I have add all UltiLCD2 files with ultralcd_implementation_ultiboard_v2.h but when I am compiling I have a BIG lot of problem....

 

In file included from sketch\ultralcd.cpp:41:0:sketch\ultralcd.cpp: In function 'void lcd_control_volumetric_menu()':ultralcd_implementation_ultiboard_v2.h:869: error: invalid conversion from 'char' to 'const char*' [-fpermissive]#define lcd_implementation_drawmenu_setting_edit_callback_bool_selected(row, pstr, pstr2, data, callback) lcd_implementation_drawmenu_setting_edit_generic_selected_P(row, pstr, '>', (*(data))?PSTR(MSG_ON)STR(MSG_OFF))                                                                                                                                                                                                                          ^sketch\ultralcd.cpp:135:17: note: in expansion of macro 'lcd_implementation_drawmenu_setting_edit_callback_bool_selected'                lcd_implementation_drawmenu_ ## type ## _selected (_drawLineNr, _label_pstr , ## args ); \                ^sketch\ultralcd.cpp:150:55: note: in expansion of macro 'MENU_ITEM'#define MENU_ITEM_EDIT_CALLBACK(type, label, args...) MENU_ITEM(setting_edit_callback_ ## type, label, PSTR(label) , ## args )                                                      ^sketch\ultralcd.cpp:885:2: note: in expansion of macro 'MENU_ITEM_EDIT_CALLBACK' MENU_ITEM_EDIT_CALLBACK(bool, MSG_VOLUMETRIC_ENABLED, &volumetric_enabled, calculate_volumetric_multipliers); ^ultralcd_implementation_ultiboard_v2.h:869: error: too many arguments to function 'void lcd_implementation_drawmenu_setting_edit_generic_selected_P(uint8_t, const char*, const char*)'#define lcd_implementation_drawmenu_setting_edit_callback_bool_selected(row, pstr, pstr2, data, callback) lcd_implementation_drawmenu_setting_edit_generic_selected_P(row, pstr, '>', (*(data))?PSTR(MSG_ON)STR(MSG_OFF))                                                                                                                                                                                                                          ^sketch\ultralcd.cpp:135:17: note: in expansion of macro 'lcd_implementation_drawmenu_setting_edit_callback_bool_selected'                lcd_implementation_drawmenu_ ## type ## _selected (_drawLineNr, _label_pstr , ## args ); \                ^sketch\ultralcd.cpp:150:55: note: in expansion of macro 'MENU_ITEM'#define MENU_ITEM_EDIT_CALLBACK(type, label, args...) MENU_ITEM(setting_edit_callback_ ## type, label, PSTR(label) , ## args )                                                      ^sketch\ultralcd.cpp:885:2: note: in expansion of macro 'MENU_ITEM_EDIT_CALLBACK' MENU_ITEM_EDIT_CALLBACK(bool, MSG_VOLUMETRIC_ENABLED, &volumetric_enabled, calculate_volumetric_multipliers); ^In file included from sketch\ultralcd.cpp:41:0:sketch\ultralcd_implementation_ultiboard_v2.h:782:13: note: declared herestatic void lcd_implementation_drawmenu_setting_edit_generic_selected_P(uint8_t row, const char* pstr, const char* data)            ^In file included from sketch\ultralcd.cpp:41:0:ultralcd_implementation_ultiboard_v2.h:870: error: invalid conversion from 'char' to 'const char*' [-fpermissive]#define lcd_implementation_drawmenu_setting_edit_callback_bool(row, pstr, pstr2, data, callback) lcd_implementation_drawmenu_setting_edit_generic_P(row, pstr, ' ', (*(data))?PSTR(MSG_ON)STR(MSG_OFF))                                                                                                                                                                                                        ^sketch\ultralcd.cpp:137:17: note: in expansion of macro 'lcd_implementation_drawmenu_setting_edit_callback_bool'                lcd_implementation_drawmenu_ ## type (_drawLineNr, _label_pstr , ## args ); \                ^sketch\ultralcd.cpp:150:55: note: in expansion of macro 'MENU_ITEM'#define MENU_ITEM_EDIT_CALLBACK(type, label, args...) MENU_ITEM(setting_edit_callback_ ## type, label, PSTR(label) , ## args )                                                      ^sketch\ultralcd.cpp:885:2: note: in expansion of macro 'MENU_ITEM_EDIT_CALLBACK' MENU_ITEM_EDIT_CALLBACK(bool, MSG_VOLUMETRIC_ENABLED, &volumetric_enabled, calculate_volumetric_multipliers); ^ultralcd_implementation_ultiboard_v2.h:870: error: too many arguments to function 'void lcd_implementation_drawmenu_setting_edit_generic_P(uint8_t, const char*, const char*)'#define lcd_implementation_drawmenu_setting_edit_callback_bool(row, pstr, pstr2, data, callback) lcd_implementation_drawmenu_setting_edit_generic_P(row, pstr, ' ', (*(data))?PSTR(MSG_ON)STR(MSG_OFF))                                                                                                                                                                                                        ^sketch\ultralcd.cpp:137:17: note: in expansion of macro 'lcd_implementation_drawmenu_setting_edit_callback_bool'                lcd_implementation_drawmenu_ ## type (_drawLineNr, _label_pstr , ## args ); \                ^sketch\ultralcd.cpp:150:55: note: in expansion of macro 'MENU_ITEM'#define MENU_ITEM_EDIT_CALLBACK(type, label, args...) MENU_ITEM(setting_edit_callback_ ## type, label, PSTR(label) , ## args )                                                      ^sketch\ultralcd.cpp:885:2: note: in expansion of macro 'MENU_ITEM_EDIT_CALLBACK' MENU_ITEM_EDIT_CALLBACK(bool, MSG_VOLUMETRIC_ENABLED, &volumetric_enabled, calculate_volumetric_multipliers); ^In file included from sketch\ultralcd.cpp:41:0:sketch\ultralcd_implementation_ultiboard_v2.h:807:13: note: declared herestatic void lcd_implementation_drawmenu_setting_edit_generic_P(uint8_t row, const char* pstr, const char* data)            ^ultralcd.cpp:135: error: 'lcd_implementation_drawmenu_setting_edit_callback_float43_selected' was not declared in this scope                lcd_implementation_drawmenu_ ## type ## _selected (_drawLineNr, _label_pstr , ## args ); \                                                                                                      ^sketch\ultralcd.cpp:150:55: note: in expansion of macro 'MENU_ITEM'#define MENU_ITEM_EDIT_CALLBACK(type, label, args...) MENU_ITEM(setting_edit_callback_ ## type, label, PSTR(label) , ## args )                                                      ^sketch\ultralcd.cpp:888:3: note: in expansion of macro 'MENU_ITEM_EDIT_CALLBACK'  MENU_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_SIZE_EXTRUDER_0, &filament_size[0], DEFAULT_NOMINAL_FILAMENT_DIA - .5, DEFAULT_NOMINAL_FILAMENT_DIA + .5, calculate_volumetric_multipliers);  ^ultralcd.cpp:137: error: 'lcd_implementation_drawmenu_setting_edit_callback_float43' was not declared in this scope                lcd_implementation_drawmenu_ ## type (_drawLineNr, _label_pstr , ## args ); \                                                                                         ^sketch\ultralcd.cpp:150:55: note: in expansion of macro 'MENU_ITEM'#define MENU_ITEM_EDIT_CALLBACK(type, label, args...) MENU_ITEM(setting_edit_callback_ ## type, label, PSTR(label) , ## args )                                                      ^sketch\ultralcd.cpp:888:3: note: in expansion of macro 'MENU_ITEM_EDIT_CALLBACK'  MENU_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_SIZE_EXTRUDER_0, &filament_size[0], DEFAULT_NOMINAL_FILAMENT_DIA - .5, DEFAULT_NOMINAL_FILAMENT_DIA + .5, calculate_volumetric_multipliers);  ^sketch\ultralcd.cpp: In function 'void lcd_buttons_update()':ultralcd.cpp:1400: error: 'encrot0' was not declared in this scope        case encrot0:             ^ultralcd.cpp:1401: error: 'encrot3' was not declared in this scope            if(lastEncoderBits==encrot3)                                ^ultralcd.cpp:1403: error: 'encrot1' was not declared in this scope            else if(lastEncoderBits==encrot1)                                     ^ultralcd.cpp:1406: error: 'encrot1' was not declared in this scope        case encrot1:             ^ultralcd.cpp:1409: error: 'encrot2' was not declared in this scope            else if(lastEncoderBits==encrot2)                                     ^ultralcd.cpp:1412: error: 'encrot2' was not declared in this scope        case encrot2:             ^ultralcd.cpp:1415: error: 'encrot3' was not declared in this scope            else if(lastEncoderBits==encrot3)                                     ^ultralcd.cpp:1418: error: 'encrot3' was not declared in this scope        case encrot3:             ^exit status 1invalid conversion from 'char' to 'const char*' [-fpermissive]

 

Can somebody help me to implant the Ulti LCD v2 in original marlin please ? :)

Thanks a lot & have a nice day !

Jean-Baptiste

Edited by Guest
  • Link to post
    Share on other sites

    Posted · Integration Ultipanel v2 in original marlin

    That's a bit confusing...

    You are talking about the firmware for an Ultimaker2, right?

    ...at least the "UltiLCD2..." files are used for the display of the Ultimaker 2

    - this would presume a

    #define ENABLE_ULTILCD2

    The "ultralcd...." files are not needed - at least not for a stock UM2 - the same applies to "ULTIBOARD_V2_CONTROLLER" - are you using a different display?

    AFAIK you would never need both?

  • Link to post
    Share on other sites

    Posted · Integration Ultipanel v2 in original marlin

    Hi tinkergnome !

    I am not talking about the ultimaker 2 marlin version but original version.

    I have implanted in this original version the UltiLCD in, hum... I try it we will say.

    I would make work the ENABLE_ULTILCD2 or ULTIBOARD_V2_CONTROLLER.

    but I get this all error in compiling

    I am using of course the ultimaker display :)

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.8 beta released
        Another Cura release has arrived and in this 5.8 beta release, the focus is on improving Z seams, as well as completing support for the full Method series of printers by introducing a profile for the UltiMaker Method.
          • Like
        • 1 reply
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
    ×
    ×
    • Create New...