Page 1 of 1

How to make a momentary pulse

Posted: Fri Apr 29, 2016 1:33 pm
by garystofer
I'm trying to use a digital pin for a momentary signal, but I can't find anything in the API that would let me do that. I would like a way to raise a signal which then automatically resets to zero after a certain time which I define as an argument in the call.

Can you point me at documentation or code that would let me implement such a feature if it doesn't already exist.

Thanks

Gary

Re: How to make a momentary pulse

Posted: Mon May 02, 2016 2:40 am
by Wio
Which times do you plan?

Re: How to make a momentary pulse

Posted: Tue May 03, 2016 10:28 am
by garystofer
A range between 100 ms and 10 seconds would be sufficient for what I'm planning on using it. Basically trying to simulate a push button press.

Thanks

Re: How to make a momentary pulse

Posted: Wed May 04, 2016 11:44 am
by teng.wang
The Grove-Button have a event api(websocket).
You can use it to check the button is press or not.

Re: How to make a momentary pulse

Posted: Thu May 05, 2016 4:39 am
by garystofer
No, you don't understand. I don't want to check if a button is pressed or not, I want a means of making a self resetting signal out on the WIO. A digital pin that autonomously clears itself after a given time, to be controlled with a simple DO button interface. No feedback -- no handshaking -- no event .

Gary