int pd = 10;
int poti = 0;
void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello, ESP32-C6!");
}
void loop() {
  // put your main code here, to run repeatedly:
  delay(500); // this speeds up the simulation
      pd = map((analogRead(poti)),0,4095,3600,50);
      Serial.println(pd);
}
Loading
esp32-c6-devkitc-1
esp32-c6-devkitc-1