Menu

Compile errors for i2c_lcd-arduino example

Anonymous
2018-12-10
2018-12-27
  • Anonymous

    Anonymous - 2018-12-10

    When I tried to compile i2c_lcd-arduino.ino with attached library, I got next errors:

    "i2clcd-arduino:8: error: no matching function for call to 'SoftLcdI2C::SoftLcdI2C(uint8t&, int, int, uint8t&, uint8t&)'
    SoftLcdI2C i2cLcd( address, 16, 2, sda, scl ); // INOLINE 8
    ^
    C:\Users\user\AppData\Local\SimulIDE0\codeeditor\buildIno\i2clcd-arduino\i2clcd-arduino.ino:8:47: note: candidates are:
    In file included from C:\Users\user\AppData\Local\SimulIDE0\codeeditor\buildIno\i2clcd-arduino\i2clcd-arduino.ino:2:0:
    C:\arduino-1.8.1\libraries\SoftLCD-I2C/SoftLCD-I2C.h:58:3: note: SoftLcdI2C::SoftLcdI2C(uint8t, uint8t, uint8t)
    SoftLcdI2C(uint8t lcdAddr,uint8t lcdcols,uint8t lcdrows);
    ^
    C:\arduino-1.8.1\libraries\SoftLCD-I2C/SoftLCD-I2C.h:58:3: note: candidate expects 3 arguments, 5 provided
    C:\arduino-1.8.1\libraries\SoftLCD-I2C/SoftLCD-I2C.h:56:7: note: constexpr SoftLcdI2C::SoftLcdI2C(const SoftLcdI2C&)
    class SoftLcdI2C : public Print {
    ^
    C:\arduino-1.8.1\libraries\SoftLCD-I2C/SoftLCD-I2C.h:56:7: note: candidate expects 1 argument, 5 provided
    C:\arduino-1.8.1\libraries\SoftLCD-I2C/SoftLCD-I2C.h:56:7: note: constexpr SoftLcdI2C::SoftLcdI2C(SoftLcdI2C&&)
    C:\arduino-1.8.1\libraries\SoftLCD-I2C/SoftLCD-I2C.h:56:7: note: candidate expects 1 argument, 5 provided
    exit status 1
    "

    I lightly corrected Soft_LCD-I2C.cpp & Soft_LCD-I2C.h. Also I added printbytes method to send any charecters including '\0'. I modified i2c_lcd-arduino.simu and think, all simulated well. Attached file includes this my work.

     
  • Santiago

    Santiago - 2018-12-11

    Hi Anonymous.

    Thanks for the contribution!
    I will include it in next release.

    Regards.