With a parallel circuit just make sure the combined power draw of your Leds is less than 20mA.... Assuming they do only draw 1mA, I still wouldn't use more than 10 (in parallel) on a single digital pin....
#LED is on Pin D0
set(D0,ON) # turn on the leds
sleep(2000)
set(D0,OFF) # turn off the leds
or
#LED is on Pin D0
# turn on slow
$dim=1
repeatuntil($dim=101)
PWM(D0,$dim)
print($dim)
sleep(50)
$dim++
endrepeatuntil
# turn off slow
$dim=100
repeatuntil($dim=0)
PWM(D0,$dim)
print($dim)
sleep(50)
$dim--
endrepeatuntil
Just to chime in about the 20mA limit on I/O pins. This is the case with most microcontroller boards out there but the ez-bv4 actually has current limiting resistors on the I/O pins limiting the current to ~10mA to allow you to hook up LEDs directly to the I/O pins if you'd like.
ah all possitif one side and negatiff to. so avery positif has two red wires. i wonder what you can do in a script whit these leds.
thanks
With a parallel circuit just make sure the combined power draw of your Leds is less than 20mA.... Assuming they do only draw 1mA, I still wouldn't use more than 10 (in parallel) on a single digital pin....
or
i got 8 red ones very low.they come from 3 dollar for 100 pieces on ebay
am gonna test your script to. i found this.
this is awesome
led blinking
i try the script that richard r wrote for me and it looks great. so i made a video how it looks.
Just to chime in about the 20mA limit on I/O pins. This is the case with most microcontroller boards out there but the ez-bv4 actually has current limiting resistors on the I/O pins limiting the current to ~10mA to allow you to hook up LEDs directly to the I/O pins if you'd like.
jeremie
thanks for telling.i can use the flikkering leds,they are just 1Ma.
@nomad.
You done well with the LED's. Looking good.
@Jeremie.
So the digital signal pins are limited to 10Ma then? I was lead to believe it was 20Ma as well.