prog.cpp:5:15: error: 'A0' was not declared in this scope
const int POT=A0;
^
prog.cpp: In function 'void setup()':
prog.cpp:13:3: error: 'Serial' was not declared in this scope
Serial.begin(9600);
^
prog.cpp:14:15: error: 'OUTPUT' was not declared in this scope
pinMode (R, OUTPUT );
^
prog.cpp:14:22: error: 'pinMode' was not declared in this scope
pinMode (R, OUTPUT );
^
prog.cpp:17:18: error: 'INPUT' was not declared in this scope
pinMode (BOTO, INPUT);
^
prog.cpp: In function 'void loop()':
prog.cpp:21:28: error: 'digitalRead' was not declared in this scope
polsador=digitalRead(BOTO);
^
prog.cpp:26:23: error: 'analogWrite' was not declared in this scope
analogWrite(B, 0);
^
prog.cpp:32:9: error: 'Serial' was not declared in this scope
Serial.println("red");
^
prog.cpp:38:7: error: 'Serial' was not declared in this scope
Serial.println("verd");
^
prog.cpp:43:7: error: 'Serial' was not declared in this scope
Serial.println("blau");
^
prog.cpp:47:25: error: 'analogRead' was not declared in this scope
val = analogRead(POT);
^
prog.cpp:49:35: error: 'map' was not declared in this scope
val = map(val, 0, 1023, 0, 255);
^
prog.cpp:50:25: error: 'analogWrite' was not declared in this scope
analogWrite(led, val);
^
prog.cpp:51:5: error: 'Serial' was not declared in this scope
Serial.println(val);
^
prog.cpp:52:14: error: 'delay' was not declared in this scope
delay(100);
^