#include <LiquidCrystal.h>
const int rs=9, en=10, d4=8, d5=7, d6=6, d7=5; //numery wyjść
LiquidCrystal lcd(rs,en,d4,d5,d6,d7); // obiekt klasy LC o nazwie lcd

void setup() {
  // put your setup code here, to run once:
  lcd.begin(16,2);//znaki i linie w lcd
  lcd.home(); //kusor na 0,0
  lcd.print("  KITT ");
  lcd.setCursor(0,2);//kusor na 0,0
  lcd.print("knight Rider");
  int b;
for (b=0;b<4;b++);
{
pinMode(b, OUTPUT);
}
//pinMode(1, OUTPUT);
//pinMode(2, OUTPUT);
//pinMode(3, OUTPUT);
//pinMode(4, OUTPUT);
}
int t=130;

void loop() {
for (int a=0; a<4; a++)
{
digitalWrite(a, HIGH);
delay(t);
digitalWrite(a, LOW);
delay(1);
}
for (int a=4; a>0; a--)
{
digitalWrite(a, HIGH);
delay(t);
digitalWrite(a, LOW);
delay(1);}  
}