Notifications
Clear all

2004A Liquid Crystal Display

5 Posts
3 Users
1 Likes
518 Views
John N
(@john-n)
Member
Joined: 3 years ago
Posts: 2
Topic starter  

I am having a terrible time trying to get this device to work. It seems that the libraries are very difficult to find. But I now have them installed.  LiquidCrystal_I2C,  LiquidCrystal I2C and New-LiquidCrystal-master.  However, when I install and compile Bill's code I get error on line 20 - 'POSITIVE' was not declared on this scope.

Has anyone else had this problem?  What is the cure?

John Nicholson - North Wales,  biopoweruk@hotmail.com


   
Quote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2531
 
Posted by: @john-n

However, when I install and compile Bill's code I get error on line 20 - 'POSITIVE' was not declared on this scope.

Has anyone else had this problem?  What is the cure?

You're probably using the wrong library, I believe there are several versions of it available. Double check with Bill's written version and verify that you're using the same library.

Anything seems possible when you don't know what you're talking about.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6971
 
Posted by: @john-n

I am having a terrible time trying to get this device to work. It seems that the libraries are very difficult to find. But I now have them installed.  LiquidCrystal_I2C,  LiquidCrystal I2C and New-LiquidCrystal-master.  However, when I install and compile Bill's code I get error on line 20 - 'POSITIVE' was not declared on this scope.

Has anyone else had this problem?  What is the cure?

John Nicholson - North Wales,  biopoweruk@hotmail.com

I have seen that error before. Sorry, but I don't recall the reason however a foru search on POSITIVE tells me the last time I helped this was my response https://forum.dronebotworkshop.com/postid/29759/

I think you might have more to do but maybe it's tis easy.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6971
 

@john-n Be sure to reply that it is fixed or not. If not what is the new error (screen grab please)

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2531
 

@john-n

If you follow the previous fix, don't forget to change the 16,2 to 20,4 since you say you're using a 20 by 4 display LCD.

Also note that some manufacturers use a default address of 0x27 and some use 0x3F for the I2C address of the display. You can run a small sketch that will report the addresses of all I2C devices connected here ...

https://create.arduino.cc/projecthub/abdularbi17/how-to-scan-i2c-address-in-arduino-eaadda

Anything seems possible when you don't know what you're talking about.


   
Ron reacted
ReplyQuote