Share this example!

Share this example with your friends on your favorite profile:

You can easily embed this example to your blog or website by copying the following code:

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/example/TinyWireM/Tiny85_Temp_LCD" frameborder="0"></iframe>


You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>



  • 2016-05-24 tzikis

    ed1960, instead of pasting the error codes, it might help if you just send us a link to you sketch. That way everyone can check it out, look at the issues, and try to suggest a solution

  • 2016-05-24 Ed1960

    (sketch file) Tiny85_Temp_LCD.ino:28:19: error: no matching constructor for initialization of 'LiquidCrystal_I2C'

    LiquidCrystal_I2C lcd(GPIO_ADDR,16,2); // set address & 16 chars / 2 lines

    ^ ~~~~~~~~~~~~~~

    (personal library file) LiquidCrystal/LiquidCrystal_I2C.h:53:4: note: candidate constructor not viable: no known conversion from 'int' to 't_backlighPol' for 3rd argument

    LiquidCrystal_I2C (uint8_t lcd_Addr, uint8_t backlighPin, t_backlighPol pol);

    ^

    (personal library file) LiquidCrystal/LiquidCrystal_I2C.h:51:4: note: candidate constructor not viable: requires single argument 'lcd_Addr', but 3 arguments were provided

    LiquidCrystal_I2C (uint8_t lcd_Addr);

    ^

    (personal library file) LiquidCrystal/LiquidCrystal_I2C.h:67:4: note: candidate constructor not viable: requires 4 arguments, but 3 were provided

    LiquidCrystal_I2C( uint8_t lcd_Addr, uint8_t En, uint8_t Rw, uint8_t Rs);

    ^

    (personal library file) LiquidCrystal/LiquidCrystal_I2C.h:69:4: note: candidate constructor not viable: requires 6 arguments, but 3 were provided

    LiquidCrystal_I2C(uint8_t lcd_Addr, uint8_t En, uint8_t Rw, uint8_t Rs,

    ^

    (personal library file) LiquidCrystal/LiquidCrystal_I2C.h:88:4: note: candidate constructor not viable: requires 8 arguments, but 3 were provided

    LiquidCrystal_I2C(uint8_t lcd_Addr, uint8_t En, uint8_t Rw, uint8_t Rs,

    Sadly this example is not working at all. It does not compile. I left the error message below.

    It seems it mainly has to do with using the 'send' constructor rather than the 'write' constructor. Also it seems to have problems with the backlight constructor as in: no known conversion from 'int' to 't_backlighPol' for 3rd argument

    ^

    (personal library file) LiquidCrystal/LiquidCrystal_I2C.h:91:4: note: candidate constructor not viable: requires 10 arguments, but 3 were provided

    LiquidCrystal_I2C(uint8_t lcd_Addr, uint8_t En, uint8_t Rw, uint8_t Rs,

    ^

    (personal library file) LiquidCrystal/LiquidCrystal_I2C.h:38:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided

    class LiquidCrystal_I2C : public LCD

    ^

    (sketch file) Tiny85_Temp_LCD.ino:65:13: error: no member named 'send' in 'USI_TWI'

    TinyWireM.send(0xAC); // Access Command Register

    ~~~~~~~~~ ^

    (sketch file) Tiny85_Temp_LCD.ino:66:13: error: no member named 'send' in 'USI_TWI'

    TinyWireM.send(B00000001); // Using one-shot mode for battery savings

    ~~~~~~~~~ ^

    (sketch file) Tiny85_Temp_LCD.ino:74:13: error: no member named 'send' in 'USI_TWI'

    TinyWireM.send(0xEE); // if one-shot, start conversions now

    ~~~~~~~~~ ^

    (sketch file) Tiny85_Temp_LCD.ino:78:13: error: no member named 'send' in 'USI_TWI'

    TinyWireM.send(0xAA); // read temperature (for either mode)

    ~~~~~~~~~ ^

    (sketch file) Tiny85_Temp_LCD.ino:81:21: error: no member named 'receive' in 'USI_TWI'

    tempC = TinyWireM.receive(); // get the temperature

    ~~~~~~~~~ ^

  • 2015-11-20 codebender

    This example was tested on 2016-06-11 and it failed to compile on common Arduino boards.