I2C example got error with newLiquidCrystal 1.5.1

Issue #89 on hold
Mitry created an issue

Hello, I tried test example, changed only i2c address and screen size - 20x4. Then got this error. Any ideas what is a problem?

Comments (4)

  1. Mitry reporter
    • edited description
    Processing megaatmega2560 (framework: arduino; platform: atmelavr; board: megaatmega2560)
    --------------------------------------------------------------------------------
    Verbose mode can be enabled via `-v, --verbose` option
    CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/megaatmega2560.html
    PLATFORM: Atmel AVR > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560)
    HARDWARE: ATMEGA2560 16MHz 8KB RAM (248KB Flash)
    Converting lcd_test.ino
    
    Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF MODES: FINDER(chain) COMPATIBILITY(soft)
    Collected 22 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- <Adafruit PWM Servo Driver Library> 1.0.2 #0c909db
    |   |-- <Wire> 1.0
    |-- <PubSubClient> 2.7 #26ce89f
    |-- <Wire> 1.0
    |-- <LiquidCrystal> 1.5.0
    |   |-- <Wire> 1.0
    *** [src/lcd_test.ino.cpp] TypeError : unsupported operand type(s) for -: 'float' and 'NoneType'
    ========================== [ERROR] Took 0.48 seconds ==========================
    
  2. Francisco Malpartida repo owner

    What example were you trying to run? What changes have you done to the file? From what you've published, the error happens when you try to update the platformIO libraries. src/lcd_test.ino.cpp is not a file in the library which is where it is complaining.

  3. Francisco Malpartida repo owner

    Pending seeing the origen of the file src/lcd_test.ino.cpp which isn't a file in the library.

  4. Log in to comment