From 898e25f62fe9911fbdf7e658ef34db8b4714979b Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 6 Jan 2016 19:55:05 +0300 Subject: [PATCH] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f033e19..8f3938d 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,11 @@ The available baudrates are listed as follws: CAN_1000KBPS }; +
+Example of inititalization + MCP_CAN mcp2551(10, MCP_CAN::MODE_LOOPBACK); + mcp2551->begin(CAN_125KBPS);
##2. Set Receive Mask and Filter @@ -70,9 +74,9 @@ We provide two functions for you to utilize these mask and filter registers. The ## 3. Check Receive The MCP2515 can operate in either a polled mode, where the software checks for a received frame, or using additional pins to signal that a frame has been received or transmit completed. Use the following function to poll for received frames. - INT8U MCP_CAN::checkReceive(void); + bool MCP_CAN::checkReceive(void); -The function will return 1 if a frame arrives, and 0 if nothing arrives. +The function will return true if a frame arrives, and false if nothing arrives.