Skip to content

Commit

Permalink
Feature Request #60: Add inline documentation for CanBitRate
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Graffagnino committed Aug 2, 2022
1 parent 7d38cd5 commit 39b968d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void setup()
attachInterrupt(digitalPinToInterrupt(MKRCAN_MCP2515_INT_PIN), [](){ mcp2515.onExternalEventHandler(); }, FALLING);

mcp2515.begin();
mcp2515.setBitRate(CanBitRate::BR_250kBPS_16MHZ);
mcp2515.setBitRate(CanBitRate::BR_250kBPS_16MHZ); // CAN bitrate and clock speed of MCP2515
mcp2515.setNormalMode();
}

Expand Down
2 changes: 1 addition & 1 deletion examples/MCP2515-CAN-Sniffer/MCP2515-CAN-Sniffer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void setup()
attachInterrupt(digitalPinToInterrupt(MKRCAN_MCP2515_INT_PIN), [](){ mcp2515.onExternalEventHandler(); }, FALLING);

mcp2515.begin();
mcp2515.setBitRate(CanBitRate::BR_250kBPS_16MHZ);
mcp2515.setBitRate(CanBitRate::BR_250kBPS_16MHZ); // CAN bit rate and MCP2515 clock speed
mcp2515.setListenOnlyMode();
}

Expand Down
2 changes: 1 addition & 1 deletion examples/MCP2515-Loopback/MCP2515-Loopback.ino
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void setup()
attachInterrupt(digitalPinToInterrupt(MKRCAN_MCP2515_INT_PIN), [](){ mcp2515.onExternalEventHandler(); }, FALLING);

mcp2515.begin();
mcp2515.setBitRate(CanBitRate::BR_250kBPS_16MHZ);
mcp2515.setBitRate(CanBitRate::BR_250kBPS_16MHZ); // CAN bit rate and MCP2515 clock speed
mcp2515.setLoopbackMode();

std::for_each(CAN_TEST_FRAME_ARRAY.cbegin(),
Expand Down

0 comments on commit 39b968d

Please # to comment.