ev3dev / ev3dev-lang

(deprecated) language bindings for ev3dev sensors, motors, LEDs, etc.
GNU General Public License v2.0
56 stars 39 forks source link

[cpp][py] led.set_{on,off}_delay() only work before led.flash() is called #92

Closed ddemidov closed 9 years ago

ddemidov commented 9 years ago

I have only checked this from Python API for now:

>>> from ev3dev import *
>>> led.red_right.trigger = 'timer'
>>> led.red_right.set_on_delay(200) # Both of these
>>> led.red_right.set_off_delay(200) # work as expected
>>> led.red_right.flash(200)
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-7-2c6e48ea06cd> in <module>()
----> 1 led.red_right.flash(200)

RuntimeError: No such device
>>> led.red_right.set_on_delay(200)
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-8-e18c136e252c> in <module>()
----> 1 led.red_right.set_on_delay(200)

RuntimeError: No such device
ddemidov commented 9 years ago

Probably related to ev3dev/ev3dev#225