[ arduino ] 모터 제어하기 > arduino

본문 바로가기

사이트 내 전체검색

arduino

[ arduino ] 모터 제어하기

작성일 21-01-21 17:51

페이지 정보

작성자 웹지기 조회 2,042회 댓글 0건

본문

모터 제어하기

 

#include<Servo.h>

Servo myservo;


void setup() {

  myservo.attach(8);  

}


void loop() {

  myservo.write(0);

  delay(1000);

  myservo.write(179);

  delay(1000);

}

 

 


추천0

비추천 0

댓글목록

등록된 댓글이 없습니다.

전체 25건 1 페이지

이미지 목록

게시물 검색
Copyright © 즐거운 코딩 생활 ( funyphp ). All rights reserved.
PC 버전으로 보기