Jump to content
Ultimaker Community of 3D Printing Experts
jean-baptiste

Integration Ultipanel v2 in original marlin

Recommended Posts

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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 :)

Share this post


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

    • Introducing Ultimaker Cura 3.6 | Beta
      Ultimaker Cura 3.6 | Beta is available. It comes with new features, bug fixes, and UX improvements. We would really like to have your feedback on it to make our stable release as good as it can be. As always, you can download the beta for free from our website, for Windows, MacOS, and Linux.
        • Like
      • 92 replies
    • Print Core CC | Red for Ruby
      Q: For some users, abrasive materials may be a new subject matter. Can you explain what it is that makes a material abrasive when you are not sure which print core to use?
      A: Materials which are hard in a solid piece (like metals, ceramics and carbon fibers) will generally also wear down the nozzle. In general one should assume...
        • Like
      • 30 replies
    • "Back To The Future" using Generative Design & Investment Casting
      Designing for light-weight parts is becoming more important, and I’m a firm believer in the need to produce lighter weight, less over-engineered parts for the future. This is for sustainability reasons because we need to be using less raw materials and, in things like transportation, it impacts the energy usage of the product during it’s service life.
        • Like
      • 12 replies
×

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!