How to make a momentary pulse

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

Which times do you plan?

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

The Grove-Button have a event api(websocket).
You can use it to check the button is press or not.

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