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