Receive for 30msc Low then send LOW for 30 msc and back to HIGH

I just print from video, no links to copy it

tips how to improve your posting style

I have offline program on Ukraine language, so translation by google
“When you press the key in the switch block of the central console, a low (ground) signal is sent to the wire to the ECU of the active seat for 30 msec. The computer activates the active seat and also turns on the wire for 30 msec to low (ground). After that, it turns on
functional LED in the key. In the event of a break in the wire to the ECU of the active seat or a malfunction of the active seat, the return message is not received
the LED does not turn on.

When the active seat is turned off, no feedback from the computer is received.”

The code does what it does. Perhaps during copying the code off the youtube video you made a few errors. I scrubbed the video slowly... I am not the one to squint at screenshots of code in any effort to help.

One function that looks like you missed calling it in some circumstances where it should be called is outputOff() - it is called if the pulse is the wrong duration, but there is no complementary outputOff() to match the call to outputOn().

I added such a call to the transition back to state 0. So when I press the button for 30 ms, I get a 30 ms echo pulse, and I see the output line go on and then off.

In the absence of proper documentation, that is all and what I can say. Good luck.

a7

Ok thanks

Thanks for everyone who spent time for me, find problem🥲 code was good, just need to add ground from car