Using Arduino mini pro with dabble pre set example codes

I am running into an issue with using my Arduino mini pro, I am using Arduino IDE to code and it is up to date, the processor on the mini pro is the Atmega328P - AU 5v 16mhz, this is the exact same processor on the Arduino uno. I am trying to run an example code for the dabble app with the hc-05 Bluetooth board. The example code verifies perfectly fine when the board output is set as an Arduino uno and will upload perfectly fine to an Arduino uno. The problem I am having is that to get the Arduino IDE to communicate with the mini pro, i have to have the board selected as the mini pro and not the UNO. When i go to verify the example code with the board selected as the mini pro, i get a whole set of errors, but only when the board is selected as the mini pro (this is with the board not even attached, only verifying the code on IDE). I have narrowed it down to the library that is in the code include <dabble.h> because that is the only thing that when deleted gives a different set or errors, obviously since it is a library. Nothing is different from the mini pro and the UNO besides a dc input port and a usb to serial converter that comes with the UNO. I have run other codes through IDE to the mini pro so i know that it works, I just have no idea what is included in the library that is causing this so i cant rewrite the library as code. I am open to anything at this point.
for sketch reference it is the gamepad library example for Dabble with Arduino uno. (it's really long so didn't want to put it in here, I will put it in a reply if anyone asks)
Also no red highlighted lines are shown in the code after throwing the error message, which is why i think it is in the included library.

copy of the error codes:

C:\Users\taylo\OneDrive\Documents\Arduino\libraries\Dabble\src\PinMonitorModule.cpp: In member function 'void PinMonitorModule::sendDigitalData()':
C:\Users\taylo\OneDrive\Documents\Arduino\libraries\Dabble\src\PinMonitorModule.cpp:23:26: error: 'n' was not declared in this scope
   digitaldata = new byte[n];
                          ^
C:\Users\taylo\OneDrive\Documents\Arduino\libraries\Dabble\src\PinMonitorModule.cpp:32:51: error: 'digital_pins' was not declared in this scope
   digitaldata[j] = digitaldata[j] + ((digitalRead(digital_pins[j][i]))<<i);
                                                   ^~~~~~~~~~~~
C:\Users\taylo\OneDrive\Documents\Arduino\libraries\Dabble\src\PinMonitorModule.cpp:32:51: note: suggested alternative: 'digitalWrite'
   digitaldata[j] = digitaldata[j] + ((digitalRead(digital_pins[j][i]))<<i);
                                                   ^~~~~~~~~~~~
                                                   digitalWrite
C:\Users\taylo\OneDrive\Documents\Arduino\libraries\Dabble\src\PinMonitorModule.cpp:45:43: error: 'function_id_d' was not declared in this scope
    Dabble.sendModuleFrame(PINMONITOR_ID,0,function_id_d,1,new FunctionArg(n,digitaldata));
                                           ^~~~~~~~~~~~~
C:\Users\taylo\OneDrive\Documents\Arduino\libraries\Dabble\src\PinMonitorModule.cpp:45:43: note: suggested alternative: 'FunctionArg'
    Dabble.sendModuleFrame(PINMONITOR_ID,0,function_id_d,1,new FunctionArg(n,digitaldata));
                                           ^~~~~~~~~~~~~
                                           FunctionArg
C:\Users\taylo\OneDrive\Documents\Arduino\libraries\Dabble\src\PinMonitorModule.cpp: In member function 'void PinMonitorModule::sendAnalogData()':
C:\Users\taylo\OneDrive\Documents\Arduino\libraries\Dabble\src\PinMonitorModule.cpp:53:25: error: 'm' was not declared in this scope
  analog_data = new byte[m];
                         ^
C:\Users\taylo\OneDrive\Documents\Arduino\libraries\Dabble\src\PinMonitorModule.cpp:61:52: error: 'analog_pin' was not declared in this scope
     analog_data[i] = analog_data[i] | ((analogRead(analog_pin[counter]) & 0x0300) / 256);
                                                    ^~~~~~~~~~
