Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:02 29 Nov 2024 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 : How to change a touch  OPTION when it throws "error: Pin 1 is reserved

Author Message
shoots

Newbie

Joined: 31/07/2011
Location: Australia
Posts: 32
Posted: 10:51pm 07 Apr 2023
Copy link to clipboard 
Print this post

I have been trying to reconfigure the screen options on a MM Plus.It is a SSD1963 screen. It was operating fine in portrait for some time but I have to now go to landscape. Because of how it is mounted, cable routing etc I also have to use the reverse option so I used RL in the option line. When I try to send the OPTION TOUCH 1, 40, 39 instruction I receive the error message "Pin 1 is reserved on startup".

I did send a cleared program beforehand to remove any startup commands- to no avail.
This was using MMedit

The screen display has rotated to the correct reverse landscape orientation, it is just the touch function that is the issue.

I must admit the sending option commands has been a challenge over various projects and it seems pretty hit and miss getting a win so I suspect I am doing something wrong sometimes.

Any suggestions please.

Thank you
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2140
Posted: 11:24pm 07 Apr 2023
Copy link to clipboard 
Print this post

Use OPTION LIST to see if anything else is reserving that pin. On the 64 pin MM+ pin 1 is used by the SSD1963.

Try:-
OPTION TOUCH DISABLE
Then
OPTION TOUCH 40, 39, 1  'assuming you are using 1 for "click" function otherwise omit it.

MM+ Manual
"Touch Support
The Micromite User Manual describes how to setup and calibrate a resistive touch sensitive panel. This section
concentrates on the additional features offered by the Micromite Plus.
Configuring Touch
To configure the Micromite Plus for a touch panel the OPTION TOUCH command is used:
OPTION TOUCH T_CS pin, T_IRQ pin [, click pin]
Where:
'T_CS pin' and 'T_IRQ pin' are the Micromite I/O pins to be used for chip select and touch interrupt respectively
(any free pins can be used).
'click pin' is exclusive to the Micromite Plus and specifies an I/O pin that will be driven briefly high when a
screen control is touched. This can be used to drive a small Piezo buzzer which will produce a click sound
providing an audible feedback when a GUI element on the screen is activated (see the section "Graphical User
Interface Commands")."
.
Edited 2023-04-08 09:54 by phil99
 
shoots

Newbie

Joined: 31/07/2011
Location: Australia
Posts: 32
Posted: 11:49pm 07 Apr 2023
Copy link to clipboard 
Print this post

Thank you phil99. That worked a treat. I did the disable command and then re-entered the OPTION TOUCH 1, 40, 39 then did the calibration and all working

Cheers
 
Print this page


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

© JAQ Software 2024