Created Fri, 30 Aug 2013 16:08:48 +0000 by bazwaldo1
Fri, 30 Aug 2013 16:08:48 +0000
Hi, very new here so forgive me.
I have an arduino program that uses the serial.parseInt() command to get data from a custom piece of software running on my PC.
This command works fine when using the arduino UNO board but I have recently tried to upgrade the hardware to the DP32 but still use the same software program.
However I now get the following error message when compliing within the MPIDE.
error: 'class HardwareSerial' has no member named 'parseInt'
Any help in resolving this issue would be greatly appreciated.
:ugeek:
Fri, 30 Aug 2013 21:14:55 +0000
The chipKIT is compatible with Arduino 0023. The parseInt() function was introduced in Arduino 1.0.0 (or shortly after). As such there is no parseInt() function on the chipKIT (yet).
You will have to read your data into a character array and then use atoi() to convert it into an integer (the old school way).