I2C lcd on DUE board | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar
Please consider registering
guest
sp_LogInOut Log In sp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
I2C lcd on DUE board
July 2, 2016
9:06 pm
Avatar
miche91
Member
Members
Forum Posts: 35
Member Since:
May 11, 2016
sp_UserOfflineSmall Offline

Hi everyone,

I already use the lcd screens on arduino uno, but i can't find a working library for compile an lcd VI on arduino due board.

I receive this error, there are any solutions?

 

In file included from C:\Users\Michele\Documents\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:35:0:

C:\Users\Michele\Documents\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp: In member function 'uint8_t LiquidCrystal_SR1W::clearSR()':

C:\Users\Michele\Documents\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:77:24: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')

SR1W_ATOMIC_WRITE_LOW(srRegister, srMask);

^

C:\Users\Michele\Documents\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.h:293:79: note: in definition of macro 'SR1W_ATOMIC_WRITE_LOW'

#define SR1W_ATOMIC_WRITE_LOW(reg, mask) ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { *reg &= ~mask; }

^

C:\Users\Michele\Documents\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:86:22: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')

fio_bit reg_val = *srRegister;

 

Thanks

Michele

July 4, 2016
4:32 am
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Are you using one of the included I2C LCD examples from the Compiler?  Those use the LiquidCrystal library, not the NewLiquidCrystal so that may be your issue.

July 4, 2016
6:42 pm
Avatar
miche91
Member
Members
Forum Posts: 35
Member Since:
May 11, 2016
sp_UserOfflineSmall Offline

Thanks for your aswer!

I've tried to delete all lcd libraries except "LiquidCrystal" and tried to compile an example but now i receive this error (also on UNO board)

C:\Users\Michele\AppData\Local\Temp\58e9973bb6e2e908c6c199f5a9d39075.tmp\temp\temp.ino:6:17: fatal error: LCD.h: No such file or directory

 #include "LCD.h"

                 ^

compilation terminated.

On UNO board, if I use NewLiquidCrystal all works perfect but on DUE board I can't use I2C display

 

thanks

Michele

July 4, 2016
8:18 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline
July 4, 2016
9:30 pm
Avatar
miche91
Member
Members
Forum Posts: 35
Member Since:
May 11, 2016
sp_UserOfflineSmall Offline

thanks steffan,

I've tried to follow that post but I receive the error

C:\Users\Michele\AppData\Local\Temp\58e9973bb6e2e908c6c199f5a9d39075.tmp\temp\temp.ino:6:17: fatal error: LCD.h: No such file or directory

 #include "LCD.h"

                 ^

compilation terminated.

this is my I2CIO.cpp, it is correct?

I write ".vi" at the end of the file because I can't attach .cpp files

thanks again

July 4, 2016
11:47 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

There are several related posts on the arduino forums.  When all else fails compile the LCD examples in the Arduino IDE and make sure those are working first before using the ACC4LV.

Look at these posts:

https://forum.arduino.cc/index.....c=330766.0

http://forum.arduino.cc/index......c=269456.0

July 19, 2016
3:21 pm
Avatar
ElsyKhong
New Member
Members
Forum Posts: 1
Member Since:
July 18, 2016
sp_UserOfflineSmall Offline

Hi..i am a new user here but i worked on Arduino during my project as a hobbyist. I also faced this type of problem many times and as per my knowledge this problem only occurs because of the old libraries files. Just try again by updating your libraries. Because no other issue is looking that. You can also consider the solution suggested above but that don't looks much relevant to me.

July 21, 2016
7:27 pm
Avatar
miche91
Member
Members
Forum Posts: 35
Member Since:
May 11, 2016
sp_UserOfflineSmall Offline

I agree with you!

I've already solved last week by updating my libraries

thanks

January 10, 2017
1:33 pm
Avatar
KDan
Member
Members
Forum Posts: 7
Member Since:
May 20, 2015
sp_UserOfflineSmall Offline

As a very late followup to this thread, I ran into the same problems.

The included LiquidCrystal libraries did not work for me on the Due, neither did the fmalpartida NewLiquidCrystal library.

I tried updated versions of the standard libraries that are packaged with the Arduino IDE and nothing worked...

 

Ultimately, I had to hide those libraries (might want them for some future non-Due project) and then copy this one to the libraries folder and restart.

https://github.com/marcoschwar.....rystal_I2C

 

This one worked perfectly with the Due, even though the arduino compiler gave a warning that it may only work with AVR hardware.

Upon using the ACC4LV, it apparently used that library and it also worked great.

 

Hope this helps someone.

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
23
Guest(s)
Currently Browsing this Page:
2 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrol
Administrators: geadmin: 22, filipealtoe: 96, Steffan: 356