I am interfacing a LCD to my DUE board using Serial1. The LCD requires 8 data bits, 2 stop bits, and no parity at 9600 baud. I have found 2 methods listed on the website that claim to be the method to set the mode properly. The first method I tried was from the Serial.begin function explaination:
Serial1.begin(9600, SERIAL_8N2);
error: 'SERIAL_8N2' was not declared in this scope
Then I found in the release notes for 1.5.2 that this method should work:
Serial1.begin(9600, 8, 2, N);
error: 'N' was not declared in this scope
I also tried:
Serial1.begin(9600, 8, 2, 'N');
error: no matching function for call to 'USARTClass::begin(int, int, int, char)'
E:\Senior Design Code\arduino-1.5.2\hardware\arduino\sam\cores\arduino/USARTClass.h:41: note: candidates are: void USARTClass::begin(uint32_t)
There is no serial library included in the 1.5.2 download. What do I need to do to make this work?