Compare to “blink” example, This example have some random effect. You don’t know when the little led blink next time.
You need an arduino board, a led module.
attach led to arduino port D13
code generated from ArduBlock :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
void __ardublockDigitalWrite(int pinNumber, boolean status) { pinMode(pinNumber, OUTPUT); digitalWrite(pinNumber, status); } void setup() { } void loop() { delay( random( 200 , 2000 ) ); __ardublockDigitalWrite(13, HIGH); delay( 50 ); __ardublockDigitalWrite(13, LOW); } |
6,193 total views, 5 views today