Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void G(){
- for(int i=0;i<250;i++){
- PORTB=B000001;
- PORTD=B00000000;
- delay(1);
- PORTB=B111110;
- PORTD=B11011101;
- delay(1);
- PORTB=B010000;
- PORTD=B11110011;
- delay(1);
- PORTB=B001100;
- PORTD=B11110111;
- delay(1);
- }
- }
- void U(){
- for(int i = 0;i<500;i++) {
- PORTB=B010001;
- PORTD=B00000000;
- delay(1);
- PORTB=B001110;
- PORTD=B11111100;
- delay(1);
- }
- }
- void I(){
- for(int i = 0;i<500;i++) {
- PORTB=B000100;
- PORTD=B00000000;
- delay(1);
- PORTB=B111111;
- PORTD=B11011101;
- delay(1);
- }
- }
- void L(){
- for(int i = 0;i<500;i++) {
- PORTB=B000001;
- PORTD=B10000001;
- delay(1);
- PORTB=B011111;
- PORTD=B11111101;
- delay(1);
- }
- }
- void E(){
- for(int i = 0;i<500;i++) {
- PORTB=B000001;
- PORTD=B10000001;
- delay(1);
- PORTB=B011111;
- PORTD=B11111101;
- delay(1);
- PORTB=B011111;
- PORTD=B11110111;
- delay(1);
- PORTB=B011111;
- PORTD=B11011111;
- delay(1);
- }
- }
- void prettyColors(){
- for(int i=0;i<500;i++)
- PORTB=B111111;
- PORTD=B00000000;
- }
- void setup()
- {
- for(int i=0;i<13;i++){
- pinMode(i, OUTPUT);
- }
- }
- void loop()
- {
- G();
- U();
- I();
- L();
- E();
- }
Advertisement
Add Comment
Please, Sign In to add comment