Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arduino - tutorijali, pitanja, primjeri i projekti
#76
Funkcija void pickNumber(int x) nije dobra. Treba da izgleda ovako:


void pickNumber(int x){
  switch(x){
    case 0: zero(); break;
    case 1: one(); break;
    case 2: two(); break;
    case 3: three(); break;
    case 4: four(); break;
    case 5: five(); break;
    case 6: six(); break;
    case 7: seven(); break;
    case 8: eight(); break;
    case 9: nine(); break;
    default: break;
  } 
}
Reply


Messages In This Thread
RE: Arduino - tutorijali, pitanja, primjeri i projekti - by gorankg - 10-08-2016, 07:21 PM

Forum Jump:


Users browsing this thread: 35 Guest(s)