void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
int leo=analogRead(A0);
analogWrite(3, map(leo,0,1023,0,255));
Serial.print(leo);
}
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
int leo=analogRead(A0);
analogWrite(3, map(leo,0,1023,0,255));
Serial.print(leo);
}