Git Product home page Git Product logo

Comments (11)

bkubicek avatar bkubicek commented on May 20, 2024

Why don't you use a recent arduino env, i.e. 1.0 or at least 23? Maybe that would help. Apart from that, I cannot really help you, as I don't have this hardware and cannot test/try, and have really not so much time. However, the actual used routines of the LiquidCrystal are very limited, and could be easily replaced: Do a file search for "lcd."

from marlin.

alx avatar alx commented on May 20, 2024

Hi Bernhard,

Thanks for the comment, I've already tried with arduino 0023 and 1.0, without success. I've tried with 0022 because it was mentionned in the Makefile available in Marlin folder.

I'll let you know if I succeed to use ultralcd with deuligne hardware, otherwise I'll continue to use my own lcd lib - https://github.com/alx/Marlin/blob/deuligne/Marlin/lcd.pde - but that's ashame, yours seems a lot more usable :)

from marlin.

ErikZalm avatar ErikZalm commented on May 20, 2024

Hello Alex,

I never looked at this display but I will look at it this week.
If it looks ok I will try to add it to Marlin and try too check where the compile errors are coming from.

Best regards,

Erik van der Zalm

On Dec 5, 2011, at 2:08 PM, Alexandre Girard wrote:

Hi,

In the following commit, I'm trying to use the current implementation of ultralcd with another lcd system that uses i2c, that uses an arduino lib compatible with LiquidCrystal method calls:

alx@1842ef0

Compiling under arduino 0022, I've got this error:

In file included from Marlin.cpp:35:
ultralcd.h:19:22: error: Wire.h: No such file or directory
ultralcd.h:20:26: error: Deuligne.h: No such file or directory
In file included from Marlin.cpp:35:
ultralcd.h:20: error: 'Deuligne' does not name a type
ultralcd.h: In member function 'void MainMenu::updateActiveLines(const uint8_t&, volatile int&)':
ultralcd.h:95: error: 'lcd' was not declared in this scope
ultralcd.h: In member function 'void MainMenu::clearIfNecessary()':
ultralcd.h:131: error: 'lcd' was not declared in this scope

It seems that Wire.h is not found, I've tried to place Wire.h and Deuligne.h in Marlin.pde, then it finds it during compilation, but I hit another issue:

In file included from planner.cpp:66:
ultralcd.h:18: error: 'Deuligne' does not name a type
ultralcd.h: In member function 'void MainMenu::updateActiveLines(const uint8_t&, volatile int&)':
ultralcd.h:93: error: 'lcd' was not declared in this scope
ultralcd.h: In member function 'void MainMenu::clearIfNecessary()':
ultralcd.h:129: error: 'lcd' was not declared in this scope

Would you have some hints about how to do this modification properly?

More details about Snootlab Deuligne:

Thanks :)

Alex


Reply to this email directly or view it on GitHub:
https://github.com/ErikZalm/Marlin/issues/26

from marlin.

alx avatar alx commented on May 20, 2024

After a new try, I've succeeded in removing the compilation errors by moving Wire.h and Deuligne.h in Marlin folder, and quickly make the code dirtier than it should.

But then the lcd is not switching on, and it's not possible to connect to the arduino via Printrun.

I suspect that the uploaded code is failing on the board and is not able to open a serial connection, I'll move back to my custom lcd lib to implement it with the new Marlin, even if I dream to use ultra_lcd lib one day :)

from marlin.

alx avatar alx commented on May 20, 2024

Here is the different call when compiling an example from Deuligne lib, and Marlin:

https://raw.github.com/gist/2023450/c23a5ca8fb9e038f38238d5992bfbab8fd0e5b0e/gistfile1.txt

As you can see, the exemple gets the Wire and Deuligne lib locations in its option, but nothing appears during the compilation of Marlin. Where do these options are created inside arduino?

from marlin.

alx avatar alx commented on May 20, 2024

ok, I need to declare the call to Wire and Deuligne lib inside Marlin.pde for them to be fetch during compilation, one step closer to ultra_lcd support :)

from marlin.

alx avatar alx commented on May 20, 2024

Good, it compiles and upload correctly (still dirty), but it's then impossible to connect to the printer using Printrun.

Here is the compilation log: https://gist.github.com/2023523

I'll try to find a way to know what happens when the arduino is initializing, and find the possible error.

from marlin.

ErikZalm avatar ErikZalm commented on May 20, 2024

Hello Alex.

Thanks for porting it. I will check it in a few days.

from marlin.

alx avatar alx commented on May 20, 2024

Hello Erik,

Do you think it could be a memory issue?

Here is the memory footprint after the compilation:

#define LCD
Binary sketch size: 85794 bytes (of a 258048 byte maximum)

//#define LCD
Binary sketch size: 63024 bytes (of a 258048 byte maximum)

#define BLOCK_BUFFER_SIZE 4
//#define LCD
Binary sketch size: 62646 bytes (of a 258048 byte maximum)

#define BLOCK_BUFFER_SIZE 4
#define LCD
Binary sketch size: 85416 bytes (of a 258048 byte maximum)

I've committed the current non-working code on https://github.com/alx/Marlin
It's compiling/uploading, but when activating the LCD config, I'm still not able to connect to the serial port.

Unfortunately, I haven't try activating just the ULTRA_LCD config, to be sure the same issue doesn't appear with this config. I'll try it as soon as I return to the machine.

from marlin.

nothinman avatar nothinman commented on May 20, 2024

(issue created a long time ago; reopen if there's no fix in place)

from marlin.

github-actions avatar github-actions commented on May 20, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from marlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.