From 9f7b71abc695e3d31da8427674d9d785d11b5404 Mon Sep 17 00:00:00 2001 From: Eve Entropia Date: Fri, 16 Apr 2010 16:06:02 +0200 Subject: [PATCH] blinkenfoo von jack --- .../blinkenfoo_5Leds/blinkenfoo_5Leds.pde | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projekte/jackmcblink/blinkenfoo_5Leds/blinkenfoo_5Leds.pde diff --git a/projekte/jackmcblink/blinkenfoo_5Leds/blinkenfoo_5Leds.pde b/projekte/jackmcblink/blinkenfoo_5Leds/blinkenfoo_5Leds.pde new file mode 100644 index 0000000..d9b5b31 --- /dev/null +++ b/projekte/jackmcblink/blinkenfoo_5Leds/blinkenfoo_5Leds.pde @@ -0,0 +1,30 @@ +int i,foo; +boolean b; + +void setup() { + + pinMode(2, OUTPUT); + pinMode(3, OUTPUT); + pinMode(4, OUTPUT); + pinMode(5, OUTPUT); + pinMode(6, OUTPUT); + pinMode(7, OUTPUT); + pinMode(8, OUTPUT); + pinMode(9, OUTPUT); + + b = false; + foo = 0; + + +} + +void loop() { + delay(random(25)*0+15); + for (i = 0; i<=7; i++) { + digitalWrite(i+2,random(2)); + } +// b = !b; + + foo++; + +}