Using Slider widget to control DAC on ESP32 Thing (Sparkfun)

Hello guys,
I am trying to control my DAC on my ESP32 which is on pins 25, and 26. Unfortunately you can only control the slider using virtual pins so I’m having trouble completing this. Currently what I have together is this (excluding the wifi stuff), however it doesn’t seem to help.

  int pinData = param.asInt();
  sigmaDeltaWrite(0, pinData);

// sigmaDelta Digital to Analog (DAC) Channel 1
  int pinData = param.asInt();
  sigmaDeltaWrite(1, pinData);

void setup()
  // Debug console

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "", 8442);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);

  // Setup physical button pin (active low)
  pinMode(btnPin, INPUT_PULLUP);

  timer.setInterval(500L, buttonLedWidget);

   /* setup ESP32 pin modes */
  /* Setup two DAC channels GPIO25=ADC18, GPIO26=ADC19 */
  /* setup channel 0 with frequency 312500 Hz */
  sigmaDeltaSetup(0, 312500);
  //attach pin ADC18/GPIO25 to channel 0
  //initialize channel 0 to off
  sigmaDeltaWrite(0, 0);
  //setup channel 1 with frequency 312500 Hz
  sigmaDeltaSetup(1, 312500);
  //attach pin ADC19/GPIO26 to channel 1
  //initialize channel 1 to off
  sigmaDeltaWrite(1, 0);

Thanks For all the help in advance!

That is a nice setup void()… but not sure what you want anyone here to do about it :wink: … this is not a code factory or “How to program” teaching site.

Anyhow, Welcome to the Blynk Forums. We well help you with specific Blynk related questions as you learn, but you are correct in that you need to first learn how to use virtual pins before you are going to get much further.

I recommend you start off with the Documents, Help center and Sketch Builder (links all at the top of this page) and work your way through the basics before tackling anything more complicated.

Start at the beginning…

Read up about virtual pins:

And reading sensor data:

Experiment with the examples:

And most importantly…