Has anyone besides me had issues using Serial.write with the proMicro???
I am getting errors that land specifically on a line of code
Serial.write(id,2);
I am communicating I2C with a 9DOF stick but the error does not appear when I load the same sketch into an UNO so I am assuming that it has to do with how the ProMicro is similar to the leonardo in that it has a Serial and Serial1 outputs. I am using data collected by the ProMicro sent serial via USB to my pc for use in Processing...
I'll post the exact error message and code as soon as I get back to my PC tonight but thought Id start the thread in case this info is enough for some of you more experienced users to identify the problem...
Whats strange is that if I search and replace all of the Serial. with Serial1. it will compile fine.
The problem is that I am getting serial data from the USB in Processing and Serial1 is not the USB port...
the error is: no matching function for call to 'Serial_::write(byte [2], int)'
Razor_AHRS.pde: In function 'void loop()':
Razor_AHRS:535: error: no matching function for call to 'Serial_::write(byte [2], int)'
C:\Users\fxmech\Documents\Arduino\hardware\proMicro\cores\arduino/USBAPI.h:41: note: candidates are: virtual size_t Serial_::write(uint8_t)
Output.pde: In function 'void output_angles()':
Output:12: error: no matching function for call to 'Serial_::write(byte*, int)'
C:\Users\fxmech\Documents\Arduino\hardware\proMicro\cores\arduino/USBAPI.h:41: note: candidates are: virtual size_t Serial_::write(uint8_t)
Output.pde: In function 'void output_sensors_binary()':
Output:92: error: no matching function for call to 'Serial_::write(byte*, int)'
C:\Users\fxmech\Documents\Arduino\hardware\proMicro\cores\arduino/USBAPI.h:41: note: candidates are: virtual size_t Serial_::write(uint8_t)
Output:93: error: no matching function for call to 'Serial_::write(byte*, int)'
C:\Users\fxmech\Documents\Arduino\hardware\proMicro\cores\arduino/USBAPI.h:41: note: candidates are: virtual size_t Serial_::write(uint8_t)
Output:94: error: no matching function for call to 'Serial_::write(byte*, int)'
C:\Users\fxmech\Documents\Arduino\hardware\proMicro\cores\arduino/USBAPI.h:41: note: candidates are: virtual size_t Serial_::write(uint8_t)