Hi
I am trying to set up a sound as part of a result of other inputs. I have copied the code from a more complex program and deleted or commented out the wifi etc.
I have figured out most of my issues so far by searching this forum, but nothing comes up with detailed search and can't spot anything relevant on wider searches, even though I am sure this is quite simple. also searching for D3 in original code only shows this line.
code as follows
error is 'D3' was not declared in the scope
#include <DFPlayer_Mini_Mp3.h>
#include <Wire.h>
#include <MMA8453_n0m1.h>
#include <SoftwareSerial.h>
#define PLAYER_PIN D3
#define LOCK_PIN D7
int side = -1; // side of the cube
bool winner = false;
MMA8453_n0m1 accel;
int sideOld=-1; //502134
int codeOk[6]={4,3,2,1,5,0}; // correct combination
int codeIn[6]={-1,-1,-1,-1,-1,-1};
byte sound = 28; // volume level
SoftwareSerial mySerial(99, PLAYER_PIN); // RX, TX
void setup()
any guidance appreciated