ARDUINO MEGA Functions Serial Link
(Created page with "<yambe:breadcrumb>ARDUINO_MEGA_Functions_and_Variables|Functions and Variables</yambe:breadcrumb> <br /> {{tl|1|1}} <br /> == getChar == {| style="color:black;" width="100%"...") |
|||
| Line 1: | Line 1: | ||
<yambe:breadcrumb>ARDUINO_MEGA_Functions_and_Variables|Functions and Variables</yambe:breadcrumb> | <yambe:breadcrumb>ARDUINO_MEGA_Functions_and_Variables|Functions and Variables</yambe:breadcrumb> | ||
<br /> | <br /> | ||
| + | The Arduino MEGA has 4 serial ports - 1 reversed for the system and 3 user controllable serial ports. These serial ports can be configured in code, or via the Motors and Sensor Setup window. | ||
{{tl|1|1}} | {{tl|1|1}} | ||
| Line 77: | Line 78: | ||
|- | |- | ||
| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_void|void]]) Function will set the Baud Rate for port 'nPort'. | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_void|void]]) Function will set the Baud Rate for port 'nPort'. | ||
| − | Acceptable Baud Rates: 4800, 9600, 19200, 38400, 57600, 115200, 230400. | + | Acceptable Baud Rates: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 200000, 230400 and 250000. |
Revision as of 08:56, 10 May 2012
ARDUINO → Functions and Variables → ARDUINO MEGA Functions Serial Link
The Arduino MEGA has 4 serial ports - 1 reversed for the system and 3 user controllable serial ports. These serial ports can be configured in code, or via the Motors and Sensor Setup window.
|
| |||||||
getChar
| short getChar(const TUARTs nPort) | |||||||
| (short) Function will retrieve the next character from the buffer that was sent to port 'nPort'.
|
sendChar
| void sendChar(const TUARTs nPort, short nChar) | ||||||||||
| (void) Function will send the next character to port 'nPort'.
|
setBaudRate
| void setBaudRate(const TUARTs nPort, TBaudRate nBaudRate) | ||||||||||
| (void) Function will set the Baud Rate for port 'nPort'.
Acceptable Baud Rates: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 200000, 230400 and 250000.
|