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.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 16 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...