Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:11 14 Nov 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 : Problem with ILI9341 'keypad'

Author Message
mikedownunder

Newbie

Joined: 03/03/2016
Location: Australia
Posts: 26
Posted: 02:12am 29 Jul 2020
Copy link to clipboard 
Print this post

Hi Guys

Running Micromite V5.05.03

Countdown Timer.zip

Been using this software for a while and recently updated my hardware.
To rule this out I connected my display to a V2 backpack.

As you can probably see I originally got this from one of GeoofG's projects.
For some strange reason I am now getting an error whenever I change a number and press the "ENT" key. Everything else works as expected.

If I run it in MMEDIT V4.0 everything is OK, however as soon as the ENT key is pressed the following message appears in Micromite_5.05.01 Chat.
[311] If Btn = 16 And S <> "" Then VAR = Val(S)
Error : Unknown command

Any ideas out there?
Thanks
Mike
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1646
Posted: 02:40am 29 Jul 2020
Copy link to clipboard 
Print this post

VAR is a command, you cannot use it as a variable name. I'm surprised that you can get away with declaring it.

Bill
Keep safe. Live long and prosper.
 
mikedownunder

Newbie

Joined: 03/03/2016
Location: Australia
Posts: 26
Posted: 05:27am 31 Jul 2020
Copy link to clipboard 
Print this post

I originally constructed this from one of Geoff's projects a couple of years back and all worked well until I made a small change to my hardware. Whilst doing this I also upgraded the firmware in the micro to the latest and I beleive that this is where the problem has arisen.
The error comes from the LCD keypad routine where it saves the 'ENT' key(16) to VAR which obviously is no longer allowed.
Once I changed all variances to Var3 and reinstalled, everything works OK again.
Incidentally this is exactly the same with the Parking Assist software.

Thanks Bill for pointing me in the right direction.
Mike
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1646
Posted: 06:45am 31 Jul 2020
Copy link to clipboard 
Print this post

You're welcome Mike and thanks for responding. I think there are a few of those gotchas from old programs. I just checked the code on Geoff's site for the parking assistant and it's still there.

Bill
Keep safe. Live long and prosper.
 
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