Page 22 - 2020학년도 MDP과제발표회 자료집 (통신과) (3)
P. 22

}
            }


            void  setplane  (char  axis,  unsigned  char  i)

            {
                    switch  (axis)
                    {
                            case  AXIS_X:
                                    setplane_x(i);

                                    break;

                          case  AXIS_Y:
                                    setplane_y(i);
                                    break;



                          case  AXIS_Z:
                                    setplane_z(i);
                                    break;
                    }

            }


            void  clrplane  (char  axis,  unsigned  char  i)
            {
                    switch  (axis)

                    {
                            case  AXIS_X:
                                    clrplane_x(i);
                                    break;


                          case  AXIS_Y:
                                    clrplane_y(i);
                                    break;


                          case  AXIS_Z:

                                    clrplane_z(i);
                                    break;
                    }
            }
            // 채우기

            void  fill  (unsigned  char  pattern)
            {


                                                         -  21  -
   17   18   19   20   21   22   23   24   25   26   27