Wie wäre es mit den entsprechenden Datenrichtungs- und Portregistern ? Steht auch im Manual.
http://www.arduino.cc/en/Reference/PortManipulationSometimes you might need to set multiple output pins at exactly the same time. Calling digitalWrite(10,HIGH); followed by digitalWrite(11,HIGH); will cause pin 10 to go HIGH several microseconds before pin 11, which may confuse certain time-sensitive external digital circuits you have hooked up. Alternatively, you could set both pins high at exactly the same moment in time using PORTB |= B1100;
Grüße,
Daniel
so schauen wir mal ob das mit "for" funkt.
danke crissa
Lesezeichen