C:\Users\taylo\OneDrive\Documents\Arduino\libraries\Dabble\src\PinMonitorModule.cpp:61:52: note: suggested alternative: 'analog_data'
     analog_data[i] = analog_data[i] | ((analogRead(analog_pin[counter]) & 0x0300) / 256);
                                                    ^~~~~~~~~~
                                                    analog_data
C:\Users\taylo\OneDrive\Documents\Arduino\libraries\Dabble\src\PinMonitorModule.cpp:67:43: error: 'function_id_a' was not declared in this scope
    Dabble.sendModuleFrame(PINMONITOR_ID,0,function_id_a,1,new FunctionArg(m,analog_data));
                                           ^~~~~~~~~~~~~
C:\Users\taylo\OneDrive\Documents\Arduino\libraries\Dabble\src\PinMonitorModule.cpp:67:43: note: suggested alternative: 'FunctionArg'
    Dabble.sendModuleFrame(PINMONITOR_ID,0,function_id_a,1,new FunctionArg(m,analog_data));
                                           ^~~~~~~~~~~~~
                                           FunctionArg

exit status 1

Compilation error: exit status 1

@Delta_G
Gamepad Module - STEMpedia Education -link to the library
I thought i posted the compiler output in the previous post, I posted everything that was in the output at the bottom. Is it somewhere else?

#define CUSTOM_SETTINGS
#define INCLUDE_GAMEPAD_MODULE
#include <Dabble.h>
void setup() {
  // put your setup code here, to run once:
  Serial.begin(250000);      // make sure your Serial Monitor is also set at this baud rate.
  Dabble.begin(9600);      //Enter baudrate of your bluetooth.Connect bluetooth on Bluetooth port present on evive.
}

void loop() {
  Dabble.processInput();             //this function is used to refresh data obtained from smartphone.Hence calling this function is mandatory in order to get data properly from your mobile.
  Serial.print("KeyPressed: ");
  if (GamePad.isUpPressed())
  {
    Serial.print("UP");
  }

  if (GamePad.isDownPressed())
  {
    Serial.print("DOWN");
  }

  if (GamePad.isLeftPressed())
  {
    Serial.print("Left");
  }

  if (GamePad.isRightPressed())
  {
    Serial.print("Right");
  }

  if (GamePad.isSquarePressed())
  {
    Serial.print("Square");
  }

  if (GamePad.isCirclePressed())
  {
    Serial.print("Circle");
  }

  if (GamePad.isCrossPressed())
  {
    Serial.print("Cross");
  }

  if (GamePad.isTrianglePressed())
  {
    Serial.print("Triangle");
  }

  if (GamePad.isStartPressed())
  {
    Serial.print("Start");
  }

  if (GamePad.isSelectPressed())
  {
    Serial.print("Select");
  }
  Serial.print('\t');

  int a = GamePad.getAngle();
  Serial.print("Angle: ");
  Serial.print(a);
  Serial.print('\t');
  int b = GamePad.getRadius();
  Serial.print("Radius: ");
  Serial.print(b);
  Serial.print('\t');
  float c = GamePad.getXaxisData();
  Serial.print("x_axis: ");
  Serial.print(c);
  Serial.print('\t');
  float d = GamePad.getYaxisData();
  Serial.print("y_axis: ");
  Serial.println(d);
  Serial.println();
}

@Delta_G I found the code but when I try to edit it, it says "cannot edit in read-only editor", how do i get around that? I tried looking up but it came up with nothing useful.

@Delta_G Ok I figured it out, that did work, I spent 30 min tracing down the correct file and trying to figure out how to edit it with a CS major that i know cause this is wayyyyyyyy more in depth than I care to be but i need this for a project. I tried what you said and adding the || defined(ARDUINO_AVR_PRO) however that did not work, but i just deleted that and then changed the UNO to PRO in the previous statement to where it looked like this: #if defined (ARDUINO_AVR_PRO) and it worked perfectly fine. I guess it just couldn't define two things at once??? Idk but its working now so im happy. Appreciate the help!!!!!!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.