Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:59 17 Sep 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : LCD

Author Message
centrex

Guru

Joined: 13/11/2011
Location: Australia
Posts: 320
Posted: 06:30pm 23 Feb 2015
Copy link to clipboard 
Print this post

Hi
I am trying to use BigMicks expansion board with an lcd using Peter G8JCF code, it used to work very well with Ver 4.5 of the 170 software.
Now with Ver 4.6b it comes up with all sorts of rather confusing errors most seem to be to with DIM statements.
If anyone has Peters code working with a 170 and Ver 4.6b on BigMicks board I would like to hear about it.
Regards
Cliff

Cliff
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2956
Posted: 02:52pm 24 Feb 2015
Copy link to clipboard 
Print this post

Hi Cliff,

OK,

I am sorry the file I sent you DID NOT use Peter's code.. Sorry

Since my HDD crash several months ago I have neglected to load Peter's Lib back on..

Anyway I can see that the problem appears as there is a SUB called LCDI2C_BackLight and a Variable called LCDI2C_BackLight

I assume that 4.6b wont allow the same name for a variable and a SUB whereas 4.5D must have allowed it.

Anyway here is a `mik patched' version of the LCD lib where I have changed all references to the variable to LCDI2C_BackLightMIK and it now works as before..

I will email Peter and let him know.

2015-02-25_005222_LCD_LIB.zip

Regards,

Mick


Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
G8JCF

Guru

Joined: 15/05/2014
Location: United Kingdom
Posts: 676
Posted: 03:36pm 24 Feb 2015
Copy link to clipboard 
Print this post

Hi Mick - thank you for sorting that out, I will release a new version of LCDI2CLib - V7 tomorrow.

Centrex, hopefully you are all sorted out now ?

Right we need a coding standard to make sure that function/sub names are guaranteed different from variable names :)

Once again Mick, thank you.

Peter
The only Konstant is Change
 
centrex

Guru

Joined: 13/11/2011
Location: Australia
Posts: 320
Posted: 09:29pm 24 Feb 2015
Copy link to clipboard 
Print this post

Thanks Mick and Peter.
I backtracked to ver 4.5c and it all worked, to clarify this is all part the post on pressure sensors.
I have a BMP085 set up as an altimeter, took it to work today to compare it to our master altimeter but as luck would have it the vacuum source failed.
One good thing was that QNH sea level pressure reported by my device was the same as the ATIS at the airfield here at Camden NSW.

Hopefully next week I will be able to compare it to the master.

I will have a look at your mods tonight Mick.

regards
CliffEdited by centrex 2015-02-26
Cliff
 
G8JCF

Guru

Joined: 15/05/2014
Location: United Kingdom
Posts: 676
Posted: 06:30am 25 Feb 2015
Copy link to clipboard 
Print this post

Hi Cliff, Mick

Here is the LCDI2C Library updated to work under MMBasic 4.6B.

I will also post the ZIP file in the MMBasic 4.6 Library website - http://www.g8jcf.dyndns.org/MMBasicIILib/

This Library does NOT properly conform to the Guidelines for 4.6 libraries because if I make the changes, that will break old code . Had I written the library originally according to the guidelines, then the problem which Mick/Cliff found wouldn't have existed - mind you back with 4.5 a lot of "bad" practices were tolerated by MMBasic whereas 4.6 is much more strict (and proper IMHO).

What do people think about me re-writing the library according to the guidelines ?

Peter

2015-02-25_162904_LCDI2CLibV7.zip
The only Konstant is Change
 
centrex

Guru

Joined: 13/11/2011
Location: Australia
Posts: 320
Posted: 09:51am 25 Feb 2015
Copy link to clipboard 
Print this post

Thanks Peter
I will give it a try tonight (early morning in Aus)

All things should be done in the proper manner but it is sure frustrating when something that used to work quite happily suddenly doesnt with a new version of the software.

Cliff
Cliff
 
G8JCF

Guru

Joined: 15/05/2014
Location: United Kingdom
Posts: 676
Posted: 10:32am 25 Feb 2015
Copy link to clipboard 
Print this post

Hi Cliff

One is always faced with the issue of backwards compatibility whenever one upgrades software, eg MMBasic 4.5 cf MMBasic 4.6. IMHO I don't think Geoff had any choice in this particular area because permitting Variables and Functions/Subs to have the same name was always a really bad idea (and I fell into that trap) which Geoff fixed in 4.6. Overall MMBasic 4.6 is immeasurably superior to 4.5.

In the perfect world, everything would be 100% backwards compatible, but that would really cost especially in terms of memory in this particular case.

Please let us know how it goes.

Peter
The only Konstant is Change
 
centrex

Guru

Joined: 13/11/2011
Location: Australia
Posts: 320
Posted: 11:26pm 25 Feb 2015
Copy link to clipboard 
Print this post

Hi Peter
Tried Ver7 no problems.
Works well using BigMicks expansion board and a 4x20 lcd.
Thanks
Cliff
Cliff
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025