9:06 pm
May 11, 2016
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
6:42 pm
May 11, 2016
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
9:30 pm
May 11, 2016
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
11:47 pm
March 12, 2015
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:
3:21 pm
July 18, 2016
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.
1:33 pm
May 20, 2015
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.
23
2 Guest(s)