Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:47 17 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 : Counting Pin

Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 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: Australia
Posts: 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.

Bill
Keep safe. Live long and prosper.
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 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"
 
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