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.
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 2006
Posted: 10:59pm 28 Dec 2020
Copy link to clipboard
Print this post
I have a pin set to CIN, how can I set an initial value for the pin. I have tried Pin(15)=number but it doesn't work. I am trying to save the value of the pin and then reinstate it later."It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1646
Posted: 11:17pm 28 Dec 2020
Copy link to clipboard
Print this post
I don't think you can set it to a particular value. You can set it to zero by issuing the SETPIN command again though. Can you use a variable as an offset and add the count from the pin to another variable.
BillKeep safe. Live long and prosper.
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 2006
Posted: 11:25pm 28 Dec 2020
Copy link to clipboard
Print this post
Yes, that is what I was doing but I was changing a few things and thought I would save the Pin value. I'll revert to the old way. Thanks."It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"