MakerWorld
Characters
The Greedy Cat
by Wayne
1
Downloads
3
Likes
0
Makes
A small production, children will like it very much. Material list: 1 Arduino UNO R3 1 SG90 2 LEDs 1 button Please implement it with reference to the following code. 一个小制作,小朋友会很喜欢 物料清单:Arduino UNO R3 1个SG90 1个LED 2个按钮 1个 请把参考以下代码实现 #include Servo myservo; int led1Pin=8;int led2Pin=11;int buttonPin=13;int i;int val=0;int val1=0;void setup() {Serial.println("Run control");myservo.attach(2);Serial.begin(9600);pinMode(led1Pin,OUTPUT);pinMode(buttonPin,INPUT);}void loop() {val=digitalRead(but
Sign in to leave a comment
Sign in