Problem with extension: LCD with I2C


#1

Hi,

I have LCD with I2C in my School. I would like to use this extension with my students:

When I try it, mBlock gives me an error:
I think that I have a problem with the libraries. I have rescued some images from my libraries folders:

Can anybody help me?

Regards,

Susana


#2

Hi susanaoubina,
It looks like there is no Makeblock library in your libraries:

You can download the Makeblock library in this link.


#3

Hi,

Thanks for your time!

I included makeblock library:

My LCD I2C is 0x3F, so, I use LCD I2C Pack extension. Then, I upload to Arduino this program:

But, mBlock said me that there is that mistake:

Preparing boards…
Verifying and uploading…
Utilizando biblioteca Wire en carpeta: C:\Program Files (x86)\mBlock\Arduino\hardware\arduino\avr\libraries\Wire
Utilizando biblioteca SoftwareSerial en carpeta: C:\Program Files (x86)\mBlock\Arduino\hardware\arduino\avr\libraries\SoftwareSerial
Utilizando biblioteca LiquidCrystal_I2C en carpeta: C:\Program Files (x86)\mBlock\Arduino\hardware\arduino\avr\libraries\LiquidCrystal_I2C (legacy)

C:\Program Files (x86)\mBlock\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\mBlock\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\mBlock\Arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\mBlock\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\mBlock\Arduino\hardware\arduino\avr\libraries\SoftwareSerial -IC:\Program Files (x86)\mBlock\Arduino\hardware\arduino\avr\libraries\LiquidCrystal_I2C C:\Users\MANTEM~1\AppData\Local\Temp\build3013023761710712231.tmp\project_Untitled2_4.cpp -o C:\Users\MANTEM~1\AppData\Local\Temp\build3013023761710712231.tmp\project_Untitled2_4.cpp.o
project_Untitled2_4.ino:9:57: error: ‘POSITIVE’ was not declared in this scope
’POSITIVE’ was not declared in this scope

Conexions:
I2C: Arduino:
GND GND
Vcc 5V
SDA A4
SCL A5

Please, could you help me? What am I doing wrong?

Regards,

Susana


#4

Hi,

In this link is the solution:

Thanks Teresa,

Regards,

Susana