Closed tap6 closed 2 years ago
This is an automatic reply, confirming that your e-mail was received.Thank you----------------------------------------------------------您的E-mail我已经收到,如果看到定会很快给您答复。
It isn't important with board you are using, just change it to what you need
I didn't modify your source code, I installed direct compilation from Arduino library, and then I got an error. I looked for relevant information on the Internet. They said that the selected development board model may be wrong. My software and hardware environment is Arduino: 1.8.19 (Windows 10), development board: "Arduino Leonardo". I'm wondering what development board do you use. Look forward to your reply.
Here is the Error Output ` Arduino: 1.8.19 (Windows 10), development board: "Arduino Leonardo" basic_ working:12:14: error: 'Serial3' was not declared in this scope
define bike Serial3
^ C:\Users\Administrator\Desktop\Keyword-Protocol-2000-master\examples\basic working\basic working. ino:19:14: note: in expansion of macro 'bike' KWP2000 ECU(&bike, TX_PIN, YOURMOTORBIKE); ^~~~ C:\Users\Administrator\Desktop\Keyword-Protocol-2000-master\examples\basic working\basic_ working. ino:12:14: note: suggested alternative: 'Serial'
define bike Serial3
^ C:\Users\Administrator\Desktop\Keyword-Protocol-2000-master\examples\basic working\basic working. ino:19:14: note: in expansion of macro 'bike' KWP2000 ECU(&bike, TX_PIN, YOURMOTORBIKE); ^~~~ basic working:19:28: error: 'YOUR_ MOTORBIKE' was not declared in this scope KWP2000 ECU(&bike, TX_PIN, YOURMOTORBIKE); ^
~~~~~ C:\Users\Administrator\Desktop\Keyword-Protocol-2000-master\examples\basic working\basic working. ino: In function 'void setup()': basic working:23:56: error: no matching function for call to 'KWP2000::enableDebug(Serial_, debug_enum, long int)' ECU. enableDebug(&debug, DEBUG_LEVELVERBOSE, 115200); ^ In file included from C:\Users\Administrator\Desktop\Keyword-Protocol-2000-master\examples\basic working\basic_ working. ino:2:0: C:\Users\Administrator\Documents\Arduino\libraries\KWP2000\src/KWP2000. h:83:8: note: candidate: void KWP2000::enableDebug(HardwareSerial, uint8_t, uint32_t) void enableDebug(HardwareSerial debug_serial, const uint8_t debug_level = DEBUG_LEVEL_DEFAULT, const uint32_t debugbaudrate = 115200); ^~~C:\Users\Administrator\Documents\Arduino\libraries\KWP2000\src/KWP2000. h:83:8: note: no known conversion for argument 1 from 'Serial' to 'HardwareSerial*' exit status 1 'Serial3' was not declared in this scopeOpen in file - > Preferences Show detailed output during compilation option This report will contain more information. `