Open aifer2007 opened 6 years ago
I try the code and get the same error
var redLeft = new ev3dev.LED("ev3:left:red:ev3dev");
var redRight = new ev3dev.LED("ev3:right:red:ev3dev");
redLeft.flash(1,1);
redRight.flash(1,1);
But the code below works well.
var redLeft = new ev3dev.LED("ev3:left:red:ev3dev");
var redRight = new ev3dev.LED("ev3:right:red:ev3dev");
redLeft.on();
redRight.on();
I think there are two problems here. First, there is a known issue with the LED drivers where the delay_*
properties are only created once trigger
is set, and there is a small delay between those two events occurring (https://github.com/ev3dev/ev3dev/issues/225). Second, I think the ordering is wrong here:
So, as a stopgap, I'd suggest adding ev3dev.Ev3Leds.redLeft.trigger = "timer"
(and likewise for other LEDs) to the top of your program.
Hi,
I install ev3dev on my LEGO EV3.
My code:
Error reported:
The I check /sys/class/leds/ev3:left:red:ev3dev for delay_on :
There is no delay_on file.
What should I do?