세탁기 표시창
세탁기표시창 sw1 : 동작/정지 sw2:세탁/탈수 sw3:헹굼횟수 #include #include const int dig_sel_pin[4]={8,7,6,5}; const int fnd_pin[7]={9,10,11,12,13,A4,A5}; const int fnd-pat[10][7]={ {0,0,0,0,0,0,0}, //0 {1,0,0,1,1,1,1}, //1 {0,0,1,0,0,1,0}, //2 {0,0,0,0,1,1,0}, //3 {1,0,0,1,1,0,0}, //4 {0,1,0,0,1,0,0}, //5 {0,1,0,0,0,0,0}, //6 {0,0,0,1,1,1,1}, //7 {0,0,0,0,0,0,0}, //8 {0,0,0,1,1,0,0}}; //9 const int sw1_pin=2; con..