#define Pot A0
int dtAnalog;
byte hslMap;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(11, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
dtAnalog = analogRead(Pot);
Serial.print("Data potesiometer");
Serial.println(dtAnalog);
hslMap = map(dtAnalog,0,1023,0,255);
analogWrite(11,hslMap);
delay(20);
}