void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(11, OUTPUT);
pinMode(A0, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int dataADC = analogRead(A0);
float pwm = dataADC / 4;
analogWrite(11, pwm);
Serial.print("ADC:");
Serial.print(dataADC);
Serial.print(" PWM:");
Serial.println(pwm);
}