
Unter dem etwas kryptischen Begriff ‘Chartreuse Rapid Prototyping LED Breadboard for Arduino‘ findet man eine nützliche LED Statusanzeige für die Arduino Ports. Sechs SMS LED samt Vorwiderstand können direkt auf die die Pfostenbuchse des Arduino gesteckt werden. Der 7. Pin ist die gemeinsame Masse. Das Ding ist ideal um auf kleinsten Raum ohne Verkabelung den Port-Pegel anzuzeigen. Der kleine Helfer kann natürlich auch auf das Breadboard gesteckt werden.
Die Helligkeit ist SMD bedingt nicht riesig, aber ausreichend.
Die LED´s gibt es in verschiedenen Farben, auch als Ampel angeordnet. Ein Fünferpack kostet so 6€ von ebay.com. Kostenlose Lieferung weltweit.
// test loop for Arduino Mega const int pause = 300; // delay const int ledCount = 12; // the number of LEDs in the bar graph int ledPins[] = { 8, 9, 10, 11, 12, 13, 42, 44, 46, 48, 50, 52 }; // an array of pin numbers to which LEDs are attached void setup() { // loop over the pin array and set them all to output: for (int thisLed = 0; thisLed < ledCount; thisLed++) { pinMode(ledPins[thisLed], OUTPUT); } } void loop() { // loop over the LED array: for (int thisLed = 0; thisLed < ledCount; thisLed++) { digitalWrite(ledPins[thisLed], HIGH); delay(pause); } for (int thisLed = 0; thisLed < ledCount; thisLed++) { digitalWrite(ledPins[thisLed], LOW); delay(pause); } }