Comments (11)
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.
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.
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:
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:
- arduino lib : https://github.com/Snootlab/Deuligne
- hardware : http://shop.snootlab.com/lang-en/powerduino/132-deuligne.html
Thanks :)
Alex
Reply to this email directly or view it on GitHub:
https://github.com/ErikZalm/Marlin/issues/26
from marlin.
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.
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.
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.
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.
Hello Alex.
Thanks for porting it. I will check it in a few days.
from marlin.
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.
(issue created a long time ago; reopen if there's no fix in place)
from marlin.
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)
- [BUG] tmc2209 motor driver uart not working with skr pro v1.2 HOT 2
- [BUG] Compilation error: MPCTEMP_START defined in dwin.h, but used in temperature.cpp when EXTENSIBLE_UI is enabled HOT 4
- Not sure if code is working with RAMPS 1.4 Shield + LCD HOT 4
- [BUG] ESP3D_WIFISUPPORT Compilation Error, Not working with MKS TinyBee Motherboard HOT 2
- [BUG] Strange behavior of the PWM fans on bugfix-2.1.x MKS Monster8 v2 HOT 3
- [BUG]Freeze_feature does not stop all motors HOT 4
- [FR] Home Offset Here for a specific Axis HOT 2
- Dual Z Stepper with dual endstop don't work. [BUG] HOT 13
- I need help with building marlin HOT 1
- [BUG] Marlin 2.1.2.2 Known Issues
- [FR] (feature summary) "HotBed" Idle Timeout HOT 3
- [BUG] G28 causes incorrect Z-axis 0-point when using KlackEnder HOT 7
- [FR] Support FAN_KICKSTART_TIME for LASER_SYNCHRONOUS_M106_M107
- vibrating x stepper motor while safe homing HOT 1
- [FR] Add fanuc m84 threading code HOT 5
- [FR] Add pin debug.h file in Hal esp32 HOT 2
- [FR] Add Esp32 PCF8575 library HOT 4
- [FR] I2C Position Encoders support for Esp32 HOT 1
- [FR] Restart motherboard to DFU mode
- [BUG] Setting EXTRUDERS 0 fails to compile HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marlin.