Page 27 - MDP2022-3
P. 27

Serial.println("ok");
                    myServo.write(150);//조정가능
                    delay(1000);//시간조절
                    myServo.write(0);//조정가능
                    delay(1000);//시간조절
                    bt=0;
                }
            }
            }


            void  sendToSensorValue()  {
                int  takdo  =  analogRead(A0);
                int  suwee  =  analogRead(A1);
                float  viewTakdo  =  takdo  *  (5.0  /  1024.0);


                suonSensor.requestTemperatures();
                int  suon  =  suonSensor.getTempCByIndex(0);
                BTserial.print(suon);
                BTserial.print("/");
                BTserial.print("/");
                BTserial.print(suwee);
                delay(800);
            }
   22   23   24   25   26   27   28   29   30   31   32