![]() |
Forum Index : Microcontroller and PC projects : LCD
Author | Message | ||||
centrex![]() Guru ![]() Joined: 13/11/2011 Location: AustraliaPosts: 320 |
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: AustraliaPosts: 2956 |
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 KingdomPosts: 676 |
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: AustraliaPosts: 320 |
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 Cliff Cliff |
||||
G8JCF![]() Guru ![]() Joined: 15/05/2014 Location: United KingdomPosts: 676 |
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 ![]() 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: AustraliaPosts: 320 |
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 KingdomPosts: 676 |
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: AustraliaPosts: 320 |
Hi Peter Tried Ver7 no problems. Works well using BigMicks expansion board and a 4x20 lcd. Thanks Cliff Cliff |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |