|
Forum Index : Microcontroller and PC projects : Problem with ILI9341 'keypad'
| Author | Message | ||||
| mikedownunder Newbie Joined: 03/03/2016 Location: AustraliaPosts: 26 |
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: AustraliaPosts: 1646 |
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: AustraliaPosts: 26 |
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: AustraliaPosts: 1646 |
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. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |