Comments (8)
Because this is the I2C example you need to switch the configuration to I2C. In LiquidMenu_config.h
comment lines 33-35 and uncomment lines 43-45.
from liquidmenu.
Not working:
/*!
* @name Arduino's parallel "LiquidCrystal" library
* @{
*/
// #define LIQUIDMENU_LIBRARY LiquidCrystal_LIBRARY
// #include <LiquidCrystal.h>
// #define DisplayClass LiquidCrystal
//!@}
/*!
* @name I2C library
* @see https://github.com/johnrickman/LiquidCrystal_I2C
* @{
*/
#define LIQUIDMENU_LIBRARY LiquidCrystal_I2C_LIBRARY
#include <LiquidCrystal_I2C.h>
#define DisplayClass LiquidCrystal_I2C
//!@}
Error:
In file included from /Users/antwal/Documents/Arduino/libraries/LiquidMenu/src/LiquidLine.cpp:30:0:
/Users/antwal/Documents/Arduino/libraries/LiquidMenu/src/LiquidMenu.h:56:122: note: #pragma message: LiquidMenu: Selected 'LiquidCrystal_I2C' (I2C) library. Edit 'LiquidMenu_config.h' file to change it.
# pragma message ("LiquidMenu: Selected 'LiquidCrystal_I2C' (I2C) library. Edit 'LiquidMenu_config.h' file to change it.")
^
/var/folders/t8/b6xtsj5121q_9qcnbwcpcxwc0000gn/T//ccbVoEN0.ltrans0.ltrans.o: In function `global constructors keyed to 65535_0_sketch_jan12a.ino.cpp.o.2759':
<artificial>:(.text.startup+0x142): undefined reference to `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char)'
/var/folders/t8/b6xtsj5121q_9qcnbwcpcxwc0000gn/T//ccbVoEN0.ltrans0.ltrans.o: In function `setup':
/Users/antwal/Documents/Arduino/sketch_jan12a/sketch_jan12a.ino:76: undefined reference to `LiquidCrystal_I2C::init()'
collect2: error: ld returned 1 exit status
from liquidmenu.
@antwal no, it`s working correctly with that editions.
from liquidmenu.
Have you downloaded the LiquidCrystal_I2C library.
from liquidmenu.
yes use same lib but get this error always
from liquidmenu.
The error states that there is an undefined reference to a function from this library.
Have you tried running an example from the I2C library? Maybe it's not installed correctly.
Do you get an error when I2C is disabled in LiquidMenu examples?
from liquidmenu.
not working on platformio, but working in arduino ide
from liquidmenu.
fixed
from liquidmenu.
Related Issues (20)
- call_function() calls update() for previous menu if change_menu() is in the callback function
- API reference is 404 HOT 2
- Unable to get current menu from LiquidSystem
- 'recognizeType(int&)' is ambiguous HOT 1
- LiquidMenu objects have to be defined globally HOT 3
- Screens could link to child menus HOT 5
- Switching screens should reset focus item back to first line HOT 2
- Rotary encoder example HOT 2
- `switch_focus` iterates from the last focusable line to `_lineCount` instead of the first line HOT 6
- Blink cursor over editing position HOT 1
- Avoid creating duplicate variables HOT 1
- `delete_variable()` and `detach_function()` HOT 2
- `LiquidSystem::is_callable` makes an undesired `LiquidMenu::call_function` HOT 1
- Mixing sub-menus and scrolling lines? HOT 1
- Switch focus disappears for one step after an iteration HOT 4
- Support for the SAMD architecture HOT 1
- Optional screen refresh option when calling a function HOT 1
- [Poll] Which interface do you use to interface with the display?
- LiquidCrystal not found even if it's installed HOT 2
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 liquidmenu.