ErikZalm/Marlin — Issue #26: How to use Wire.h and another lcd lib?
Author: alx
Created: 2011-12-05 13:08:04+00:00
State: open

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:

https://github.com/alx/Marlin/commit/1842ef0966722fa1d01c3ecba5edfd52cc0b6e71

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