Seconda settimana

Nella seconda settimana abbiamo aiutato i dipendenti in varie occasioni e abbiamo modificato il codice in modo tale da poter scrivere anche le lettere dell’alfabeto italiano.
Qui di seguito,vi riportiamo la parte di codice cambiata :

switch (num) {
case 0:            // OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
lift(1);
drawTo(bx + 12 * scale, by + 6 * scale);
lift(0);
bogenGZS(bx + 7 * scale, by + 10 * scale, 10 * scale, -0.8, 6.7, 0.5);
lift(1);
break;
case 1:           //IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
lift(1);
drawTo(bx + 2 * scale, by + 2 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);
lift(1);
break;
case 2:              //AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
lift(1);
drawTo(bx + 2 * scale,by + 2 *scale );
lift(0);
drawTo(bx + 8 * scale, by + 20 * scale);delay(500);
drawTo(bx + 14 * scale, by + 2 * scale);delay(500);
lift(1);
drawTo(bx + 3 * scale, by + 11 * scale );delay(500);
lift(0);
drawTo(bx + 12.8 * scale, by + 11 * scale);delay(500);
lift(1);
break;
case 3:             // FFFFFFFFFFFFFFFFFFF
lift(1);
drawTo(bx + 20 * scale, by + 11 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);
drawTo(bx + 2 * scale, by + 2 * scale);
lift(1);
drawTo(bx + 2 * scale, by + 13 * scale);
lift(0);
drawTo(bx + 12 * scale, by + 13 * scale);
lift(1);
break;
case 4:              //TTTTTTTTTTTTTTTTTTTTTTTTTTTTT
lift(1);
drawTo(bx + 10 * scale, by + 2 * scale);
lift(0);
drawTo(bx + 10 * scale, by + 20 * scale);
lift(1);
drawTo(bx + 2 * scale, by + 20 * scale);
lift(0);
drawTo(bx + 20 * scale, by + 20 * scale);
lift(1);
break;
case 5:       //EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
lift(1);
drawTo(bx + 20 * scale, by + 20 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);
drawTo(bx + 2 * scale, by + 2 * scale);
drawTo(bx + 20 * scale, by + 2 * scale);
lift(1);
drawTo(bx + 2 * scale, by + 12 * scale);
lift(0);
drawTo(bx + 20 * scale, by + 12 * scale);
lift(1);
break;
case 6:       //PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
lift(1);
drawTo(bx + 2 * scale, by + 2 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);
drawTo(bx + 12 * scale, by + 20 * scale);
drawTo(bx + 12 * scale, by + 11 * scale);
drawTo(bx + 2 * scale, by + 11 * scale);
lift(1);
break;
case 7:   // Zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
lift(1);
drawTo(bx + 2 * scale, by + 20 * scale);
lift(0);
drawTo(bx + 20 * scale, by + 20 * scale);
drawTo(bx + 2 * scale, by + 2);
drawTo(bx + 20 * scale, by + 2);
lift(1);
break;
case 8:       //GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
lift(1);
drawTo(bx + 20 * scale, by + 20 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);
drawTo(bx + 2 * scale, by + 2 * scale);
drawTo(bx + 20 * scale, by + 2 * scale);
drawTo(bx + 20 * scale, by + 10 * scale);
drawTo(bx + 8 * scale, by + 10 * scale);
lift(1);
break;
case 9:       // DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
drawTo(bx + 2 * scale, by + 2 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);
drawTo(bx + 14 * scale, by + 12 * scale);
drawTo(bx + 2 * scale, by + 2 * scale);
lift(1);
break;
case 10:      //QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
lift(1);
drawTo(bx + 2 * scale, by + 2 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);
drawTo(bx + 12 * scale, by + 20 * scale);
drawTo(bx + 12 * scale, by + 2 * scale);
drawTo(bx + 2 * scale, by + 2 * scale);
lift(1);
drawTo(bx + 7 * scale, by + 6 * scale);
lift(0);
drawTo(bx + 15 * scale, by + 1 * scale);
lift(1);
break;
case 11:      //UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
lift(1);
drawTo(bx + 2 * scale, by + 20 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 2 * scale);
drawTo(bx + 12 * scale, by + 2 * scale);
drawTo(bx + 12 * scale, by + 20 * scale);
lift(1);
break;
case 12:       //HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
lift(1);
drawTo(bx + 2 * scale, by + 2 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);
lift(1);
drawTo(bx + 2 * scale, by + 12 * scale);
lift(0);
drawTo(bx + 18 * scale, by + 12 * scale);
lift(1);
drawTo(bx + 18 * scale, by + 20 * scale);
lift(0);
drawTo(bx + 18 * scale, by + 2 * scale);
lift(1);
break;
case 13:         // LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
lift(1);
drawTo(bx + 2 * scale, by + 20 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 2 * scale);
drawTo(bx + 18 * scale, by + 2 * scale);
lift(1);
break;
case 14:         //MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
lift(1);
drawTo(bx + 2 * scale, by + 2 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);delay(500);
drawTo(bx + 10 * scale, by + 4 * scale);delay(500);
drawTo(bx + 13 * scale, by + 20 * scale);delay(500);
drawTo(bx + 13 * scale, by + 2 * scale);delay(500);
lift(1);
break;
case 15://         NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
lift(1);
drawTo(bx + 2 * scale, by + 2 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);delay(500);
drawTo(bx + 12 * scale, by + 2 * scale);delay(500);
drawTo(bx + 12 * scale, by + 20 * scale);delay(500);
lift(1);
break;
case 16:      //RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
lift(1);
drawTo(bx + 2 * scale, by + 2 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);
drawTo(bx + 20 * scale, by + 20 * scale);
drawTo(bx + 20 * scale, by + 11 * scale);
drawTo(bx + 2 * scale, by + 11 * scale);
drawTo(bx + 20 * scale, by + -10* scale);
lift(1);
break;
case 17:         //VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
lift(1);
drawTo(bx + 2 * scale, by + 20 * scale);
lift(0);
drawTo(bx + 10 * scale, by + 2 * scale);
drawTo(bx + 18 * scale, by + 20 * scale);
lift(1);
break;
case 18: //CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
lift(1);
drawTo(bx + 20 * scale, by + 20 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);
drawTo(bx + 2 * scale, by + 2 * scale);
drawTo(bx + 20 * scale, by + 2 * scale);
lift(1);
break;
case 19://BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
lift(1);
drawTo(bx + 2 * scale, by + 2 * scale);
lift(0);
drawTo(bx + 2 * scale, by + 20 * scale);
drawTo(bx + 17 * scale, by + 9 * scale);
drawTo(bx + 6 * scale, by + 8 * scale);
drawTo(bx + 17 * scale, by + 2.5 * scale);
drawTo(bx + 2 * scale, by + 2 * scale);
lift(1);
break;
case 20: //SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
lift(1);
drawTo(bx + 0 * scale, by + 5 * scale);
lift(0);
bogenGZS(bx + 3 * scale, by + 6 * scale, 6 * scale, -2.5, 2, 1);
drawTo(bx + 3 * scale, by + 20 * scale);
drawTo(bx + 10 * scale, by + 20 * scale);
lift(1);
break;

 

Con queste modifiche abbiamo concluso il nostro progetto arrivando al nostro scopo

Lascia un commento