Pi4J / pi4j-v1

DEPRECATED Java I/O library for Raspberry Pi (GPIO, I2C, SPI, UART)
http://www.pi4j.com
Apache License 2.0
1.31k stars 447 forks source link

Pin.blink() method does not turn off with Pin.low() #437

Closed mtmustski closed 3 years ago

mtmustski commented 5 years ago

I set a Pin to blink every second with pin.blink(1000) however, when I try to stop the blinking with pin.low(), the pin still continues to blink. Could this be related to #271?

savageautomate commented 3 years ago

Closed.

pin.low() will not stop the blink operation (occurring inside an executor thread), so you must call pin.blink(0) to stop the blinking operation.