You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2019. It is now read-only.
LED devices don't have delay_on/delay_off properties #62
You have to set trigger to timer in order to create the delay_on and delay_off attributes in sysfs. This has some unfortunate side effects. See ev3dev/ev3dev#225 for more information.
My advice would be to implement your own blinking function rather than relying on the timer trigger.
The leds class is part of the mainline linux kernel, so it has not changed and is not likely to. You can use the timer trigger. I just don't recommend it because of permissions and race condition issues with the dynamic sysfs attributes (delay_on/delay_off).
Activity
dlech commentedon Jul 21, 2015
You have to set
triggertotimerin order to create thedelay_onanddelay_offattributes in sysfs. This has some unfortunate side effects. See ev3dev/ev3dev#225 for more information.My advice would be to implement your own blinking function rather than relying on the
timertrigger.topikachu commentedon Aug 3, 2015
@dlech Is https://github.com/ev3dev/ev3dev/wiki/Using-the-LEDs out of date? It still has delay_on/off
dlech commentedon Aug 4, 2015
The leds class is part of the mainline linux kernel, so it has not changed and is not likely to. You can use the
timertrigger. I just don't recommend it because of permissions and race condition issues with the dynamic sysfs attributes (delay_on/delay_off).dlech commentedon Aug 4, 2015
I suppose we should add a link to the issue I mentioned above to that page though.
topikachu#62: add force flush meta attribute for ev3dev object attrib…
Merge pull request #64 from aleh-arol/master