質問するログイン新規登録

質問編集履歴

1

2016/09/20 02:20

投稿

msyk23p2
msyk23p2

スコア14

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,4 @@
1
- degree=A*180.0/PI;の所で'degree'was not declared in this scopeとエラーがでます。
1
+ servo.write(A);の所で'A'was not declared in this scopeとエラーがでます。
2
2
  どのように改善すればよいでしょうか。回答お願いします
3
3
 
4
4
  #include<stdio.h>
@@ -9,7 +9,7 @@
9
9
  void setup(){
10
10
 
11
11
  servo.attach(9);
12
- double a,b,c,A;
12
+ double a,b,c,A,degree;
13
13
  a=10;
14
14
  b=20;
15
15
  c=30;