B4R Question Why does a B4R program line that worked well on all my applications suddenly become an error?

Marc DANIEL

Well-Known Member
Licensed User
LCD BackLight:
Private Sub Departure
    pinGreenLED.DigitalWrite(True)   'lights the green LEDs at the start of the session or in the event of RESET on the ARDUINO UNO card (3 places remain defined on line 42)
    LCD.Backlight = True
    LCD.Clear
    LCD.SetCursor(0,0)
    LCD.Write("  CENTRAL PARKING  ")
    LCD.SetCursor(3,1)
    LCD.Write(NumberFormat(Places,2,0))
    LCD.SetCursor(5,1)
    LCD.Write(" FREE PLACES  ")
    LCD.SetCursor(0,2)
    LCD.Write("       WELCOME   ")
    LCD.SetCursor(0,3)
    LCD.Write("                    ")
   
End Sub

I didn't remove any libraries and the line:
"LCD.BackLight = True" becomes incomprehensible for B4R
 

Attachments

  • Parking6-EV.zip
    2.9 KB · Views: 10

Marc DANIEL

Well-Known Member
Licensed User
I don't think so, information would have been released, I think. The error does not come from ARDUINO but from B4R, that's what surprises me.
I tried a library created by a specialist but to no avail.
 

Attachments

  • rLiquidCrystalI2CEx.zip
    23.5 KB · Views: 13
Upvote 0

klaus

Expert
Licensed User
Longtime User
I had a look at your project.
There you declare:
B4X:
Private LCD As LiquidCrystal_I2C         'Library "rLiquidCrystal_I2C" to load and use
But you say that you want to use another library rLiquidCrystalI2CEx.
So, to use it you need to declare it.
B4X:
Private LCD1 As LiquidCrystalI2CEX
 
Upvote 0

Marc DANIEL

Well-Known Member
Licensed User
No Klaus, I just tried this library, without success, so I came back to the well-known library rLiquidCrystalI2C.
I will try to reinstall it after removing the old versions of B4R.
 
Upvote 0

Marc DANIEL

Well-Known Member
Licensed User
Sorry, guys. I deleted the old files from the rLiquidCrystalI12c library which I re-uploaded from the B4X pages and reinstalled the new files and like magic the errors disappeared.
I will never understand what happened. All my B4R applications using LCD screens are working without bugs again.
I apologize for this unnecessary inconvenience.
Sincerely.
 
Upvote 0

Marc DANIEL

Well-Known Member
Licensed User
And again, when you write "LCD." in the B4R programming environment, the system offers all the possibilities including "BackLight"!

BackLightBug.png
 
Upvote 0
Top