Giter Club home page Giter Club logo

Comments (8)

VasilKalchev avatar VasilKalchev commented on June 19, 2024

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.

antwal avatar antwal commented on June 19, 2024

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.

andrwgldmn avatar andrwgldmn commented on June 19, 2024

@antwal no, it`s working correctly with that editions.

from liquidmenu.

VasilKalchev avatar VasilKalchev commented on June 19, 2024

Have you downloaded the LiquidCrystal_I2C library.

from liquidmenu.

antwal avatar antwal commented on June 19, 2024

yes use same lib but get this error always

from liquidmenu.

VasilKalchev avatar VasilKalchev commented on June 19, 2024

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.

antwal avatar antwal commented on June 19, 2024

not working on platformio, but working in arduino ide

from liquidmenu.

antwal avatar antwal commented on June 19, 2024

fixed

from liquidmenu.

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.