jandelgado / jled

Non-blocking LED controlling library for Arduino and friends.
MIT License
331 stars 55 forks source link

add: pause and resume #102

Closed jandelgado closed 1 year ago

jandelgado commented 1 year ago

call Pause to pause the effect. A later call of Resume continues where Pause left off. Usage:

auto state = led.Pause()
// ... and later on
led.Resume(state)
coveralls commented 1 year ago

Coverage Status

Coverage increased (+0.2%) to 95.146% when pulling dcc30671015b2cf7d3e5288077fc23b1a1280744 on pause_and_resume into 6a0e1d217a4249d51346effdb3ce940b7fc58628 on master.