Arduino Nano ESP32 DAC pin

Yes! The following digrams validate the above comment.

Any idea why is the following sketch not being compiled in Nano ESP32; but, it is compiled in ESP32 classic? (dacWrite() is not recognied under Nano ESP32)

#include <esp32-hal-dac.h>
#define DAC1 12  //an attempt to route the DAC1's output on DPin-12 of NanoESP32

void setup()
{
  Serial.begin(115200);

}

void loop()
{ // Generate a Sine wave
  // int Value = 255; //255= 3.3V 128=1.65V
  for (int i = 0; i < 255; i = i + 10)
  {
    dacWrite(DAC1, i);

    delay(1000);
  }
}